OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: rrashkin on June 17, 2004, 12:08:31 pm
-
Greeting.
I wrote a Java application that I can run just fine from the console (QKonsole) by using \"evm dandc\" (dandc is the classname). I thought, just for fun, I\'d try to set up an icon so I can launch it without the console.
1. I copied \"qkonsole.desktop\" from /home/QtPalmtop/apps/Applications to the Documents area on my CF card, and called it \"dandc.desktop\".
2. I created a bash script called \"dandc.sh\" in /mnt/card/QtPalmtop/java, where the class resides. That script contains 2 lines:
cd /mnt/card/Qtpalmtop/java
evm dandc
3. I downloaded an icon (in .png format) to /mnt/card/Documents/Image_files
4. I edited dandc.desktop to show:
- run=/mnt/card/QtPalmtop/java/dandc.sh
- icon=/mnt/card/Documents/Image_files/jedit.png
- name=dandc
5. I copied dandc.desktop back to /home/QtPalmtop/apps/Applications (changed the permissions to 644 like all the other .desktops there).
I was expecting \"dandc\" to now show up in the \"Tab Settings\" selection, but it didn\'t. I realize that I changed a lot of things at once but even so, can someone tell me what I\'m doing wrong, or, how to do it right?
-
I was expecting \"dandc\" to now show up in the \"Tab Settings\" selection, but it didn\'t. I realize that I changed a lot of things at once but even so, can someone tell me what I\'m doing wrong, or, how to do it right?
Hi Bob,
You steps look good, but Qtopia is not smart enough to reload the *.desktop files dynamically. So you have to restart Qtopia. You can do this in one of several ways:
1) reboot - bad, you shouldn\'t need to reboot a linux machine
2) type \'ps ax\' in a terminal and note the PID of qpe, and kill it
3) download and install \'restarter\' , then just tap on it to restart Qtopia (my preferred method.
http://zaurus.xavierxeon.de/main/c750/rest...starter_1.0.ipk (http://zaurus.xavierxeon.de/main/c750/restarter_1.0.ipk)
I hope this helps,
Craig...[/b]
-
Thanks, it\'s working!