On Tue, 2011-02-22 at 01:25 +0100, Pierre Wieser wrote:
> I am reading the Desktop Entry spec, and more particularly about
> OnlyShowIn and NotShowIn keys. This spec refers to a desktop 
> environment, and there is a list of "recognized" desktops.

It is here: http://standards.freedesktop.org/menu-spec/latest/apb.html

> Even if I am a bit disappointed about that, my question stays:
> whether it is at compile time or at runtime, how do we identify
> a desktop environment ?

I think that for most cases people know what desktop they are because
they're specifically building for that desktop.  For instance, it's
unlikely the KDE desktop file loader would be used on GNOME so it has in
it's code to look for "KDE".  I don't know of a runtime way to determine
the desktop.

That being said, I think it might be worth a standard environment
variable to get that.  There isn't one that I know of today.

                --Ted

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to