! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Autostart applications start too early
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Yan Pas 2015-01-18 10:51:13 CET
The problem that autostart applications starts too early. Here are trouble of each other:

    1. Thunderbird
        When it autostarts after computer was turned off it has weird fonts, a little wider than other gtk apps
        When it autostarts after logging off the fonts are even worse, and icons are not loaded from gtk theme
    2. Clementine (Qt app)
        When it autostarts after computer was turned off it has some problems with fonts
        When it autostarts after logging off it looses all GTK theme entirely, looks like Win95 app (default gtk theme)
    3. Transmission
        When it autostarts after computer was turned off the indicator icon is not from my gtk theme, it is default and ugly
        When it autostarts after logging off happens the same as I remember
    4. Gxneur
        When it autostarts after computer was turned off - it simply doesn't work at all, needs restart
        When it autostarts after logging off everything is allright
    5. Chrome apps start correctly

I do not have anymore autostart apps
Xubuntu 14.04.1 x64 proposed, Video drivers - Nvidia

The workaround is to write sh scripts to every app looking like:

sleep 5 (10 in case of gxneur)
<name of an app>

I'm not sure if the component is right, redirect me to correct pacakge if I'm
Comment 1 Yan Pas 2015-03-31 21:03:17 CEST
I use autologin for my profile, lightdm and nvidida propriotary drivers if it matters
Comment 2 Thaddaeus Tintenfisch editbugs 2015-04-01 14:46:01 CEST
Is this issue only triggered by the automatic login? Does running "xfsettingsd --replace" restore the correct appearance?
Comment 3 Yan Pas 2015-04-01 15:58:13 CEST
Created attachment 6159 
Screeenshot

No, if I logout and login happens the same. Tested with the new created user (as you see transmission icon is not from theme, thunderbird lost some styles and the clementine is absolutely not themed)
Comment 4 Thaddaeus Tintenfisch editbugs 2015-04-03 11:01:19 CEST
I see. However, you did not answer my second question.

The settings daemon (xfsettingsd) applies appearance settings whenever it is started.
Comment 5 Yan Pas 2015-04-03 18:33:47 CEST
Sorry. Restaring xfsettings daemon doesn't make any effect on indicator icon, the whole qt app (clementine), but if I run xfsettingsd --replace twicely then thunderbird styles will become normal. BTW xfsettingsd is loaded by default on system startup. When I type xfsettingsd --replace first time - termianl doesn't output anything, but on the second time it outputs something like "Another instance is running, replacing"
Comment 6 Thaddaeus Tintenfisch editbugs 2015-04-04 01:22:30 CEST
Yes, it should be launched automatically on session start.

According to the workaround which is mentioned in your bug description, there may be a timing issue. The start of the settings daemon is delayed for some reason, and therefore automatically started applications are not able to query the correct theme/icon settings.

Running xfsettingsd in debug mode should help to identify the cause. Please read the following wiki article:

http://docs.xfce.org/xfce/xfce4-settings/xfsettingsd
Comment 7 Yan Pas 2015-04-04 12:02:20 CEST
Created attachment 6168 
output

I've replaced autostart process with xfce4-terminal -x /home/xxx/xfsettingsd.sh and that's the output, nothing interesting there I guess.
When autostart script was ~/xfsettingsd.sh it was unable no start.
Comment 8 Yan Pas 2015-04-04 12:07:54 CEST
Maybe xfce-session-manager should be patched like this: until xfsettingsd isn't loaded - do not start any process
?
Comment 9 Yan Pas 2015-07-26 20:18:52 CEST
I have upgraded to XFCE 4.12. Qt and gtk apps load normal, only thunderbird loads with loss of some styles
Comment 10 Theo Linkspfeifer editbugs 2019-06-15 11:10:07 CEST
https://git.xfce.org/xfce/xfce4-session/commit/?id=0a915310582803296fbfb075e1ea1c045b20bfcc

Fixed in version 4.13.2.

Bug #11465

Reported by:
Yan Pas
Reported on: 2015-01-18
Last modified on: 2019-06-15

People

Assignee:
Xfce Bug Triage
CC List:
4 users

Version

Version:
4.11.1

Attachments

Screeenshot (924.68 KB, image/png)
2015-04-01 15:58 CEST , Yan Pas
no flags
output (1006 bytes, text/plain)
2015-04-04 12:02 CEST , Yan Pas
no flags

Additional information