This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Disable "Hibernate" button?

Tags: None
(comma "," separated)
akis
Registered Member
Posts
2
Karma
0

Disable "Hibernate" button?

Fri Jan 06, 2023 8:17 pm
Hello!

Is it possible to Disable the "Hibernate" button, on the shutdown menu (the one who displayed when you're pressing Ctrl-Alt-Del).
Hibernation here, doesn't work, so if the button activated by mistake, it just crashes the system.
Is it possible to prevent the "Hibernate" option, from displayed there?

TIA.
dzon
Registered Member
Posts
493
Karma
3

Re: Disable "Hibernate" button?

Sat Jan 07, 2023 11:16 pm
Haven't used the default for ages. I use a little zenity script which you can set the way you want. https://imgur.com/a/4SurFOs
1) make the script 2) make the desktop file that points to the script.


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS

Re: Disable "Hibernate" button?

Sun Jan 08, 2023 3:59 pm
akis wrote:Hello!

Is it possible to Disable the "Hibernate" button, on the shutdown menu (the one who displayed when you're pressing Ctrl-Alt-Del).
Hibernation here, doesn't work, so if the button activated by mistake, it just crashes the system.
Is it possible to prevent the "Hibernate" option, from displayed there?

TIA.



How to do so probably depends on your distro, but if you disable hibernation itself, the option should disappear in Plasma.
For Kubuntu and similar *buntu systems, the hibernation option does no appear unless one manually enables this, as Ubuntu disables it as a default.
Once set up, the option appears in Plasma. it *should* go away if hibernation is turned off.


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
akis
Registered Member
Posts
2
Karma
0

Re: Disable "Hibernate" button?

Mon Jan 09, 2023 10:33 am
Thanks a lot friends!!!

I'll try both options.
dzon
Registered Member
Posts
493
Karma
3

Re: Disable "Hibernate" button?

Mon Jan 09, 2023 4:50 pm
If you'd wanna try that zenity thingie..you'll need zenity first of course. Small package, always handie for something.

This is the zenity script. Uum...yeah, you might wanna change some text in there.

#!/bin/bash

shot_type=$(zenity --list --radiolist --height=200 \
--column "Select" --column "One of these..." --width=250 \
TRUE "Logout !" \
FALSE "**** reboot !" \
FALSE "Shutdown Goddammit !" \
--separator=":");

case $shot_type in
"Logout !")
loginctl terminate-user john
;;
"**** reboot !")
systemctl reboot
;;
"Shutdown Goddammit !")
systemctl poweroff
;;
*)
esac


And this is the desktop file for it. Change paths and all that of course.

[Desktop Entry]
Comment=
Exec=/home/john/Scripts/Logout.sh
GenericName=logout
Icon=system-shutdown-symbolic
Name=Logout!
NoDisplay=false
Path[$e]=
StartupNotify=true
Terminal=0
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]