Comment 14 for bug 1274740

Revision history for this message
Matthieu Baerts (matttbe) wrote :

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
/etc/xdg/autostart/gnome-keyring-ssh.desktop:6:OnlyShowIn=GNOME;Unity;MATE;
/etc/xdg/autostart/nautilus-autostart.desktop:5:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/gnome-user-share.desktop:9:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop:9:OnlyShowIn=GNOME;XFCE;Unity;
/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop:11:AutostartCondition=GNOME3 unless-session gnome
/etc/xdg/autostart/gnome-settings-daemon.desktop:5:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/gnome-keyring-secrets.desktop:6:OnlyShowIn=GNOME;Unity;MATE;
/etc/xdg/autostart/gnome-sound-applet.desktop:16:AutostartCondition=GNOME3 if-session gnome-fallback
/etc/xdg/autostart/gnome-keyring-pkcs11.desktop:6:OnlyShowIn=GNOME;Unity;MATE;
/etc/xdg/autostart/at-spi-dbus-bus.desktop:5:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/onboard-autostart.desktop:9:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/telepathy-indicator.desktop:12:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/telepathy-indicator.desktop:13:AutostartCondition=GNOME3 unless-session gnome
/etc/xdg/autostart/gnome-screensaver.desktop:7:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/gnome-screensaver.desktop:8:AutostartCondition=GNOME3 unless-session gnome
/etc/xdg/autostart/evolution-alarm-notify.desktop:10:OnlyShowIn=GNOME;Unity;XFCE;Dawati;
/etc/xdg/autostart/vino-server.desktop:6:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/gsettings-data-convert.desktop:8:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/orca-autostart.desktop:9:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/user-dirs-update-gtk.desktop:7:OnlyShowIn=GNOME;LXDE;Unity;
/etc/xdg/autostart/gnome-fallback-mount-helper.desktop:10:OnlyShowIn=GNOME;Unity;
/etc/xdg/autostart/gnome-fallback-mount-helper.desktop:12:AutostartCondition=GNOME3 unless-session gnome
/etc/xdg/autostart/gnome-keyring-gpg.desktop:6:OnlyShowIn=GNOME;Unity;MATE;

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?