I have attached a new diff file for upstart together with a patch which shows the delta. This takes care of the potiential issue as far as upstart is concerned.
However...
@Johannes: /etc/X11/Xsession.d/99cadence-session-start does not belong to the upstart package, so this does not really fix your specific situation. Actually I don't see the cadence package anywhere in the Ubuntu archive. To fix it for yourself, you may want to edit that file, so it uses the full path when calling upstart. Preventing ~/.profile from sourcing ~/.bashrc is another way. (Any manual edit of /usr/sbin/lightdm-session will get lost at the next update of the lightdm package.)
I have attached a new diff file for upstart together with a patch which shows the delta. This takes care of the potiential issue as far as upstart is concerned.
However...
@Johannes: /etc/X11/ Xsession. d/99cadence- session- start does not belong to the upstart package, so this does not really fix your specific situation. Actually I don't see the cadence package anywhere in the Ubuntu archive. To fix it for yourself, you may want to edit that file, so it uses the full path when calling upstart. Preventing ~/.profile from sourcing ~/.bashrc is another way. (Any manual edit of /usr/sbin/ lightdm- session will get lost at the next update of the lightdm package.)