<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I have got it to work with the help from KDE enterprise developer!<br>
<br>
First, the relevant file should be whatever kdeglobals file the
command "kde4-config --path config" lists.<br>
<div>
<div><br>
Second, need to set the config to:<br>
</div>
</div>
<br>
switch_user=false<br>
<br>
<div>*as well as* <br>
<br>
action/switch_user=false<br>
</div>
<div><br>
</div>
It is a bug in the underlying code, one of the many things that got
fixed properly when they redid everything in Plasma5. It's much
improved in this area.<br>
<br>
<br>
In my case, what I did was:<br>
<br>
1. "<b>kde4-config --path config</b>" returns:<br>
<br>
~/home/zaiwen/.kde/share/config/:/etc/kde/:/usr/share/kde-settings/kde-profile/default/share/config/:/usr/share/config/<br>
<br>
2. Go through all the folders and find two kdeglobals files:<br>
<br>
~/home/zaiwen/.kde/share/config/kdeglobals<br>
/usr/share/kde-settings/kde-profile/default/share/config/kdeglobals<br>
<br>
3. Update <b>~/home/zaiwen/.kde/share/config/kdeglobals</b> with:<br>
<br>
[KDE Action Restrictions]<br>
<b>action/switch_user=false</b><b><br>
</b><b>
switch_user=false</b><br>
action/start_new_session=false<br>
start_new_session=false<br>
action/lock_screen=false<br>
lock_screen=false<br>
<br>
4. Update <b>/usr/share/kde-settings/kde-profile/default/share/config/kdeglobals</b>.
In this file, it contains one line which doesn't allow users to
change KDE Action. Remove this line:<br>
<br>
<b>[KDE Action Restrictions][$i]</b><br>
<br>
Now when I login, "Switch User" and "Lock" are removed from the
Leave menu!<br>
<br>
Thanks a lot!<br>
<br>
Zaiwen
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 03/13/18 10:04, Zaiwen Gong wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c2f7fd3c-6941-d2cc-577d-f500a3238500@bnl.gov">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<p>Hi Kevin and René J.V. Bertin,</p>
<p>I did some tests. <br>
<br>
With Plasma 5 (plasma-desktop-5.10.5-1.fc27.x86_64), I got it to
work by appending the following lines to my "<b>$HOME/.config/kdeglobals</b>":
<br>
<br>
[KDE Action Restrictions] <br>
action/start_new_session=false <br>
action/switch_user=false <br>
action/lock_screen=false <br>
<br>
But I can't get it to work with Plasma 4.10. I tried
$HOME/.config/kdeglobals", $HOME/.kde/share/config/kdeglobals,
ksmserverrc, plasma-desktoprc, plasma-desktop-appletsrc, none
is working. <br>
<br>
Not sure if it is not supported in Plasma 4 or is it because I
don't install plasma 4 correctly?<br>
</p>
<p>Thanks,</p>
<p>Zaiwen<br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 03/13/18 05:36, Kevin Krammer
wrote:<br>
</div>
<blockquote type="cite" cite="mid:1775943.LBtl2H4QkP@athena">
<pre wrap="">On Dienstag, 13. März 2018 10:30:53 CET René J.V. Bertin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Monday March 12 2018 10:05:46 Kevin Krammer wrote:
Hi,
[...]
</pre>
<blockquote type="cite">
<pre wrap="">You could also try ksmserverrc or plasmarc
Also consider asking at the KDE Enterprise mailinglist
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/enterprise" moz-do-not-send="true">https://mail.kde.org/mailman/listinfo/enterprise</a>
It is used by sysadmins who manage KDE deployments and often discuss action
restrictions.
</pre>
</blockquote>
<pre wrap="">I've often tried to configure the "Leave" menu so it never includes the
Suspend-to-Disk option. Same advice, or is that something I should address
at a level below KDE?
</pre>
</blockquote>
<pre wrap="">I would say generally same advice (ask on kde-enterprise), but if you want to
disable it globally then there might indeed be a system level option.
Zaiwen's problem was a bit different since only specific accounts should have
the options disabled.
Cheers,
Kevin
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>