detect xfce, su(do) equivalent

Egon Kocjan egon at krul.ath.cx
Thu Mar 19 14:04:27 CET 2009


Olivier Fourdan pravi:
> On Thu, Mar 19, 2009 at 11:02 AM, Egon Kocjan <egon at krul.ath.cx> wrote:
>   
>> How do I check, if the user is running xfce?
>> (for example, to detect gnome, check for env. var. GNOME_DESKTOP_SESSION_ID)
>>     
>
> Which is completely broken because one may set
> GNOME_DESKTOP_SESSION_ID on purpose to defeat programs that try to be
> smart by detecting the desktop (e.g. some older open office of java
> versions from sun)
>
>   

That's what xdg-open does I believe...

But I'm open to suggestions, I'm trying to make a reasonable 
cross-linux-distro/desktop su(do) solution for non-technical users, that 
installs stuff into /opt. So far, I've come up with this:
kde -> kdesu
gnome -> gksu
xfce -> ktsuss (and gksu as a fallback?)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20090319/e7e52ff7/attachment.html>


More information about the Xfce mailing list