questions regarding Launch script.

General support questions
Post Reply
johnpraxel
Posts: 4
Joined: 2017/11/09 18:55:09

questions regarding Launch script.

Post by johnpraxel » 2019/05/16 20:41:11

I have created a script that is a menu that allows me to do function, IE generate reports, ssh, pull specific data from clients on the network. It works well I can run specific commands as from root such powerdown and ssh into all clients etc.

I created a launcher that allows me to start the menu, but I run into problems when running programs it will prompt for the root password. All permission are correct as it work from running the menu.sh script from the command line and all options worked prior.

Here is the launcher:

#!/usr/bin/sh
[Desktop Entry]
Name=Menu
Comment=start the menu program perform maintenance.
Exec=/home/user/Desktop/sys_admin/menu.sh
Icon=gnome-network-properties
Terminal=true
Type=Application

If someone could point me in the right direction it would be most helpful as I am a newbie on this.

Sincerely,

Jon

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: questions regarding Launch script.

Post by aks » 2019/05/17 16:08:14

You don't need the shell header in a .desktop launch file. Gnome complies with XDG: https://specifications.freedesktop.org/ ... atest.html (although which version of XDG and which version og Gnome may come into play).

Post Reply