Gnome launcher shourtcut

Place to discuss Fedora and/or Red Hat
Post Reply
siplus
user
user
Posts: 48
Joined: Sun Jan 12, 2003 1:29 pm
Location: Pa, USA
Contact:

Gnome launcher shourtcut

Post by siplus »

how can i create a shortcut in a gnome panel, for example, to ~/games/nwn/nwn/nwn

normally to run Neverwinter Nights i just cd ~/nwn/nwn and do ./nwn, but now as playing the game is becoming more common, i want to just add a launcher in my gnome panel.

(don't ask why i have two directories named 'nwn' :) )

i tried ./home/siplus/nwn/nwn/nwn, and /home/siplus/nwn/nwn/.nwn, but i'm not sure what to make the path for the command....

somehow i have to have the launcher change directory to /home/siplus/nwn/nwn and then run ./nwn

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

You should be able to use put "/home/siplus/nwn/nwn/nwn" in the "Command" box. That may not change into the /home/siplus/nwn/nwn directory first though. Worst case scenerio is to create a script and put it in your ~/bin directory:

~/bin/nwn:

Code: Select all

#!/bin/sh
cd /home/siplus/nwn/nwn
./nwn
and put that in the "Command" box of your launcher (/home/siplus/bin/nwn). Don't forget to "chmod +x ~/bin/nwn".

Post Reply