quick shutdown button on desktop

5r7hr

New Member
Joined
Nov 19, 2025
Messages
14
Reaction score
2
Credits
139
When you use Mac OS you cant get a quick shutdown 1 clik type button on your desktop.Can I do it in Ubuntu which is running on my 2017 Macbook Air with no Mac OS alongside...?Just straight Ubuntu on it....
 


This in the Linux Mint repository, but you may fine similar in Ubuntu....or go look on its hoempage


1763859716179.png



Or...this one: https://launchpad.net/~hakaishi/+archive/ubuntu/qshutdown
 
The command to shut down immediately is sudo shutdown now. With that, you can make your own desktop shortcut.

You can also just remember it. Press CTRL + ALT + T and type in sudo shutdown now and it should work.

You can even alias it, so that it works with whatever command you'd like, like shut.
 
(cough, cough...splutter)

Wha....? 40 MB??? Jeez, ya gotta be joking, surely?

I built my own main shutdown GUI. I also created a 'mini-logout GUI' which I placed at the far right hand end of the tray......the two between 'em barely occupy 230 Kb.

Main :-

Screenshot(557).png


.....and 'mini-tray' :-

Screenshot(558).png


Admittedly, I had to write the scripts....but all it 'cost' me was my time (which is free).

It was good fun, an' all.


Mike. ;)
 
I always shutdown the safe way.
1763937116826.gif
 
You can make a bash script that has 'sudo shutdown now', and make a .desktop file from it, using the icon of your choice.

'sudo shutdown now' is safe enough, the system goes through a normal shutdown which is not instantaneous. The only way I know of to shut down absolutely immediately is to remove power. That's fast, but certainly not safe.
 
I don't know why anyone would need a quick power off button unless a user computer has become infected or about to.
 
I configure the system's power button to do a regular shutdown. Arguably, that's most convenient on a laptop, but I do it on desktops as well.
 
For instance when you're watching "something" and then hear somebody is coming lmao
The only reason a user would need to do that is if they were on their favorite porn website and didn't want whoever to know that.:p
 
There are other reasons, but shutting down isn't the easiest, nor the fastest, way to prevent others from seeing what's being done on the computer. It may be convenient to have a quick and easy way to shut down one's laptop when finished using it, whether or not anyone else is nearby. For me, one key to open my dropdown terminal and quickly typing 'sudo shutdown now' is the quickest and easiest, but I'm not everyone. With KDE, opening the main menu gives quick access to a shutdown link. I suspect there is something similar in most other desktop environments.
 
I have a few more minutes.

Make a file on your desktop. Let's call it shutdown.desktop.

Edit that file with your text editor. Include this:

Code:
[Desktop Entry]
Version=1.0
Name=Immediate Shutdown
Comment=Shut down the system immediately
Exec=systemctl poweroff
Icon=system-shutdown
Terminal=false
Type=Application
Categories=System;Utility;

Save the file.

Note that I've changed the command to systemctl poweroff. This was done to make it more immediate, without needing you to enter your password. As far as I know, most distros (that use systemd) will allow you to do this.

You can muck about with the various settings. Like, I have no idea what you might have for a shutdown icon.
 
1764015309933.png


Somehow it attached its own icon. Very appropriate

works like a dream (not that I need one...I just did this for the exercise)
 
Last edited:


Follow Linux.org

Staff online

Members online


Top