How to add sessions to KDM and GDM

tux.png

Lets say you installed a new window manager, Musca for instance.  And upon installation, no GDM or KDM session was created so you cannot log into it.  Solving this is rather simple.

cd over to /usr/share/xsessions/

if you ls the directory you’ll see several *.desktop files.  Fluxbox’s looks like this:

[Desktop Entry]
Encoding=UTF-8
Name=Fluxbox
Comment=Highly configurable and low resource X11 Window manager
Exec=/usr/bin/startfluxbox
Terminal=False
TryExec=/usr/bin/startfluxbox
Type=Application

[Window Manager]
SessionManaged=true

All you really need to do is the following:

cp /usr/share/xsessions/fluxbox.desktop /usr/share/xsessions/musca.desktop
then modify musca.desktop in a text editor so it looks like the following:

[Desktop Entry]
Encoding=UTF-8
Name=Musca
Comment= Kickass tiling window manager
Exec=/usr/bin/musca
Terminal=False
TryExec=/usr/bin/musca
Type=Application

Related Posts

Comments are closed.