As we can see here, every time we have GNOME in the OnlyShowIn key, we also have Unity. So if we change the session name, we should do the same for Cairo-Dock.
Maybe we can patch all these applications to add "Cairo-Dock" in the OnlyShowIn key but I don't know if it's a good idea because we will also have to maintain these patches (except if Ubuntu Desktop and Gnome teams can help us by checking that when they change this key, they also notify us or add/remove Cairo-Dock from this key too).
When looking at the AutostartCondition key, we can see: "GNOME3 unless-session gnome" which means that this application is launched when: XDG_CURRENT_DESKTOP == GNOME but DESKTOP_SESSION != gnome (on a GNOME session but when it's not Gnome-Shell).
Why can't we do that for Nautilus?
Sorry for the delay...
@Sebastien:
> Do you have any example of thing that would stop working if you changed your DesktopName to be "cairo-dock"?
Yes, I guess that if we change the DesktopName to "Cairo-Dock" (or something else), we will have problems with programs which are launched at startup.
$ grep -rn GNOME /etc/xdg/autostart |grep -e OnlyShowIn -e AutostartCondition autostart/ gnome-keyring- ssh.desktop: 6:OnlyShowIn= GNOME;Unity; MATE; autostart/ nautilus- autostart. desktop: 5:OnlyShowIn= GNOME;Unity; autostart/ gnome-user- share.desktop: 9:OnlyShowIn= GNOME;Unity; autostart/ polkit- gnome-authentic ation-agent- 1.desktop: 9:OnlyShowIn= GNOME;XFCE; Unity; autostart/ polkit- gnome-authentic ation-agent- 1.desktop: 11:AutostartCon dition= GNOME3 unless-session gnome autostart/ gnome-settings- daemon. desktop: 5:OnlyShowIn= GNOME;Unity; autostart/ gnome-keyring- secrets. desktop: 6:OnlyShowIn= GNOME;Unity; MATE; autostart/ gnome-sound- applet. desktop: 16:AutostartCon dition= GNOME3 if-session gnome-fallback autostart/ gnome-keyring- pkcs11. desktop: 6:OnlyShowIn= GNOME;Unity; MATE; autostart/ at-spi- dbus-bus. desktop: 5:OnlyShowIn= GNOME;Unity; autostart/ onboard- autostart. desktop: 9:OnlyShowIn= GNOME;Unity; autostart/ telepathy- indicator. desktop: 12:OnlyShowIn= GNOME;Unity; autostart/ telepathy- indicator. desktop: 13:AutostartCon dition= GNOME3 unless-session gnome autostart/ gnome-screensav er.desktop: 7:OnlyShowIn= GNOME;Unity; autostart/ gnome-screensav er.desktop: 8:AutostartCond ition=GNOME3 unless-session gnome autostart/ evolution- alarm-notify. desktop: 10:OnlyShowIn= GNOME;Unity; XFCE;Dawati; autostart/ vino-server. desktop: 6:OnlyShowIn= GNOME;Unity; autostart/ gsettings- data-convert. desktop: 8:OnlyShowIn= GNOME;Unity; autostart/ orca-autostart. desktop: 9:OnlyShowIn= GNOME;Unity; autostart/ user-dirs- update- gtk.desktop: 7:OnlyShowIn= GNOME;LXDE; Unity; autostart/ gnome-fallback- mount-helper. desktop: 10:OnlyShowIn= GNOME;Unity; autostart/ gnome-fallback- mount-helper. desktop: 12:AutostartCon dition= GNOME3 unless-session gnome autostart/ gnome-keyring- gpg.desktop: 6:OnlyShowIn= GNOME;Unity; MATE;
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
/etc/xdg/
As we can see here, every time we have GNOME in the OnlyShowIn key, we also have Unity. So if we change the session name, we should do the same for Cairo-Dock.
Maybe we can patch all these applications to add "Cairo-Dock" in the OnlyShowIn key but I don't know if it's a good idea because we will also have to maintain these patches (except if Ubuntu Desktop and Gnome teams can help us by checking that when they change this key, they also notify us or add/remove Cairo-Dock from this key too).
When looking at the AutostartCondition key, we can see: "GNOME3 unless-session gnome" which means that this application is launched when: XDG_CURRENT_DESKTOP == GNOME but DESKTOP_SESSION != gnome (on a GNOME session but when it's not Gnome-Shell).
Why can't we do that for Nautilus?