Author Topic: "installing" an application without installing  (Read 2668 times)

rrashkin

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://pwp.t-3.cc/rrashkin
"installing" an application without installing
« 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?
Bob Rashkin
rrashkin@csc.com
SL5500/Sharp3.1
Targus IR keyboard

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
"installing" an application without installing
« Reply #1 on: June 17, 2004, 02:29:16 pm »
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]
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

rrashkin

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • http://pwp.t-3.cc/rrashkin
"installing" an application without installing
« Reply #2 on: June 17, 2004, 03:34:44 pm »
Thanks, it\'s working!
Bob Rashkin
rrashkin@csc.com
SL5500/Sharp3.1
Targus IR keyboard