Hello Bernard! > Hi, > > I'm not sure if this is the right place to ask this but here goes. I am > starting stumpWm from gdm (on Ubuntu natty) using a file stumpwm.desktop > in /usr/share/xsessions : > > =========stumpwm.desktop======= > > [Desktop Entry] > Encoding=UTF-8 > Type=XSession > Exec=/home/consultant/bin/stumpwm > TryExec=/home/consultant/bin/stumpwm > Name=StumpWM > Comment=Stump Window Manager > > ======end of file========== > > I was looking for an environmental variable I could use to tell emacs if > stumpwm was running and so I did "set | grep stump" : > > =========================== > > consultant@dell-laptop:~$ set | grep stump > DEFAULTS_PATH=/usr/share/gconf/stumpwm.default.path > DESKTOP_SESSION=stumpwm > GDMSESSION=stumpwm > MANDATORY_PATH=/usr/share/gconf/stumpwm.mandatory.path > XDG_CONFIG_DIRS=/etc/xdg/xdg-stumpwm:/usr/share/ubuntustudio-menu/:/etc/xdg/ > XDG_DATA_DIRS=/usr/share/stumpwm:/usr/local/share/:/usr/share/ > > =========================== > > Presumably gdm sets GDMSESSION and DESKTOP_SESSION from the name of the > exec file, but what puzzles me is what the other variables are for. > None of the files or directories containing the word "stumpwm" actually > exist. Can anyone enlighten me? I hate it when I don't understand > something!
You can use ps to find out wich programs are currently running. Here is the result from my system: % ps ax | grep stump 2299 ? Ss 0:02 /home/stefan/work/git/stumpwm/stumpwm 2333 ? Ss 0:00 /usr/bin/ssh-agent /usr/bin/gpg-agent --daemon --sh --write-env-file=/home/stefan/.gnupg/gpg-agent-info-sandburg /usr/bin/dbus-launch --exit-with-session /home/stefan/work/git/stumpwm/stumpwm 2334 ? Ss 0:00 /usr/bin/gpg-agent --daemon --sh --write-env-file=/home/stefan/.gnupg/gpg-agent-info-sandburg /usr/bin/dbus-launch --exit-with-session /home/stefan/work/git/stumpwm/stumpwm 2337 ? S 0:00 /usr/bin/dbus-launch --exit-with-session /home/stefan/work/git/stumpwm/stumpwm 3462 pts/0 S+ 0:00 grep stump stumpwm.desktop is used to declare a window manager for GDM. These entries are not propagated as environment variables. Stefan. _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/stumpwm-devel