Script to show in menu


meandu229

Zubeman
Joined
Mar 20, 2004
Messages
1,170
Age
37
Location
England(north east)
Website
www.zubeonline.com
How can I make a script I wrote appear in the menu much like the op_cpuspeed etc do, Its just a simple rsync script but would like to have it in the menu,


At the moment it would need to open terminal as it is done over ssh and asks for my password for the server but I hope to solve this soon with private keys.


This would also be useful to mount my NAS Drives.
 
Create a file with a .desktop extension in:



Code:
/home/[user name]/.local/share/applications with the extension



The contents should look something like this:



Code:
[Desktop Entry]

Version=1.0

Name=NAS Mounting Script

GenericName=NAS Mounting Script

X-GNOME-FullName=NAS Mounting Script

Comment=My NAS Mounting Script

Exec=/path/to/script.sh

Icon=/path/to/icon.png

StartupNotify=false

Terminal=false

Type=Application

Categories=Settings;
 
Last edited by a moderator:
Cant get this to work


my file looks like



Code:
[Desktop Entry]

Version=1.0

Name=Start Xbox

GenericName=Start Xbox

X-GNOME-FullName=Start XBOX

Comment=Start XBOX

Exec=/media/BIGP/controller.sh

Icon=/media/BIGP/icon.png

StartupNotify=false

Terminal=false

Type=Application

Categories=Settings;

It is saved to


/home/alexh/.local/share/applications/xbox.desktop


(this directory was not already there I had to make it)


What have I done wrong?
 
Well if you simply did a copy/paste onto the post from your script... one thing I notice is caps errors in your naming of "Start Xbox" and "Start XBOX". Good luck. I don't know much on this subject or I would offer more explanations (if there are any).
 
Back
Top