PDA

View Full Version : [kubuntu] Creating shortcuts to launch programs



mistypotato
March 8th, 2009, 02:04 AM
Hi,

Here's a tricky one for you......

Creating a shortcut to launch a program is USUALLY a fairly easy, straightforward task.......


BUT (and it's a very big but)...........

What do you do when the target file that is in a folder location such as this?

(The bold type is the command entered)
(The red is the complete folder that the target file is contained in)
So the file is actually in "SQuirrel SQL Client"....WITH SPACES BETWEEN THE WORDS.

cd usr
/usr$ cd local
/usr/local$ dir
bin etc games include lib man sbin share SQuirreL\ SQL\ Client src
:/usr/local$

:popcorn:

Toxicity999
March 8th, 2009, 02:14 AM
Quotes around the path. As in:
cd "/usr/local/path with spaces in it/"

laidback
March 8th, 2009, 02:15 AM
Try putting the file name between quotes, i.e. 'filename'

ekaqu
March 8th, 2009, 02:15 AM
"SQuirrel SQL Client"....WITH SPACES BETWEEN THE WORDS.

...
SQuirreL\ SQL\ Client

To use a file or dir that has spaces, just use a \ right before the white space.

an example from my own computer:


cd /media/FreeAgent\ Drive/Random/Random\ Awesome\ Vids/


This takes me to the location "/media/FreeAgent Drive/Random/Random Awesome Vids/"

or use ""s around the whole thing