Desktop file for a service

Hello everyone :smiley:
How can I create a desktop file for a service to start?
the service is sudo systemctl start emby-server.service
I want it to start with sudo permission when clicked
you can provide me with the steps is to achieve this or you can give me the format for the desktop file
Help would be appreciated

Can you tell me how to create a shell script to start the service
: sudo systemctl start emby-server.service

All you need is


sudo service emby-server start

Set it as exec, you can also set a delay to the startup with sleep.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.