Bug 1173316

Summary: Move /etc/xdg/autostart to /usr/etc/xdg/autostart ?
Product: [openSUSE] openSUSE Tumbleweed Reporter: Stefan Dirsch <sndirsch>
Component: OtherAssignee: Ludwig Nussel <lnussel>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: chcao, dleuenberger, kukuk, lnussel, ro, werner
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1173048    

Description Stefan Dirsch 2020-06-24 14:13:26 UTC
I'm currently working on the config file switch /etc --> /usr/etc (find Details on https://en.opensuse.org/openSUSE:Packaging_UsrEtc) and now I'm wondering what should be done with files in /etc/xdg/autostart.  Which component is reading this and needs to be adjusted therefore?
Comment 2 Ludwig Nussel 2020-06-24 15:21:23 UTC
according to https://specifications.freedesktop.org/autostart-spec/0.5/ar01s02.html and https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html they did not anticipate that. We seem to export XDG_CONFIG_DIRS=/etc/xdg. I'd assume that similar to /usr/share/applications the OS provided autostart directory would be located there as well.
Comment 3 Stefan Dirsch 2020-06-26 11:34:28 UTC
Information by Dominique:
If all consumers implement this correctly, we just need to add "/usr/etc/xdg" to  $XDG_CONFIG_DIRS. This variable is set by
/etc/profiles.d/xdg-environment.[c]sh (package aaa_base), soon to be moved to /usr/etc (aaa_base).
Comment 4 Ludwig Nussel 2020-06-26 12:16:21 UTC
omg, we should probably kill that script in favor of a file in /usr/lib/environment.d/ while we are at it
Comment 5 Stefan Dirsch 2020-09-04 10:14:30 UTC
(In reply to Stefan Dirsch from comment #3)
> Information by Dominique:
> If all consumers implement this correctly, we just need to add
> "/usr/etc/xdg" to  $XDG_CONFIG_DIRS. This variable is set by
> /etc/profiles.d/xdg-environment.[c]sh (package aaa_base), soon to be moved
> to /usr/etc (aaa_base).

Makes sense. Should even work with consumers still using /etc/xdg, when just adding /usr/etc/xdg to the end of the list.

(In reply to Ludwig Nussel from comment #4)
> omg, we should probably kill that script in favor of a file in
> /usr/lib/environment.d/ while we are at it

Not sure how to implement this.
Comment 6 Stefan Dirsch 2020-09-07 13:57:02 UTC
(In reply to Stefan Dirsch from comment #5)
> (In reply to Stefan Dirsch from comment #3)
> > Information by Dominique:
> > If all consumers implement this correctly, we just need to add
> > "/usr/etc/xdg" to  $XDG_CONFIG_DIRS. This variable is set by
> > /etc/profiles.d/xdg-environment.[c]sh (package aaa_base), soon to be moved
> > to /usr/etc (aaa_base).
> 
> Makes sense. Should even work with consumers still using /etc/xdg, when just
> adding /usr/etc/xdg to the end of the list.

Just implemented and openend submit request on github.

https://github.com/openSUSE/aaa_base/pull/80
Comment 7 Stefan Dirsch 2020-09-08 12:59:59 UTC
Well, I'm not the maintainer ...

#  osc maintainer aaa_base
Defined in package: Base:System/aaa_base 
  bugowner of aaa_base : 
   lnussel, oertel

  maintainer of aaa_base : 
   lnussel, oertel, WernerFink, kukuk
Comment 8 Stefan Dirsch 2020-09-09 09:40:07 UTC
https://build.opensuse.org/request/show/833187

Thanks for accepting and pushing to factory, Ludwig! :-)
Comment 9 Stefan Dirsch 2020-09-23 11:15:04 UTC
Already accepted. So let's close this as fixed.