trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: May 2017

Re: [trinity-users] Setting up power-off icon

From: Slávek Banko <slavek.banko@...>
Date: Thu, 1 Jun 2017 01:45:47 +0200
On Thursday 01 of June 2017 01:39:01 Lisi Reisz wrote:
> > I'm not sure if you've noted my link to using dcop:
> >
> >   dcop ksmserver ksmserver logout 0 2 2
> >
> > See
> > https://andrejserafim.wordpress.com/2008/05/16/kde-shutdown-logout-re
> >start/
>
> Thanks, Slávek.  I noted it but didn't understand it. :-(  Sorry.  So I
> googled and got myself in a mess.
>
> I have just been trying with the links offered on the desktop, which I
> understand a bit better now that I have been struggling with that
> script.
>
> I'll definitely look at your suggestion now.  But as I am in fact
> almost there with the desktop link via the right-click on the desktop
> approach (I have just successfully shut it down by clicking on an icon!
>  Just the wrong icon.) I might try to finish that for now and look at
> this as well!  Especially now you have given me more information.
>
> Thank you very much.
> Lisi
>
> I am just not icon-minded. And my scripting days seem to be behind me.
> :-(

Using dcop call of ksmserver should have two advantages:
1) No need to increase user rights == no need for sudo
2) User session will be properly ended (and saved)

Cheers
-- 
Slávek