Is there a method to logout from a session from a script?
Now at 23.00 my desktop does a tdm-trinity stop, followed by a shutdown, I would like to logout first an then stop trinity.
Am Mittwoch, 17. Januar 2018 schrieb Roel Wagenaar:
Is there a method to logout from a session from a script?
Now at 23.00 my desktop does a tdm-trinity stop, followed by a shutdown, I would like to logout first an then stop trinity.
You could do the following, depending on what you want to achieve:
Just perform logout, if TDE is configured to shutdown after logout, it will turn off the computer (in most cases), but you will have to run it some minutes before shutdown:
$ dcop ksmserver ksmserver logout
If you want to ensure the session is saved, you can do something like:
$ dcop ksmserver ksmserver saveCurrentSession $ ksmserver ksmserver logout # sleep 10; poweroff
You do not need to explictly stop tdm, initiating a system shutdown will do that for you.
Nik
"Dr. Nikolaus Klepp" office@klepp.biz wrote:
Am Mittwoch, 17. Januar 2018 schrieb Roel Wagenaar:
Is there a method to logout from a session from a script?
Now at 23.00 my desktop does a tdm-trinity stop, followed by a shutdown, I would like to logout first an then stop trinity.
You could do the following, depending on what you want to achieve:
Just perform logout, if TDE is configured to shutdown after logout, it will turn off the computer (in most cases), but you will have to run it some minutes before shutdown:
$ dcop ksmserver ksmserver logout
Thanks for your answer.
This unfortunately ends in an error message;
roel@dt5:~$ dcop ksmserver ksmserver logout Not enough arguments (expected 0, got 0).
On Thursday 18 of January 2018 11:31:05 Roel Wagenaar wrote:
"Dr. Nikolaus Klepp" office@klepp.biz wrote:
Am Mittwoch, 17. Januar 2018 schrieb Roel Wagenaar:
Is there a method to logout from a session from a script?
Now at 23.00 my desktop does a tdm-trinity stop, followed by a shutdown, I would like to logout first an then stop trinity.
You could do the following, depending on what you want to achieve:
Just perform logout, if TDE is configured to shutdown after logout, it will turn off the computer (in most cases), but you will have to run it some minutes before shutdown:
$ dcop ksmserver ksmserver logout
Thanks for your answer.
This unfortunately ends in an error message;
roel@dt5:~$ dcop ksmserver ksmserver logout Not enough arguments (expected 0, got 0).
For details see:
https://andrejserafim.wordpress.com/2008/05/16/kde-shutdown-logout-restart/
Cheers
Slávek Banko wrote:
For details see:
https://andrejserafim.wordpress.com/2008/05/16/kde-shutdown-logout-restart/
Cheers
Shouldn't be such information hosten on TDE as new KDE is not DCOP based anmyore?
On Thu, 18 Jan 2018 23:53:22 +0100 deloptes deloptes@gmail.com wrote:
Slávek Banko wrote:
For details see:
https://andrejserafim.wordpress.com/2008/05/16/kde-shutdown-logout-restart/
Cheers
Shouldn't be such information hosten on TDE as new KDE is not DCOP based anmyore?
Anyone who pleases can add it to the wiki. I agree that keeping notes on this sort of thing seems useful. Maybe a "Tweaks and Tips" page?
E. Liddell
Am Freitag, 19. Januar 2018 schrieb E. Liddell:
On Thu, 18 Jan 2018 23:53:22 +0100 deloptes deloptes@gmail.com wrote:
Slávek Banko wrote:
For details see:
https://andrejserafim.wordpress.com/2008/05/16/kde-shutdown-logout-restart/
Cheers
Shouldn't be such information hosten on TDE as new KDE is not DCOP based anmyore?
Anyone who pleases can add it to the wiki. I agree that keeping notes on this sort of thing seems useful. Maybe a "Tweaks and Tips" page?
E. Liddell
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
+1
There are a lot of goodies hidden in the mailinglist.
Nik
Am Freitag, 19. Januar 2018 schrieb deloptes:
Dr. Nikolaus Klepp wrote:
+1
There are a lot of goodies hidden in the mailinglist.
Nik
perhaps someone that has the time and knowledge can create a wiki account and put things together.
Ok, I placed it here: https://wiki.trinitydesktop.org/Community_Collected_Tips_%26_Tricks Nik
Dr. Nikolaus Klepp wrote:
Ok, I placed it here: https://wiki.trinitydesktop.org/Community_Collected_Tips_%26_Tricks Nik
well, the idea was to put the documentation from https://andrejserafim.wordpress.com/2008/05/16/kde-shutdown-logout-restart/
the solution you posted does not work without 0 2 2
dcop ksmserver ksmserver logout 0 2 2
First parameter: confirm Obey the user’s confirmation setting: -1 Don’t confirm, shutdown without asking: 0 Always confirm, ask even if the user turned it off: 1 Second parameter: type Select previous action or the default if it’s the first time: -1 Only log out: 0 Log out and reboot the machine: 1 Log out and halt the machine: 2 Third parameter: mode Select previous mode or the default if it’s the first time: -1 Schedule a shutdown (halt or reboot) for the time all active sessions have exited: 0 Shut down, if no sessions are active. Otherwise do nothing: 1 Force shutdown. Kill any possibly active sessions: 2 Pop up a dialog asking the user what to do if sessions are still active: 3
and source
regards
Am Freitag 19 Januar 2018 schrieb deloptes:
Dr. Nikolaus Klepp wrote:
Ok, I placed it here: https://wiki.trinitydesktop.org/Community_Collected_Tips_%26_Tricks Nik
well, the idea was to put the documentation from https://andrejserafim.wordpress.com/2008/05/16/kde-shutdown-logout-restart/
the solution you posted does not work without 0 2 2
dcop ksmserver ksmserver logout 0 2 2
First parameter: confirm Obey the user’s confirmation setting: -1 Don’t confirm, shutdown without asking: 0 Always confirm, ask even if the user turned it off: 1 Second parameter: type Select previous action or the default if it’s the first time: -1 Only log out: 0 Log out and reboot the machine: 1 Log out and halt the machine: 2 Third parameter: mode Select previous mode or the default if it’s the first time: -1 Schedule a shutdown (halt or reboot) for the time all active sessions have exited: 0 Shut down, if no sessions are active. Otherwise do nothing: 1 Force shutdown. Kill any possibly active sessions: 2 Pop up a dialog asking the user what to do if sessions are still active: 3
I added this information to the wiki, but struggled with the wiki formatting. Please check.
Regards, Stefan
Dne pá 19. ledna 2018 Dr. Nikolaus Klepp napsal(a):
Am Freitag, 19. Januar 2018 schrieb deloptes:
Dr. Nikolaus Klepp wrote:
+1
There are a lot of goodies hidden in the mailinglist.
Nik
perhaps someone that has the time and knowledge can create a wiki account and put things together.
Ok, I placed it here: https://wiki.trinitydesktop.org/Community_Collected_Tips_%26_Tricks Nik
By the way, there is already one page for tips and tricks:
https://wiki.trinitydesktop.org/Tips_And_Tricks
Do we want two separate pages or would it make sense to merge them?
Cheers
Am Freitag 19 Januar 2018 schrieb Slávek Banko:
Dne pá 19. ledna 2018 Dr. Nikolaus Klepp napsal(a):
Am Freitag, 19. Januar 2018 schrieb deloptes:
Dr. Nikolaus Klepp wrote:
+1
There are a lot of goodies hidden in the mailinglist.
Nik
perhaps someone that has the time and knowledge can create a wiki account and put things together.
Ok, I placed it here: https://wiki.trinitydesktop.org/Community_Collected_Tips_%26_Tricks Nik
By the way, there is already one page for tips and tricks:
https://wiki.trinitydesktop.org/Tips_And_Tricks
Do we want two separate pages or would it make sense to merge them?
Cheers
Merge, probably, as there is not much on either of them.
Regards, Stefan
Am Freitag, 19. Januar 2018 schrieb Slávek Banko:
Dne pá 19. ledna 2018 Dr. Nikolaus Klepp napsal(a):
Am Freitag, 19. Januar 2018 schrieb deloptes:
Dr. Nikolaus Klepp wrote:
+1
There are a lot of goodies hidden in the mailinglist.
Nik
perhaps someone that has the time and knowledge can create a wiki account and put things together.
Ok, I placed it here: https://wiki.trinitydesktop.org/Community_Collected_Tips_%26_Tricks Nik
By the way, there is already one page for tips and tricks:
https://wiki.trinitydesktop.org/Tips_And_Tricks
Do we want two separate pages or would it make sense to merge them?
Cheers
Hi!
oops, I did not see the other page. Merging would be definitly a good thing - and maybe adding a link to the left side menu of the wiki?
Nik