Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-05-28 10:18:53

#! CrunchBanger
From: Sweden
Registered: 2010-06-01
Posts: 106

How to add a new entry in GDM? [Solved]

I've installed the Stumpwm with Synaptic and it is not in the list of sesssions of gdm. If I have to add it manually I need to know what file to edit. I've been looking at /usr/share/gdm/default configuration
also /usr/sbin/gdmsetup and this forum, but I don't find the solution.
Thank you.

Last edited by bastiano (2011-05-28 13:32:12)


Be excellent to each other!

#2 2011-05-28 11:11:37

From: Nagoya, Japan
Registered: 2009-01-07
Posts: 2,686

Re: How to add a new entry in GDM? [Solved]

Hi bastiano - I think you need to add a .desktop file to /usr/share/xsessions.
Have a look at what's there already and make a stumpwm.desktop file on similar lines. You'll need to know the command to start a Stumpwm session for the "Exec=..." bit.

When you reboot the option should be there in gdm.

( a boring Japan blog , idle twitterings  and GitStuff )


#3 2011-05-28 12:04:48

#! Resident Bum
Registered: 2009-11-03
Posts: 2,924

Re: How to add a new entry in GDM? [Solved]

It's as Karas-Man said.... you'll need to manually create an entry in your /usr/share/xsessions. I'll just add a bit more to what he mentioned.

Been a long while since I used GDM, but the stumpw.desktop in /usr/share/xsessions should contain something similar this;

[Desktop Entry]
Comment=Launch the Stump window manager

This is assuming the stumpwm executable was installed in a folder in your $PATH (which is highly likely if you installed via apt-get). If the above doesn't work, try replacing the entry for "Exec" with /usr/bin/stumpwm. (it's best to check inside /usr/bin first)

You can create a startup script for your window manager and put it in your /home folder. This has the benefit of being able to include startup apps, daemons, wallpaper, etc (can't recall if StumpWM has it's own start rc file or not) before launching the wm, sorta like what .xinitrc would do on a GDM-less system. If you decide on this, you'll need to enter the path to the script for the "Exec" part in your stumpwm.desktop .... example: Exec=/home/bastiano/bin/

This is what the script might look like (assuming you're on a #! base and the stumpwm executable is in your $PATH;


#Keyboard map
setxkbmap us &

#Wallpaper (requires feh to be installed)
feh --bg-scale /home/bastiano/images/wallpapers/wallpaper.png &

#If you use Thunar as your primary FM
thunar --daemon &

#Other daemons. This one is for Music Player Daemon and Urxvt Terminal
mpd &
urxvtd &

xscreensaver -no-splash &

sleep .2

Important: Remember to make the script executable.

Hope this gives you a rough idea.


Last edited by gutterslob (2011-05-28 20:26:07)

Point & Squirt


#4 2011-05-28 13:25:27

#! CrunchBanger
From: Sweden
Registered: 2010-06-01
Posts: 106

Re: How to add a new entry in GDM? [Solved]

^^Thanks a lot!!
I was getting dizzy looking for stumpwm in the file system. It is in /usr/bin only. I like the option of the script in the /home folder. Now I need to learn the command to make it executable, I know it isn't difficult.

I'm in #!, it has been my first distro. I've tried others in the last months, but I comeback always.

With so much help I can give this post as already solved.

Thank you.


#5 2012-03-04 10:01:49

#! Die Hard
Registered: 2009-03-09
Posts: 1,285

Re: How to add a new entry in GDM? [Solved]

@gutterslob: Thanks smile

Support #!Waldorf • Debian sid • Xubuntu • siduction • Peppermint • OpenBox • Xfce • LXDE •


Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo