Ubuntu-mate-welcome and software-boutique fail to run with similar errors

Excellent suggestion, and something we've done in the past, so don't know why we didn't try that on this problem. My friend will be visiting with the computer tomorrow so we'll give it a shot.

As we suspected, the problem is somewhere in the home folder, but comparing the new user to the old user we have yet to see where to do something to correct the problem.
A log file ".xsession-errors" in home, we found 4 lines immediately below the error:
RuntimeError: object at 0x7f5407a95f00 of type FolderColorMenu is not initialized
RuntimeError: object at 0x7f5407a95f00 of type FolderColorMenu is not initialized
RuntimeError: object at 0x7f5407a95f00 of type FolderColorMenu is not initialized
RuntimeError: object at 0x7f5407a95f00 of type FolderColorMenu is not initialized
which we're not sure if they are related to the problem or not.
We're running the Mate desktop, and can't find anything to look at relative to FolderColorMenu or how to initialize it.

I have had this problem before, after another upgrade.

Currently this happens if I try to run the boutique from the command line:

$ software-boutique 
[Welcome] Starting in Software Boutique mode. 
/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome:1837: DeprecationWarning: Gtk.Window.set_wmclass is deprecated
  w.set_wmclass('ubuntu-mate-welcome', 'ubuntu-mate-welcome')
/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome:1842: DeprecationWarning: Gdk.Screen.get_height is deprecated
  if s.get_height() <= 600:
[Welcome] Snap detected. Using __VERSION__ 
[Welcome] Version: 22.04.0 
[Welcome] Application Ready. 
Traceback (most recent call last):
  File "/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome", line 1399, in _load_changed_cb
    app.current_page = uri.rsplit('/', 1)[1]
IndexError: list index out of range
^C

^C because nothing happens - nothing on the screen, no return to the command line prompt - until I do.

We've done a fresh install which didn't resolve the problem, and find that a new user login results in both the ubuntu-mate-welcome and software-boutique working properly, tells us it's something in the home folder of the user login that is failing. We are at a loss as to where to look to correct this issue, and are debating over just reinstalling from scratch and formatting the home partition, though we would prefer to learn the cause of the problem and correct it, if possible. So far we have two computers upgraded to 22.04 Mate but unresolved problems on both keeping us from upgrading several other computers all of which are running ubuntu 21.10 Mate, with just the workspace issue.

Personally, if were told that upgrading meant I would never ever be able to run Software Boutique again or see MATE Welcome again, I'd do it.

But as they're snaps, they're supposed to isolate themselves from (almost) everything else, aren't they?

Best I can tell, not everything in Software Boutique is a snap. I installed synaptic from Software Boutique and actually prefer it, though I believe the intent is to eliminate it in the future.
In any event, it appears to be a home folder issue, at least in our case as both the Welcome and Boutique apps work in a new created login on the system.

Maybe you should check the snap directory instead of home and see if there's a diff. Just a suggestion.

We have checked the snap directory. It exists in our home directory.

It's a long shot but why don't you archive the non-working snap dir and then copy the new user's working snap dir there and give it a try (reboot maybe required)? This could save you from reinstall and confirm that the archived snap dir is at fault.

That assumes every users snap directory content is the same.

Hello,
I can't access neither to Welcome nor to Boutique. It used to work, but now it doesn't.

Welcome:

env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/ubuntu-mate-welcome_ubuntu-mate-welcome.desktop /snap/bin/ubuntu-mate-welcome
/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome:1837: DeprecationWarning: Gtk.Window.set_wmclass is deprecated
  w.set_wmclass('ubuntu-mate-welcome', 'ubuntu-mate-welcome')
/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome:1842: DeprecationWarning: Gdk.Screen.get_height is deprecated
  if s.get_height() <= 600:
[Welcome] Snap detected. Using __VERSION__ 
[Welcome] Version: 22.04.0 
[Welcome] Application Ready. 
Traceback (most recent call last):
  File "/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome", line 1399, in _load_changed_cb
    app.current_page = uri.rsplit('/', 1)[1]
IndexError: list index out of rang

Boutique:

env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/ubuntu-mate-welcome_software-boutique.desktop /snap/bin/ubuntu-mate-welcome.software-boutique --boutique
[Welcome] Starting in Software Boutique mode. 
[Welcome] Starting in Software Boutique mode. 
/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome:1837: DeprecationWarning: Gtk.Window.set_wmclass is deprecated
  w.set_wmclass('ubuntu-mate-welcome', 'ubuntu-mate-welcome')
