[gentoo-user] logout a gnome session with commandline?
Hello. I often remotely login to my other computer using XDMCP (run gdom, select XDMCP chooser...) but the connection could be broken for many reasons (connection down, or the host I am using gets down). The next time I login, it would prompt me something like "you are logined in from another place, do you still wish to login ", and if I click 'yes', I will see dozens of startup application crash because they cannot run twice by same user. Is it possible I logout my previous (connection broken) session by using commandline? Thus I could ssh gets into the host, run the command, and re-login. The local administrator have a straight forward method of #ps U zhangweiwu | awk {print $1} | xargs kill -TERM This solves the problem instantly! I just feeling courious if there are 'better' methods. I remember when I was on Windows there is something like 'session manager' where each logged in session can be manually 'log out', is there similar thing on gnome? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] logout a gnome session with commandline?
Hi Zhang, I don't know for sure if what I'm going to say is true, but I believe that if you kill the gnome-session process being run by your user, it will shutdown the Gnome session and all the apps that are child processes of it. It is a wild guess, but might be worth trying. Hope this helps you out, Raphael ;) 2005/6/21, Zhang Weiwu <[EMAIL PROTECTED]>: > Hello. I often remotely login to my other computer using XDMCP (run > gdom, select XDMCP chooser...) but the connection could be broken for > many reasons (connection down, or the host I am using gets down). The > next time I login, it would prompt me something like "you are logined in > from another place, do you still wish to login ", and if I click > 'yes', I will see dozens of startup application crash because they > cannot run twice by same user. > > Is it possible I logout my previous (connection broken) session by using > commandline? Thus I could ssh gets into the host, run the command, and > re-login. > > The local administrator have a straight forward method of > #ps U zhangweiwu | awk {print $1} | xargs kill -TERM > > This solves the problem instantly! I just feeling courious if there are > 'better' methods. I remember when I was on Windows there is something > like 'session manager' where each logged in session can be manually 'log > out', is there similar thing on gnome? > -- > gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] logout a gnome session with commandline?
Raphael Melo de Oliveira Bastos Sales wrote: > 2005/6/21, Zhang Weiwu <[EMAIL PROTECTED]>: > >>Hello. I often remotely login to my other computer using XDMCP (run >>gdom, select XDMCP chooser...) but the connection could be broken for >>many reasons (connection down, or the host I am using gets down). The >>next time I login, it would prompt me something like "you are logined in >>from another place, do you still wish to login ", and if I click >>'yes', I will see dozens of startup application crash because they >>cannot run twice by same user. >> >>Is it possible I logout my previous (connection broken) session by using >>commandline? Thus I could ssh gets into the host, run the command, and >>re-login. >> >>The local administrator have a straight forward method of >>#ps U zhangweiwu | awk {print $1} | xargs kill -TERM >> >>This solves the problem instantly! I just feeling courious if there are >>'better' methods. I remember when I was on Windows there is something >>like 'session manager' where each logged in session can be manually 'log >>out', is there similar thing on gnome? >>-- > Hi Zhang, > > I don't know for sure if what I'm going to say is true, but I believe > that if you kill the gnome-session process being run by your user, it > will shutdown the Gnome session and all the apps that are child > processes of it. It is a wild guess, but might be worth trying. > > Hope this helps you out, > > Raphael ;) > That's a good idea. Analogously, in kde all my X apps are children of kdeinit. Another idea would be to use nx or xvnc. If you kill the nx or xvnc server then all the clients should die automatically. Zac -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] logout a gnome session with commandline?
Raphael Melo de Oliveira Bastos Sales wrote: >Hi Zhang, > >I don't know for sure if what I'm going to say is true, but I believe >that if you kill the gnome-session process being run by your user, it >will shutdown the Gnome session and all the apps that are child >processes of it. It is a wild guess, but might be worth trying. > >Hope this helps you out, > > No... I tried to kill gnome-session and is successful... all other processes are still running, some even takes cpu time. I feel it's dangerous if all session applications are children of gnome-session: suppose gnome-session crash, should all other application quit? -- gentoo-user@gentoo.org mailing list