[Pkg-ltsp-devel] Bug#575031: ltspfs: issue KDE popups
Petter Reinholdtsen
pere at hungry.com
Thu Jun 24 09:15:20 UTC 2010
[Vagrant Cascadian]
> this is definitely worth including the the examples section... though it might
> just be seen as noise for a gnome install, so i'm not sure it should be
> installed by default.
I tested it on KDE, and it work there too. I believe it should be
enabled by default to improve the ltspfs user experience a lot.
What about dynamically detect a Gnome session, and not send any
notifications there?
I looked at a Gnome session on Ubuntu/Lucid to try to figure out how
to detect a Gnome session, and some of these environment variables can
probably be used:
root at gnome-desktop:~# cat /proc/4408/environ |tr "\0" "\n"|sort|grep -i gnome|grep -vi keyring
DEFAULTS_PATH=/usr/share/gconf/gnome.default.path
DESKTOP_SESSION=gnome
GDMSESSION=gnome
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path
XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
root at susanoo:~#
For a KDE session on Debian Edu/Lenny, I got these environment
variables set:
pere at kde-desktop ~/ $ env |sort|grep -i kde
DESKTOP_SESSION=kde
KDEDIRS=/usr/share/debian-edu-artwork/kde-profile:/usr/share/debian-edu/networked-kde3:/usr/share/debian-edu/common:/usr
KDE_FULL_SESSION=true
KDE_MULTIHEAD=false
KDE_SESSION_UID=43502
pre at kde-desktop ~/ $
Perhaps the DESKTOP_SESSION variable is a good choice?
Happy hacking,
--
Petter Reinholdtsen
More information about the Pkg-ltsp-devel
mailing list