/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome:1842: DeprecationWarning: Gdk.Screen.get_height is deprecated
  if s.get_height() <= 600:
[Welcome] Snap detected. Using __VERSION__ 
[Welcome] Version: 22.04.0 
[Welcome] Application Ready. 
Traceback (most recent call last):
  File "/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome", line 1399, in _load_changed_cb
    app.current_page = uri.rsplit('/', 1)[1]
IndexError: list index out of range

What's wrong?
Any solution?

Thank you for your future answer.

Khm...
It correctly works when I launch Welcome or Boutique from root or other user:
sudo env XDG_CURRENT_DESKTOP=MATE ubuntu-mate-welcome
or
xhost +SI:localuser:<OTHER_USER>; sudo -u <OTHER_USER> env XDG_CURRENT_DESKTOP=MATE ubuntu-mate-welcome

The output is:

/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome:1837: DeprecationWarning: Gtk.Window.set_wmclass is deprecated
  w.set_wmclass('ubuntu-mate-welcome', 'ubuntu-mate-welcome')
/snap/ubuntu-mate-welcome/709/usr/bin/ubuntu-mate-welcome:1842: DeprecationWarning: Gdk.Screen.get_height is deprecated
  if s.get_height() <= 600:
[Welcome] Snap detected. Using __VERSION__ 
[Welcome] Version: 22.04.0 
[Welcome] Application Ready. 
[Welcome] Application Closed

Tried to rm -rfv /home/<MY_USER>/snap/{ubuntu-mate-welcome,software-boutique}, but it didn't help.

app.current_page = uri.rsplit('/', 1)[1] works with some local users, and not works with others.
uri variable is always = file:///snap/ubuntu-mate-welcome/709/usr/share/ubuntu-mate-welcome/splash.html, I've checked dozens of times.
But why user 2 can use .rsplit with ('/', 1)[1], but user 1 not?
I've tried to use app.current_page = uri.rsplit('/', -1)[-1] instead and it works fine from user 1, and at least show blank page from user 2.

Using negative integer in this python script I can get the value of variable app.current_page both from user 2 [all is OK] and user 1 [all is not OK].

Variable app.current_page should change during application runs as follows:

splash.html
splash.html
splash.html
splash.html
index.html
index.html

and it does from user 2, but I get only:

splash.html

from user 1.

But why?

Is there any Python coder?
Just rsync -avpHES this snap's mountpoint and mount --bind the new copy over the old and it will be writeable. Play with it... I'm not a Python coder, I don't know what to do next.

Hello everyone

I now have this problem as well. It happen to me after using "Timeshift" to restore my system from the previous day's snapshot. Note that I have activated the Timeshift option to "include hidden files from my home directory" in the snapshot. :disappointed_relieved:

Update
I set up a new user and logged into that account. The "Welcome" and "Software Boutique" worked. I installed a program from the Software Boutique and logged back into the first "broken" account. The newly installed program was there ready to use.

Note also that I had two snap programs besides "Welcome" and "Software Boutique". Rolling-back the system from the previous day's snapshot had no effect on them. :thinking:

This is also affecting me now with this install of the Ubuntu-Mate 22.04 LTS. Seems to impact randomly and based on the discussion here there seems to be no known fix for the issue besides installing fresh and hoping this time not to be impacted by it.

Very frustrating!

And it doesn't help that in the back of my head is a voice muttering that this might not be an issue if it wasn't a snap package...

same here

IndexError: list index out of range

I have the same issues on a fresh install of 22.04 on a Thinkpad. It worked until I installed Software and Synaptic via the boutique; after a reboot both failed to launch (The boutique and Welcome).

I reported it as bug:

if it is still an issue for you, please go there and confirm/comment, so that it can be looked at and hopefully fixed.

Thanks!

2 Likes

Have done so.

ABCDEFGHIJKLMNOP

1 Like

I have the same issue after the upgrade from Ubuntu Mate 20.04 to 22.04.

I found a first solution changing XDG_DATA_HOME and run the original commands:

env XDG_DATA_HOME=.local/share/ubuntu-mate-welcome ubuntu-mate-welcome --boutique
env XDG_DATA_HOME=.local/share/ubuntu-mate-welcome ubuntu-mate-welcome 

In my case, I fixed it permanently by deleting the file ./local/share/mime/mime.cache running the commnad

rm - rf ./local/share/mime/mime.cache

and now it also works by launching commands:

env XDG_CURRENT_DESKTOP=MATE ubuntu-mate-welcome
env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/ubuntu-mate-welcome_software-boutique.desktop /snap/bin/ubuntu-mate-welcome.software-boutique --boutique
2 Likes