2012/10/14 Robert Ancell <robert.anc...@gmail.com>

> 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
details.

Our value for this variable is "Pantheon".

Thanks!

-- 
Sergey "Shnatsel" Davidoff
OS architect @ elementary
-- 
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

Reply via email to