Re: programmatically determining the desktop environment of a system

2017-03-19 Thread Dan Hitt
Thanks Stefan for your reply. Stefan: i think you're right, that's sort of my experience as well, although sometimes some programs feel more broken in one environment than another. (Like, with a certain desktop, iirc, some programs made good use of having a right click on the dock, some didn't, a

Re: programmatically determining the desktop environment of a system

2017-03-18 Thread Stefan Monnier
> Could i identify the environment by inspecting the file system (for > example)? (I imagine the answer there must be 'no', because different > users could have different environments but necessarily share the same > file system, but maybe i'm making some unjustified assumptions?) That's right.

Re: programmatically determining the desktop environment of a system

2017-03-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Mar 17, 2017 at 08:09:31PM -0700, Dan Hitt wrote: > Thanks Dominik, Steve, and Tomas for your mail. [...] > That is, i think usually the best practice is to do capability > detection (like the autoconf apparatus or jquery does) and then use >

Re: programmatically determining the desktop environment of a system

2017-03-17 Thread Dan Hitt
Thanks Dominik, Steve, and Tomas for your mail. For reference, Steve Litt responded to me privately to consider first running 'ps axjf' by hand, in which case the environment should be obvious, presumably doing this in a few different environments, and then attempting to write some parsing code wh

Re: programmatically determining the desktop environment of a system

2017-03-17 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Mar 16, 2017 at 10:17:37PM -0700, Dan Hitt wrote: > Is there a programmatic way that a piece of software can learn what > desktop environment it is executing in? Just out of curiosity: what is (roughly) your use case? (Personally I think it's

Re: programmatically determining the desktop environment of a system

2017-03-16 Thread Dominik George
Hi, >Is there a programmatic way that a piece of software can learn what >desktop environment it is executing in? Short answer: No. Long answer: http://unix.stackexchange.com/questions/116539/how-to-detect-the-desktop-environment-in-a-bash-script Cheers, Nik

programmatically determining the desktop environment of a system

2017-03-16 Thread Dan Hitt
Is there a programmatic way that a piece of software can learn what desktop environment it is executing in? For example, i'm using xfce, and i can tell that i'm using xfce by clicking on 'Applications' in the top menu bar and there's this item that says 'About Xfce'; if you click on it it it looks