<br><br>On 23 November 2012 13:50, Sebastien Bacher <<a href="mailto:seb128@ubuntu.com">seb128@ubuntu.com</a>> wrote:<br>> Le 22/11/2012 14:02, Dmitrijs Ledkovs a écrit :<br>><br>> Strangely enough, currently on my system I have:<br>
> XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg<br>><br>> Why is it strange? We do add "xdg-<session>" to the list to allow specific<br>> entries for flavors which need those<br>><br><br>Thanks for clarifying. -$session is indeed useful. I couldn't find it in the specs & thought it's -$distro which gives no additional flexibility over patching the desktop file at the packaging level.<br>
<br>><br>> Hum, is that really a good idea? Those autostart desktop are already<br>> correctly handled by session managers, I don't see the point of spending<br>> time to write a bridge to replace working code, I would assume that adding<br>
> upstart user session wouldn't change anything by default. Then we can start<br>> replacing .desktop entries by upstart jobs where it makes sense...<br>><div><br></div><div>We will have upstart-managed and non-upstart-managed sessions going forward. (due to all our derivatives)</div>
<div>The non-upstart-managed sessions should continue to work as they do.</div><div>Upstart-managed sessions should continue to work with existing autostart desktop files (all universe will not convert to .desktop) as well as upstart jobs.</div>
<div>If a package wants to use upstart it will most likely ship both: autostart desktop file & upstart job file. (for non-upstart and upstart managed sessions).</div><div><br></div><div>That means we will have to distinguish the case where we have both autostart desktop file & upstart job file in the upstart-managed session. (e.g. gwibber shipping both).</div>
<div>This migration is very similar to how we currently support both upstart jobs and sysvinit scripts, by letting upstart manage both: natively or via-bridge.</div><div><br></div><div>The current autostart desktop specifiction gives highest priority to the XDG_CONFIG_HOME/autostart (aka ~/.config/autostart), which means we don't have the option to disable duplicate desktop files via /etc/xdg-upstart.</div>
<div><br></div><div>So in an upstart managed user session we will have to deal gracefully with the case when a user modified and / or copied the desktop file into ~/.config/autostart _and_ we have an upstart job which is meant to replace that functionality.</div>
<div><br></div><div>><br>> The name is a bit verbose /etc/xdg/upstart or /etc/xdg/upstart-user should<br>> be fine there<br>></div><div><br></div><div>+1 for either of these.</div><div><br></div><div>Regards,</div>
<div><br></div><div>Dmitrijs.</div>