I don't think there's a (easy) reliable method of detecting what session you are inside. But it's worth seeing if it can be done.
On 14 October 2012 22:24, Eduard Gotwig <got...@ubuntu.com> wrote: > Ok, so why don't the others use this concept? Becouse we've our life on > GNOME? :D > > > 2012/10/14 Robert Ancell <robert.anc...@gmail.com> >> >> On 14 October 2012 22:12, Eduard Gotwig <got...@ubuntu.com> wrote: >> > +Robert Ancell: I think it would be great, if indicators would be >> > intelligent enough, to just don't show the entry to the gnome control >> > center, if its not properly installed. Just saying... >> >> The gnome-bluetooth one does that actually, but it does it by checking >> if 'gnome-control-center' is in the path. I'll at least match that >> behaviour but it would probably be better if it detected what type of >> session it is running inside (i.e. got the XDG session name) and did >> the behaviour based on that. Otherwise installing gnome-control-center >> in elementary would (incorrectly) adjust the behaviour of the >> indicator. > > -- Mailing list: https://launchpad.net/~elementary-dev-community Post to : elementary-dev-community@lists.launchpad.net Unsubscribe : https://launchpad.net/~elementary-dev-community More help : https://help.launchpad.net/ListHelp