Sep 19, 2004, 2:28 PM
Post #2 of 4
(1155 views)
Permalink
Claudinei Matos wrote:
> hey,
>
> how to add WindowMaker to GDM Session list?
> I've looked at gdm.conf but there's no lines where could I add
> WindowMaker.
> The only options I have are gnome, failsafe and "default" which is
> failsafe too.
>
> Tks,
>
> Claudinei Matos
>
>
No, the session list is created from the session files existing in
/etc/X11/Sessions and /etc/X11/dm/Sessions.
The way I usually do this is to:
1) open a text editor as root.
2) from within the text editor, open one of the "other wm".desktop files
in /etc/X11/Sessions.
Now, for this step, you have a bit of a problem, since you only have
GNOME, and the GNOME session file is a whole script, which is not what
you so much want or need.
So instead, go to /etc/X11/dm/Sessions, and open the 'custom.desktop'
file you should find there. This at least is in the standard format for
GDM session files (KDM and XDM, too-- they all read from these folders
for their session lists).
My 'custom.desktop' file looks like this:
[Desktop Entry]
Encoding=UTF-8
# The names/descriptions should really be better
Name=Custom Session
Comment=This starts a custom session
Exec=custom
# The "custom" Exec is a very special one and is handled specially in
# the Xsession script and just runs "~/.xsession" directly
Icon=
Type=Application
Now, what you want to do is edit the Name (to WindowMaker), the Comment
(to something like 'This starts WindowMaker'; optional, obviously, but
it will get annoying to see this tooltip being wrong if you don't change
it), and the Exec= to whatever is the command to start Windowmaker
(something like /usr/bin/wm, isn't it?)
So you would wind up with
[Desktop Entry]
Encoding=UTF-8
# The names/descriptions should really be better
Name=WindowMaker
Comment=This starts a custom session
Exec=/usr/bin/wm #assuming that's correct; I really don't remember
Icon=
Type=Application
3) The very most important step-- save this file AS windowmaker.desktop.
Do NOT click "Save" (or you will lose the regular file, which you don't
want).
Anyway, that's it. The Windowmaker session should now appear in your
GDM session list. Dunno why sessions aren't created automatically for
many WMs when they are installed, but they often aren't. Seems to depend
on the WM, and the DM as well to some extent.
Anyway, hope this helps.
Holly
Holly
--
gentoo-user@gentoo.org mailing list