You are not logged in.

#1 2016-03-18 18:49

davidmen
Member
Registered: 2016-03-18
Posts: 8

customizing menu entry

Hi all, I'd like to customize the dialog that shows up after clicking the "log out" item on menu.
I've seen it's possible to change it by means of settings:/Components/session manager in control panel, hiding every entries but "end current session", but i'd like to show also "turn off" and "restart", which file do I need to edit?
Thanks, ciao

Offline

#2 2016-03-19 09:21

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: customizing menu entry

davidmen wrote:

.. i'd like to show also "turn off" and "restart"

You can't do that, it's hardcoded.

Offline

#3 2016-03-24 07:57

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,333

Re: customizing menu entry

There is a way round this.
The normal logout shutdown dialog is handled by ksmserver.
In your ./trinity/share/config you'll see kmserverrc - that's where your choices are stored.
There's not much you can do here to achieve your objective.

However this:-
https://sites.google.com/site/pmitev/to … outrestart
is what you're looking for.

tips & tricks >
KDE: shutdown, logout, restart
posted Jun 24, 2010, 1:34 PM by Pavlin Mitev

example command '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 have tried using the suggested 0 2 2 config, but I think 0 2 3 or 020 may be a little kinder. I have used all 3.

As yet I'm unsure as to what it does to running applications - Seamonkey came back with a Restore Session which seems to indicate it does a straight kill.
This may or may not hurt KDE.

So, given it runs as a user you could create a desktop icon running that command and get instant shutdown - probably best if you make sure all applications are closed first!!

Hope this helps

Offline

#4 2016-03-25 19:03

davidmen
Member
Registered: 2016-03-18
Posts: 8

Re: customizing menu entry

Thank You very much bin, when i find some free time I'll try to play with it

Offline

#5 2016-03-26 00:38

bobby
Member
From: Nevada, USA
Registered: 2015-12-24
Posts: 459
Website

Re: customizing menu entry

@bin, I tried all the XXX combinations. I like this a lot. Thanks.


No Longer Using Q4OS

Offline

Board footer

Powered by FluxBB