How to get rid of the hibernate entry in start menu?

When installing EOS KDE on my main hardware, I didn’t enable hibernate mode. But the entry in start menu was created for switching into the hibernate mode.

How can I remove that entry? It is only an optical issue but I just wanted to know. :wink:

I don’t know about all the menus but with the application dashboard, you can just right click and select remove.

1 Like

Will try that. Actually, I’m not sitting in front of my PC. :wink:

By disabling hibernation.
One way is through polkit rules.

/etc/polkit-1/rules.d/99-disable-hibernate.rules

// Disable hibernate for all users
polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.login1.hibernate")) {
      return polkit.Result.NO;
   }
});
polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.login1.hibernate-multiple-sessions")) {
      return polkit.Result.NO;
   }
});
4 Likes

Hmmm, but I didn’t enable it via installation. :thinking:
But I’ll try it later. :wink:

That’s it! Worked great. Hibernate mode is gone from start menu now.

Thanks! :+1:

1 Like

This in the terminal is how I always get rid of hibernate from the start menu…

$ sudo systemctl mask hibernate.target hybrid-sleep.target

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.