<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7780&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [HowTo] Excalibur + MATE/Xfce: Remove the suspend/hibernate buttons]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7780</link>
		<description><![CDATA[The most recent posts in [HowTo] Excalibur + MATE/Xfce: Remove the suspend/hibernate buttons.]]></description>
		<lastBuildDate>Sat, 14 Feb 2026 11:45:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [HowTo] Excalibur + MATE/Xfce: Remove the suspend/hibernate buttons]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=62166#p62166</link>
			<description><![CDATA[<p>I finally got around to trying this out (Mate). Works perfectly! Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Sat, 14 Feb 2026 11:45:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=62166#p62166</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] Excalibur + MATE/Xfce: Remove the suspend/hibernate buttons]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61744#p61744</link>
			<description><![CDATA[<p>Thank you, I tested it in Xfce - works as intended.</p>]]></description>
			<author><![CDATA[dummy@example.com (Calamity)]]></author>
			<pubDate>Mon, 02 Feb 2026 13:36:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61744#p61744</guid>
		</item>
		<item>
			<title><![CDATA[Re: [HowTo] Excalibur + MATE/Xfce: Remove the suspend/hibernate buttons]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61737#p61737</link>
			<description><![CDATA[<p>Thanks for this. I&#039;m going to try it out this weekend (I&#039;m swamped at work this week).</p>]]></description>
			<author><![CDATA[dummy@example.com (Ron)]]></author>
			<pubDate>Mon, 02 Feb 2026 09:40:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61737#p61737</guid>
		</item>
		<item>
			<title><![CDATA[[HowTo] Excalibur + MATE/Xfce: Remove the suspend/hibernate buttons]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=61728#p61728</link>
			<description><![CDATA[<p>I tested these steps on a fresh install of Excalibur + MATE/Xfce.</p><p><strong>* MATE Desktop: Remove the Suspend/Hibernate buttons from the Shut Down dialog</strong></p><p>We&#039;ll create a PolicyKit rule that disallows suspend and hiberate. The MATE Shut Down dialog will remove those buttons when they&#039;re not allowed.</p><p>- Change to the root user. Only root can access the polkit-1 rules.d directory. The &quot;-w DISPLAY,XAUTHORITY&quot; whitelists these environment variables, so they&#039;ll be copied into the root environment. This lets root run a GUI text editor, such as pluma. If you&#039;re not using a GUI text editor, you can skip the -w args.</p><div class="codebox"><pre><code>sudo su -l -w DISPLAY,XAUTHORITY
cd /etc/polkit-1/rules.d/</code></pre></div><p>- Open a new file in a text editor.</p><div class="codebox"><pre><code>&lt;your_text_editor&gt; 50-disable-suspend-hibernate.rules</code></pre></div><p>- Add these lines:</p><div class="codebox"><pre><code>//Disallowing suspend/hibernate removes the Suspend/Hibernate buttons from the MATE Desktop&#039;s Shut Down dialog.
polkit.addRule(function(action, subject) {
    if (   action.id == &quot;org.freedesktop.login1.suspend&quot;
        || action.id == &quot;org.freedesktop.login1.suspend-multiple-sessions&quot;
        || action.id == &quot;org.freedesktop.login1.suspend-ignore-inhibit&quot;
        || action.id == &quot;org.freedesktop.login1.hibernate&quot;
        || action.id == &quot;org.freedesktop.login1.hibernate-multiple-sessions&quot;
        || action.id == &quot;org.freedesktop.login1.hibernate-ignore-inhibit&quot;
       )
        return polkit.Result.NO;
});</code></pre></div><p>- Test: Open the MATE Desktop Shut Down dialog. The Suspend/Hibernate buttons should no longer be shown.</p><p>* More info<br />&#160; - The action.id strings come from /usr/share/polkit-1/actions/org.freedesktop.login1.policy.<br />&#160; - The policy kit rules&#039;s programming language is JavaScript.<br />&#160; - For details on how the rules file works, go to this web page, section &quot;AUTHORIZATION RULES&quot;.<br />&#160; &#160; &#160; <a href="https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html" rel="nofollow">https://www.freedesktop.org/software/po … kit.8.html</a></p><p><strong>* Xfce: Remove the Suspend/Hibernate/Hybrid Sleep buttons from the Log Out dialog</strong></p><p>Xfce has a setting that shows or hides each button. No need to create a policykit rule. You can do this through the cmd line or the GUI.</p><p>- Set these Xfce settings</p><p>&#160; - Cmd line</p><div class="codebox"><pre><code>xfconf-query --channel &#039;xfce4-session&#039; --create --property &#039;/shutdown/ShowSuspend&#039;     --type &#039;bool&#039; --set &#039;false&#039;
xfconf-query --channel &#039;xfce4-session&#039; --create --property &#039;/shutdown/ShowHibernate&#039;   --type &#039;bool&#039; --set &#039;false&#039;
xfconf-query --channel &#039;xfce4-session&#039; --create --property &#039;/shutdown/ShowHybridSleep&#039; --type &#039;bool&#039; --set &#039;false&#039;</code></pre></div><p>&#160; - GUI</p><div class="codebox"><pre><code>- Applications -&gt; Settings -&gt; Settings Editor
- Click on the Channel &quot;xfce4-session&quot;.
- Add a property with these settings:
  - Property : /shutdown/ShowSuspend
  - Type     : Boolean
  - Value    : False
- Repeat for the property &quot;/shutdown/ShowHibernate&quot; and &quot;/shutdown/ShowHybridSleep&quot;.</code></pre></div><p>- Test: Open the Log Out dialog. It should not have the suspend, hibernate, or hybrid sleep buttons.</p><p>- To restore the default setting<br />&#160; - Cmd line</p><div class="codebox"><pre><code>xfconf-query --channel &#039;xfce4-session&#039; --reset --property &#039;/shutdown/ShowSuspend&#039;
xfconf-query --channel &#039;xfce4-session&#039; --reset --property &#039;/shutdown/ShowHibernate&#039;
xfconf-query --channel &#039;xfce4-session&#039; --reset --property &#039;/shutdown/ShowHybridSleep&#039;</code></pre></div><p>&#160; - GUI</p><div class="codebox"><pre><code>- Applications -&gt; Settings -&gt; Settings Editor
- Click on the Channel &quot;xfce4-session&quot;.
- Click on the desired property.
- Click the Reset button.
  - &quot;Reset&quot; will delete the custom defined setting. Xfce will use the internal default.</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Eeqmcsq)]]></author>
			<pubDate>Mon, 02 Feb 2026 04:38:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=61728#p61728</guid>
		</item>
	</channel>
</rss>
