elementary-dev-community team mailing list archive
Mailing list archive
Re: Questions about the use of the bluetooth indicator
2012/10/14 Robert Ancell <robert.ancell@xxxxxxxxx>
> 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.
In Ubuntu checking XDG_CURRENT_DESKTOP environment variable is sufficient.
That's what powers OnlyShowIn= and NotShowIn= in .desktop files, for
example. See http://lists.freedesktop.org/archives/xdg/2011-July/012004.htmlfor
Our value for this variable is "Pantheon".
Sergey "Shnatsel" Davidoff
OS architect @ elementary