Bug 310657 - AUTOSTART FOLDERS - non compliance to freedesktop.org standards
Summary: AUTOSTART FOLDERS - non compliance to freedesktop.org standards
Status: RESOLVED INTENTIONAL
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.9
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-25 16:46 UTC by Andrei ILIE
Modified: 2018-07-25 14:56 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei ILIE 2012-11-25 16:46:50 UTC
We have too many autostart directories...

freedesktop.org clearly states: "By placing an application's .desktop file in one of the autostart directories the application will be automatically launched during startup of the user's desktop environment after the user has logged in. [...] The autostart directories are:
    ~/.config/autostart/    (personal autostart directory)
    /etc/xdg/autostart/     (system wide autostart directory)"

In practice, however, at least six folders are being checked for .desktop files, wich creates, let's say, a bit of confusion:
    ~/.kde/Autostart/
    ~/.kde/share/autostart/
    ~/.config/autostart/
    ~/.local/share/autostart/
    /etc/xdg/autostart/
    /usr/share/autostart/


Reproducible: Always
Comment 1 Andrei ILIE 2012-11-25 17:01:07 UTC
Please see the related Fedora bug report: https://bugzilla.redhat.com/show_bug.cgi?id=879946
Comment 2 Jekyll Wu 2012-11-25 17:49:40 UTC
I don't see any incompliance here. Everything required by FDO is correctly supported by KDE.  Those extra locations are  for KDE specific needs, and FDO doesn't say implementations are *forbidden* to add their private locations to meet their specific needs.

Also, what is really expected under "~/.kde/Autostart/" are executable scripts, although .dekstop file is also supported.
Comment 3 Andrei ILIE 2012-11-25 23:54:52 UTC
Ok... Why is there
    "/usr/share/autostart/"

when we already have
    "/etc/xdg/autostart/" ?

PS:
    KDE-only apps could make use of the "OnlyShowIn=KDE" trick.
Comment 4 Rex Dieter 2012-11-28 19:28:25 UTC
true, /usr/share/autostart and ~/.kde/share/autostart are kde-specific , but removing them (or support for them) now is too late, and risks breaking existing users and systems.

As I mentioned in the downstream report, i have doubts there's anything actionable to be done here.
Comment 5 Andrei ILIE 2012-12-04 20:25:10 UTC
ok
Comment 6 long.lvnh 2018-07-25 14:43:43 UTC
Hello.

I am using the Plasma KDE 5.13.3 compilation and it seems to not be considering the directory:

    /etc/xdg/autostart

Found this because of an issue with geoclue 2.4.10 which denied me the service to use it with Redshift and made it work by making a symbolic link of the geoclue demo agent XDG autostart file geoclue-demo-agent.desktop to ~/.config/autostart:

    ln -s /etc/xdg/autostart/geoclue-demo-agent.desktop ~/.config/autostart

Also consider that geoclue relies on XDG's compliance.
Comment 7 Rex Dieter 2018-07-25 14:56:16 UTC
I'm going to close this bug fyi.

As for the latest comment, I can assure you that plasma5 does comply with XDG standards, autostart in particular, in general.  Many plasma services, including baloo, powerdevil, polkit-kde-authentication-agent, etc... rely on that successfully.

If you believe you've found a new bug, I strongly suggest you file a new issue.  Thanks.