OESF Portables Forum
General Forums => General Discussion => Topic started by: bam on July 13, 2005, 02:36:00 pm
-
hey quick question, how do I say, for example, create an icon in qtopia desktop that links to say a freecell game in debian? or x?
-
Write a shell script to start the x server and your app. Something like this:
#!/bin/bash
startx-wrapper
freecell
Maybe you need ampersands (&) at the end of the lines. I don't know. Call it say freecell.sh and put it in /usr/bin/ or somewhere on your $PATH
Now make an entry in /opt/QtPalmtop/apps/Games/ called freecell.desktop and make sure a line is
Exec=freecell.sh
You'll have to create a picture for the icon and put it in a suitable place. Look at the files in /opt/QtPalmtop/apps/Games/ for examples. I've done something like that a while back but not using the x server, so I am not sure this will work.
Felipe
-
perfect thanks:)
quick question, where do I modify $path variable?
-
If you just want to see what directories are currently listed under $PATH go to the console and type
echo $PATH
if you want to add something to $PATH, which i don't think you'll have to as long as you put the script in a directory that's already in $PATH, but you do it as follows if you ever need to
export PATH=$PATH:/path/to/new/directory
-
cool guys, thanks. Maybe I will actully be able to help someone else...one of these days