[maemo-developers] How to autostart a graphical Java Swing application?
From: Kees Jongenburger kees.jongenburger at gmail.comDate: Fri Jun 19 11:37:43 EEST 2009
- Previous message: How to autostart a graphical Java Swing application?
- Next message: Is Autobuilder broken?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Martin On Thu, Jun 18, 2009 at 9:54 PM, Martin Wegner <martinator.de at arcor.de> wrote: Hello, I want to autostart a graphical Java Swing application but I don't know how :( I tried this: /etc/init.d/run.sh with this contents: #!/bin/sh sleep 20 /home/user/ejre1.6.0_10/bin/java -classpath /home/user/bin Test When I run this script manually the Java Swing application starts with no problems. So I called: update-rc.d run.sh defaults 99 01 When I boot the Nokia then I can go to the X terminal and wait 15-20 seconds. With a little bit of luck I can see the Java application when I call ps -ef but when I call ps -ef a second time the Java application is not any longer shown in the ps list :( last time I checked this was possible(dangerous?) so please try adding export DISPLAY=:0 to the start of the script There is probably a more Proper way to do this. The clean "x11 way" of doing this is to have it started in the Xsession. this way your software also runs as the "user" user and not root :P. greetings
- Previous message: How to autostart a graphical Java Swing application?
- Next message: Is Autobuilder broken?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]