mimas,
I started to compile obsession for JWM again, but then realized I had not changed the "OpenBox" string to "JWM". So, I started reading through the source files. In obsession.h is this section:
enum {
NONE = 0,
UPOWER,
CONSOLEKIT,
SYSTEMD,
GDM,
KDM,
LIGHTDM,
LXDM
};
Can JWM be added? I'm not sure it will make any difference. Here's why. I looked at obsession-logout.c and saw this section:
/* Handler for "clicked" signal on Logout button. */
static void logout_clicked(GtkButton * button, HandlerContext * handler_context)
{
/* kill(handler_context->lxsession_pid, SIGTERM); */
g_spawn_command_line_async("openbox --exit", NULL);
gtk_main_quit();
}
It's why the Logout function doesn't work in JWM. The function sends a SIGTERM to lxsession, but the process is not running. From what I can see, the only display manager functions running with SLIM/JWM are:
/usr/bin/slim -d (as root) and
x-session-manager (as normal user).
Logout is handled in the .jwmrc (XML file) with the function:
<Exit label="Logout" confirm="false">
Reboot and Shutdown I'm doing with ConsoleKit. Can obsession be modified for JWM?