JWM entry to GDM fail to start

I try to add JWM to gdm, so I do the follow steps:

- I've create a JWM.desktop file in /usr/local/etc/dm/Session which contain:
Code:
[Desktop Entry]
Name=JWM
Exec=/usr/local/etc/gdm/Sessions/JWM

and in /usr/local/etc/gdm/Sessions I created a script which contain:
Code:
#!/bin/sh

startjwm

So my problem is that JWM appear in gdm as an entry but fail to start. Can someone give me an advice in this matter I will be very grateful.
 
If You mean at this line:
Code:
$echo "/usr/local/bin/startjwm" >> ~/.xinitrc
I did it, but jwm still fail to start, it is possible that the issue be from the fact that I have installed another DM (Xfce4)?
 
Code:
~> which startjwm
startjwm: Command not found.

but when try which startxfce4 returns
Code:
~> which startxfce4
/usr/local/bin/startxfce4

I don't understand where can be the problem. Anyway thanks for Your time and for quick answers.
 
Ok, I understand but:
Code:
~> which jwm
/usr/local/bin/jwm
which means that JWM is installed. What I don't understand is why startjwm doesn't exist.
Code:
$echo "/usr/local/bin/startjwm" >> ~/.xinitrc


I could installing SLIM instead of GDM, but that only avoid the problem not solve it and this is not an option to me, as an physicist I solve problems not avoid them.
 
Okay, let's back up a second. startxfce4 is a big shell script that xfce installs to do a lot of startup stuff. Window managers in general are not required to have a "startxyz" command. And "startxfce4" is just a name; it could be called something else and would still work. That's what I meant by saying the "start" portion is not a command, just a name. For example, twm(1), the simple window manager that is installed with xorg, is run by just giving the command name: twm.

I have not tried x11-wm/jwm, but it only installs two files. One of those is a non-executable config file. The other is /usr/local/bin/jwm. So running that command from .xinitrc is a good guess.

It may not work. jwm might want some things set up beforehand. Those could be added to .xinitrc or you could even create a startjwm command to do it. What else might be needed, I don't know. There is a link to the JWM web page in /usr/ports/x11-wm/jwm/pkg-descr that could be useful.
 
I solve the problem by adding a jwm.desktop in /usr/local/share/xsessions which contains:
Code:
[Desktop Entry]
Encoding=UTF-8
Name=JWM session
Comment=Use this session to run JWM as your desktop environment
Exec=jwm
Icon=
Type=Application

Thread can be closed! Problem solved.
 
Back
Top