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!

Image of Datadog

Master Mobile Monitoring for iOS Apps

Monitor your app’s health with real-time insights into crash-free rates, start times, and more. Optimize performance and prevent user churn by addressing critical issues like app hangs, and ANRs. Learn how to keep your iOS app running smoothly across all devices by downloading this eBook.

Get The eBook

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay