Strange behaviour in GTK aplications in plasma

Hi.

I’m using plasma 5.18, thunderbird 91.2.0, firefox 93.0

Each time I boot my computer some things do not work with GTK applications, for example, when I click on a text box to introduce login+password saved password do not work, when I click on a menu, it does not unfold. It happens both thunderbird and firefox. Then I go to settings-GTK change font and I change the font (I have seen that change from deepin to high contrast or reverse always work) and It works fine … until next reboot.

Where can I search for the cause of the problem?

And not on logout - login?

And do other users (best a fresh created user) have the same problem?

I have been testing:

I boot the computer, I login-> menus don’t work. I change the font, menus work.
I log-ou then log in again, menus continue working. I have tried it several times, still working.
I create a new user, it works fine.
I log out-log in with the new user, still work fine.
I log-out log-in alternatively with both users, it works
I reboot -> my normal user does not work (until font change), the new user works

I have seen that on log-out + log-in the plasma desktop loads (for my normal user) way faster that when I do a reboot (even if I make the reboot and wait a long time, like 10 minutes) to log-in

I get almost always a error on login to plasma: “the process for the trash protocol died unexpectedly”… I think it is not related, but … who knows.

(But trash works fine)

I assume that can be explained by the fact that a lot of the read-only memory pages (the “code”) of the KDE programs that are needed by your login are still cashed in memory when you logout/login. They are of course not at first login after a boot.

You probably will see the same when you start e.g. Firefox first time after login, stop it, and start it again. Second time will be quicker.

BTW, your list of tests seem to point to something in the configuration of the original user. When I read that list correct, the problem never happens with the new user.

The plasma config files are ~/.confi/plasma* ?

Which one is more likely to be the source of the problem, plasmarc?

Not only those… There are configuration settings also in ~/.local

Which one is more likely to be the source of the problem, plasmarc?

Unlikely, I think there’s something “seriously” amiss with your user profile…

If you’ve not done too much customisation I’d tend to rename all configuration directories, they will be recreated with defaults on next login.

Logout from KDE and switch to a virtual terminal (ctrl-alt-F2), login as your normal user. Then:

First delete the cache:

rm -rf ~/.cache

Then rename the the directories/files containing configuration files etc, and logout from VT2

mv ~/.config ~/dot-config
mv ~/.local ~/dot-local
mv ~/.gtkrc-2.0 ~/dot-gtkrc-2.0
exit

Switch back to the graphics terminal (ctrl-alt-F7) and login as your normal user, you should then have all default settings.

I found this topic by searching on Thunderbird.
I tried Tannington’s approach and it did not seem to help, so I backed it out since it really trashed my highly configure dual display layout.
I acknowledge that he warned us about side effects :slight_smile:
My situation is very similar to what fperal describes.

My issues appeared, I think, when I did an on-line zupper dup upgrade from 15.2 to 15.3, but I cannot swear that it did not appear with a recent Thunderbird update.
Based on more general google searches, it seem other distros are having similar issues with most recent Mozilla offerings such as Firefox and Thunderbird running KDE.
On startup, they seem to be using Gnome base file helpers and perhaps default applications setups.

A common suggestion is to start Thunderbird using this method

 Exec=GTK_USE_PORTAL=1 thunderbird %u 

That does help, Thunderbird now presents Dolphin based file menus but default system applications still seems focused on Gnome.
For example, in Thunderbird, attempting to open an attached file.docx.
Tbird wants to choose calibri, which I have installed but is not on any settings list for docx files that I can find.
And the menu option to save all attachments just does not work.

I don’t know enough to think this is a packaging issue or fundamental change to Mozilla build systems.
I have seen similar issues on Arch, Mint and Ubuntu forums.

Any thoughts appreciated.

That’s a known bug, being worked on at the moment: https://bugzilla.opensuse.org/show_bug.cgi?id=1191825

If that’s also causing other issues I wouldn’t like to speculate.

Thanks.
Reads like a good possibility, I’ll wait for nature to take it’s course.

Hi,

I also had problems with GTK applications in the KDE 5.23 Update:

  • GTK open/save menu in Firefox and Thunderbird instead of KDE menu
  • presentations in Libreoffice did not allow to use the second screen for the presention

Solved today, with the new OpenSuse Tumbleweed Update lol! (which included many KDE files).

Best,

Michael

I have similar good results to report after a 15.3 update.
Thank You bug chasers

As I thought it may be a GTK issue first I tried to remove only the cache and the .gtkrc-2.0 … it didn’t work.
Then I tried to use Exec=GTK_USE_PORTAL=1 option. I liked it because I way prefer native dialogs… but the issue continued happening.
Then I removed .config and .local and the firefox, thunderbird… worked fine, so it seemed to be a issue of my profile.
But as I have a lot of configuration I restore them to their previous state to try a more fine searching of the problem when I had free time.
I was In the process of changing my computer. I had installed a new Opensuse 15.3 in a new hardware, I created the users with the same ids than in my PC, and I rsynced my whole /home to the new PC … and in the new PC the issue with tb and ff has dissapeared with the same user profile that fails in the old one, so it is not completely a profile issue.

best regards