Gnome launcher shourtcut

Place to discuss Fedora and/or Red Hat

Gnome launcher shourtcut

Postby siplus » Mon Jun 07, 2004 7:52 pm

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
siplus
user
user
 
Posts: 48
Joined: Sun Jan 12, 2003 1:29 pm
Location: Pa, USA

Postby Void Main » Mon Jun 07, 2004 8:03 pm

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".
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 0 guests

cron