There is still a small problem with this solution:
/etc/gdm/Xsession will source the files in /etc/X11/Xsession.d/ and then the file 99x11-common_start will launch
/etc/X11/Xsession, which will source the files in /etc/X11/Xsession.d/ again. In particular there will be two ssh-agents and two dbus session launched, which is not too good.
In the .desktop file:
Exec=default
should work, but it does not because of bug #465349.
(and it works for me since i modified /etc/gdm/Xsession to source /etc/X11/Xsession)
There is still a small problem with this solution: Xsession. d/ and then the file 99x11-common_start will launch Xsession. d/ again. In particular there will be two ssh-agents and two dbus session launched, which is not too good.
/etc/gdm/Xsession will source the files in /etc/X11/
/etc/X11/Xsession, which will source the files in /etc/X11/
In the .desktop file:
Exec=default
should work, but it does not because of bug #465349.
(and it works for me since i modified /etc/gdm/Xsession to source /etc/X11/Xsession)