You are not logged in.

#1 2011-09-09 10:17:06

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

Right way to close a Compiz standalone session?

Hello,

i`m using compiz + emerald + avant window navigator as my DE. Is there a program which gives me a logout/suspend/restart/halt option? Exspecially i`m interested in a "logout" method So far i`m using the cli to "halt" the system. I tried several avant plugins, but they`re all expecting a session menager like xfce4-session or gnome-session. Of course i don`t have a real session and no session manager.

Thanks in advance,

Robert

Offline

#2 2011-09-09 11:02:50

Jelle
Member
From: Netherlands
Registered: 2011-01-30
Posts: 84

Re: Right way to close a Compiz standalone session?

Hey, I was about to post the same question, although under slightly different conditions (standalone WM). I'll wait and see what comes up here.

Offline

#3 2011-09-09 11:21:49

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: Right way to close a Compiz standalone session?

This is what I use to shutdown:
dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
Restart, logoff, etc commands are here:
https://wiki.archlinux.org/index.php/Al … o_Shutdown


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#4 2011-09-09 11:46:20

Jelle
Member
From: Netherlands
Registered: 2011-01-30
Posts: 84

Re: Right way to close a Compiz standalone session?

Everything's there but logoff, or am I missing it? I got everything working except logoff. Using pkill -KILL -u user kills the session, but causes thunar/gvfs to complain about 'transport endpoint not connected' when I sign in again and use thunar.

Last edited by Jelle (2011-09-09 11:47:31)

Offline

#5 2011-09-09 11:57:48

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: Right way to close a Compiz standalone session?

Jelle wrote:

Everything's there but logoff, or am I missing it? I got everything working except logoff. Using pkill -KILL -u user kills the session, but causes thunar/gvfs to complain about 'transport endpoint not connected' when I sign in again and use thunar.

Well, this can only be handled by the aforementioned session manager, as thunar listens to it and closes properly on logoff. Now you have to close thunar before logoff.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#6 2011-09-09 13:23:27

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: Right way to close a Compiz standalone session?

Since I start compiz via fusion-icon, i simply killall fusion-icon.

Damn, thats limerick material...

Offline

#7 2011-09-09 13:27:08

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: Right way to close a Compiz standalone session?

Awebb wrote:

Since I start compiz via fusion-icon, i simply killall fusion-icon.

Why not just exit fusion-icon through the context menu?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#8 2011-09-09 14:27:52

Jelle
Member
From: Netherlands
Registered: 2011-01-30
Posts: 84

Re: Right way to close a Compiz standalone session?

Ok, for me it's solved, perhaps someone else has some use for it. I found this little script in an old thread to end a session cleanly and it works:

#!/bin/bash

skill -TERM -u $(whoami)&
sleep 5 &&
skill -KILL -u $(whoami) &&
sync

Offline

Board footer

Powered by FluxBB