Author Topic: Creating Icons(shortcuts)  (Read 2896 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Creating Icons(shortcuts)
« 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?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

jfv

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
Creating Icons(shortcuts)
« Reply #1 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
SL 5000 D  and C860 Sharp ROM
Too many accessories...

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Creating Icons(shortcuts)
« Reply #2 on: July 13, 2005, 03:01:42 pm »
perfect thanks:)

quick question, where do I modify $path variable?
« Last Edit: July 13, 2005, 03:03:53 pm by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Absolute Nirvana

  • Newbie
  • *
  • Posts: 32
    • View Profile
Creating Icons(shortcuts)
« Reply #3 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
Zaurus SL-C1000
PdaXrom 1.1.0 beta 2
Brando Ultra Clear Screen Protector
512MB Viking CF, Crucial 128MB MMC
Ambicom WL1100 CF wifi
Custom hand-sewn case (made out of headliner)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Creating Icons(shortcuts)
« Reply #4 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
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder