Proposal: $XDG_CURRENT_DESKTOP and the xdg-* commands

2015-05-31 Thread Jerome Leclanche
Hi Just earlier a user encountered an issue with xdg-settings, which would complain about an unknown desktop environment. Looked in the code and sure enough, it hard-checks for $XDG_CURRENT_DESKTOP and actually only implements kde, gnome and xfce. All other DEs are implemented

Re: Proposal: $XDG_CURRENT_DESKTOP and the xdg-* commands

2015-05-31 Thread Simon Lees
On 06/01/2015 04:21 AM, Jerome Leclanche wrote: Hi Just earlier a user encountered an issue with xdg-settings, which would complain about an unknown desktop environment. Looked in the code and sure enough, it hard-checks for $XDG_CURRENT_DESKTOP and actually only implements kde, gnome

Re: XDG_CURRENT_DESKTOP

2011-07-19 Thread Michael Terry
On 07/14/2011 11:36 AM, Michael Terry wrote: Hello! I've seen the idea of a XDG_CURRENT_DESKTOP environment variable tossed around a few times on this mailing list, but I don't see it in any spec. So XFCE and LXDE are already using it, xdg-utils wants to use it, and Unity provides a use

Re: XDG_CURRENT_DESKTOP

2011-07-19 Thread Matthias Clasen
On Thu, 2011-07-14 at 11:36 -0400, Michael Terry wrote: Hello! I've seen the idea of a XDG_CURRENT_DESKTOP environment variable tossed around a few times on this mailing list, but I don't see it in any spec. Historically, most desktop file parsing libraries were tightly tied

Re: XDG_CURRENT_DESKTOP

2011-07-19 Thread Marty Jack
On 07/19/2011 09:08 AM, Michael Terry wrote: On 07/14/2011 11:36 AM, Michael Terry wrote: Hello! I've seen the idea of a XDG_CURRENT_DESKTOP environment variable tossed around a few times on this mailing list, but I don't see it in any spec. So XFCE and LXDE are already using it, xdg

Re: XDG_CURRENT_DESKTOP

2011-07-19 Thread Michael Terry
On 07/19/2011 09:38 AM, Marty Jack wrote: Without loss of generality the Exec key can point to a script that sets any environment variable one might want. There is no chance of convincing all DMs to upgrade to do this based on a new key in the XSession file, nor is this special purpose

Re: XDG_CURRENT_DESKTOP

2011-07-18 Thread Rex Dieter
PCMan wrote: Another user of this is xdg-utils. With this environment variable, all dirty code for desktop detection can be removed from xdg-utils. Yay, I'll be happy to incorporate this into xdg-utils, provided someone tells me the values to check for each DE. respond here, file a bug, mail

XDG_CURRENT_DESKTOP

2011-07-14 Thread Michael Terry
Hello! I've seen the idea of a XDG_CURRENT_DESKTOP environment variable tossed around a few times on this mailing list, but I don't see it in any spec. Historically, most desktop file parsing libraries were tightly tied to a desktop and were able to assume which XDG desktop they were in (e.g

Re: XDG_CURRENT_DESKTOP

2011-07-14 Thread Bastien Nocera
On Thu, 2011-07-14 at 11:36 -0400, Michael Terry wrote: Hello! I've seen the idea of a XDG_CURRENT_DESKTOP environment variable tossed around a few times on this mailing list, but I don't see it in any spec. Historically, most desktop file parsing libraries were tightly tied

Re: XDG_CURRENT_DESKTOP

2011-07-14 Thread Michael Terry
On 07/14/2011 11:42 AM, Bastien Nocera wrote: What's the use for this when you could add a set_desktop_name() function in the front-end that uses that library? Is it of any use apart from libgnome-menus? Well, say there's an app FooBar that uses libgnome-menus. How does FooBar know which

Re: XDG_CURRENT_DESKTOP

2011-07-14 Thread Bastien Nocera
On Thu, 2011-07-14 at 11:46 -0400, Michael Terry wrote: On 07/14/2011 11:42 AM, Bastien Nocera wrote: What's the use for this when you could add a set_desktop_name() function in the front-end that uses that library? Is it of any use apart from libgnome-menus? Well, say there's an app

Re: XDG_CURRENT_DESKTOP

2011-07-14 Thread Michael Terry
On 07/14/2011 11:53 AM, Bastien Nocera wrote: Application FooBar being? Off the top of my head, gnome-session-properties, gnome-control-center, and alacarte are all cross-desktop apps that would have an interest in knowing the desktop name to control desktop file parsing. And those are

Re: XDG_CURRENT_DESKTOP

2011-07-14 Thread Nick Schermer
In Xfce XDG_CURRENT_DESKTOP is already used in a number of places as an override for the default XFCE for {Only,Not}ShowIn. An example can be found here [1]. The main purpose in our cases are mostly to make the various parts of Xfce easier to use in other environments. I think no library should

Re: XDG_CURRENT_DESKTOP (was: Adding Unity to OnlyShowIn allowed values)

2011-03-11 Thread PCMan
DE. Since desktop entry spec is used extensively nowadays, even in other specs such as menu and autostart specs, it's important to have a common, easy, and reliable way to check current DE. We already implemented support for this environment variable in our LXDE. When XDG_CURRENT_DESKTOP=GNOME, we

Re: XDG_CURRENT_DESKTOP (was: Adding Unity to OnlyShowIn allowed values)

2011-03-05 Thread Kevin Krammer
' behaviour changes, but that's more of a complaint against XDG_CURRENT_DESKTOP than against OnlyShowIn=Unity I'm unsure why you object. It seem to be something that's generally useful for applications to know. For instance if they wanted to have a configuration check box for Show on Plasma

Re: XDG_CURRENT_DESKTOP (was: Adding Unity to OnlyShowIn allowed values)

2011-03-04 Thread Ted Gould
of a complaint against XDG_CURRENT_DESKTOP than against OnlyShowIn=Unity I'm unsure why you object. It seem to be something that's generally useful for applications to know. For instance if they wanted to have a configuration check box for Show on Plasma Desktop or Show in Messaging Tray or something like