Comment 7 for bug 1074314

Alistair Buxton (a-j-buxton) wrote :

Since Gnome Classic by default uses indicators and not the applet I think it should look like this:

/usr/share/applications/gnome-datetime-panel.desktop has OnlyShowIn=GNOME;
/usr/share/applications/indicator-datetime-preferences.desktop has OnlyShowIn=Unity, GNOME-Classic;

or, gnome classic should show both icons if both date applets are installed:

/usr/share/applications/gnome-datetime-panel.desktop has OnlyShowIn=GNOME, GNOME-Classic;
/usr/share/applications/indicator-datetime-preferences.desktop has OnlyShowIn=Unity, GNOME-Classic;

This will require,

a) changing gnome classic session to set XDG_CURRENT_DESKTOP to a different value
b) fixing anything else that looks at this variable
c) possibly fixing whatever parses OnlyShowIn to accept multiple values if it doesn't already.

However, this is the only solution I can see that isn't a terrible terrible hack.