You are not logged in.

#1 2017-01-02 07:20

MC
Member
Registered: 2015-12-23
Posts: 182

[Solved] I need help creating a desktop file.

I've created a few .desktop files over the years, but this one is eluding me.

Rather than using the log out/shutdown menu, I want to create a "1-click" shutdown launcher/button to shutdown my computer. I know the command in the terminal is shutdown -h -P now, but I don't know what to put after "Exec=" on the .desktop file.

Thanks in advance for any help.

Last edited by MC (2017-01-02 07:48)


Q4OS running Xfce

Offline

#2 2017-01-02 07:38

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,295

Re: [Solved] I need help creating a desktop file.

If you're using xfce then you can do this using existing tools.
In the panel add the Action Button
Right click and go to Properties
Set Appearance to Action Button
Uncheck all actions except for Shutdown
Uncheck Show Confirmation Dialogue.


Attachments:
png xfce-shutdown-only.png, Size: 35.95 KiB, Downloads: 707

Offline

#3 2017-01-02 07:47

MC
Member
Registered: 2015-12-23
Posts: 182

Re: [Solved] I need help creating a desktop file.

It's true..."You learn something new every day."  I never knew that was there.

Thanks Bin! smile


Q4OS running Xfce

Offline

Board footer

Powered by FluxBB