OESF Portables Forum

General Forums => General Discussion => Topic started by: bam on July 13, 2005, 02:36:00 pm

Title: Creating Icons(shortcuts)
Post 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?
Title: Creating Icons(shortcuts)
Post by: jfv on July 13, 2005, 02:59:30 pm
Write a shell script to start the x server and your app. Something like this:
Code: [Select]
#!/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
Code: [Select]
Exec=freecell.shYou'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
Title: Creating Icons(shortcuts)
Post by: bam on July 13, 2005, 03:01:42 pm
perfect thanks:)

quick question, where do I modify $path variable?
Title: Creating Icons(shortcuts)
Post by: Absolute Nirvana on July 13, 2005, 03:26:08 pm
If you just want to see what directories are currently listed under $PATH go to the console and type

Code: [Select]
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

Code: [Select]
export PATH=$PATH:/path/to/new/directory
Title: Creating Icons(shortcuts)
Post by: bam on July 13, 2005, 11:25:46 pm
cool guys, thanks. Maybe I will actully be able to help someone else...one of these days