Help - Search - Members - Calendar
Full Version: "installing" an application without installing
OESF Forums > General Forums > General Support and Discussion > Software
rrashkin
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?
cvmiller
QUOTE
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

I hope this helps,

Craig...[/b]
rrashkin
Thanks, it's working!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.