/srv/irclogs.ubuntu.com/2013/02/16/#upstart.txt

=== JanC_ is now known as JanC
xnoxstgraber: so I'm running upstart based session now and there are job conflicts.20:27
xnoxso there is upstart job to start gnome-settings-daemon but also gnome-session is starting an ubuntu session, which in turn also start gnome-settings-daemon20:28
xnoxthus it means that if upstart job is quicker all is good, or in my case20:28
xnoxwhere gnome-session was quicker, the upstart job was stuck respawning because the upstart's g-s-d could claim the bus name.20:29
stgraberxnox: right, in that case you need to kill the one from gnome-session20:29
xnoxyeah. I see how you did not want to use a new session name (since nothing would work out of the box)20:30
stgraberxnox: I had that race happen less than 10% of the time here and there's little we can do in upstart until the desktop team changes gnome-session to stop spawning it20:30
stgraberyeah, I actually use a different name to trigger the upstart support, but then change the name half-way through xsession to avoid everything blowing up20:31
stgraberso yeah, no easy way not to have g-s-d spawned20:31
stgraberand g-s-d doesn't have a --replace or --kill option so I can get the upstart job to cleanup any existing one (as I'm doing with pulseaudio IIRC)20:32
xnoxstgraber: well... =) we can prepend a new XDG_CONFIG_DIRS pointing to /usr/share/upstart/xdg/ where we drop the xdg overrides which disable things that are spawned by gnome-session20:32
xnoxand then gnome-session will notice the override and not spawn g-s-d, yet we keep the same session name20:32
* xnox takes a task to implement this20:33
stgraberah, I guess that'd be a reasonable workaround until we switch to upstart for good20:33
xnoxand thus not requiring any changes in the packages.20:33
xnoxstgraber: where is your integration branch?20:33
xnoxalso thanks to dbus logs I have a bug to file....20:34
stgraberxnox: lp:~stgraber/ubuntu/raring/upstart/user-session-ppa20:36
xnoxok.20:36
xnoxhmm..... ssh agent didn't work...20:37
* xnox tries to find what sets XDG_CONFIG_DIRS and if gnome-session sets & overrides it, I may have a problem in my cunning plan20:59
xnox/etc/X11/Xsession.d/ awesome =)21:03
xnoxwell I'm currently abusing /usr/share/upstart/xdg for disabling. But I guess going in the future we will want /etc/xdg/xdg-ubuntu-upstart/ to be added to the XDG_CONFIG_DIRS such that one can ship both21:08
xnoxan upstart job and a .desktop autostart file21:08
xnoxand then only the upstart job will be used during upstart session.21:09
xnoxnot sure how/if/when other DE will switch to upstart managed sessions.21:09
xnoxcompiz is being respun by gnome-session22:05
xnoxbut i'm not sure where/how we can override /usr/share/gnome/wm-properties/compiz.desktop22:05
xnoxalso /me is very confused about hidding jobs it needs type,name,exec to validate plus hidden to hide.22:05
xnoxyet xdg autostart spec says only hidden key + matching file name is needed22:05
xnox*sigh22:05
xnox*22:06
stgraberI think we'll really need to spend a bit more time and just get rid of gnome-session earlier than first planned. That's the only way to get all the benefits and avoid the weird issues we're seeing currently22:28
stgraberI tried that the other day but for some reason I wasn't getting any of the indicators22:29
stgrabermaybe the recent fixes for dbus and cwd improved that though. I'd have to try it again22:29
stgraberoh, and we'd need to implement the gnome-session dbus APIs then (for session logout at least)22:29
xnoxhmm... and what about the rest of the /etc/xdg/autostart/*.desktop files shipped by the rest of the packages?22:36
xnox(i'm hoping not that many)22:36
xnoxand other apps that self-drop ~/.config/autostart/ e.g. google-chrome, shutter and others/22:36
xnox?22:36
xnoxupstart-xdg-autostart-bridge?!22:37
stgrabershouldn't be too hard to have an upstart job spawn those once and forget about them22:37
xnoxor crazy hacks to make gnome-session check up with upstart and not start stuff spawned by upstart or make it ask upstart for a list of things it knowns22:38
xnoxand only spawn the set that upstart didn't know about22:38
xnoxthat assumes, of course, matching and stable job names.22:38

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!