DEV Community

meotism
meotism

Posted on • Edited on

2

How to create turn off icon in linux?

Hi, I'm Tuan. Today I will create shutdown icon for linux operating system.

  • you are in a hurry, want to shutdown quickly on ubuntu complicated shutdown operations, type the command that makes you uncomfortable. Let's learn about creating shutdown icon. I will help you to create a turn off icon for ubuntu. You can only install the icon on your computer screen. To create the icon, it must go through the following steps:
  1. Create a file named turn-off.desktop using terminal cat > turn-off.desktop

  2. Turn on write file mode and write the command line:
    [Desktop Entry]
    Version=x.y
    Name=Shut down icon
    Comment = create by Tuan Tran
    Exec=/sbin/shutdown -Ph now
    Icon=/usr/share/icons/Humanity/places/16/folder_home.svg
    Terminal=false
    Type=Application
    Categories=Utility;Application;

    Image description

  3. Left click enable properties and go to permission tab allow executing file as program
    Image description

  4. Right click allow lauching and here is the result:
    Image description
    So you are done creating the shutdown icon. good luck!

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay