![]() |
2010-04-15
, 13:26
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#2
|
![]() |
2010-04-15
, 14:20
|
Posts: 146 |
Thanked: 149 times |
Joined on Apr 2010
|
#3
|
![]() |
2010-04-15
, 14:36
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#4
|
![]() |
2010-04-15
, 14:45
|
Posts: 146 |
Thanked: 149 times |
Joined on Apr 2010
|
#5
|
#include <QApplication> #include "ConfigurationWizard.h" #include "BackgroundTask.h" #include "Settings.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); QApplication ::setOverrideCursor(QCursor(Qt::BlankCursor)); Settings settings; ConfigurationWizard window(settings); BackgroundTask backgroundTask(settings); QObject::connect(&backgroundTask, SIGNAL(showConfig()), &window, SLOT(showFullScreen())); return app.exec(); }
![]() |
2010-04-15
, 15:04
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#6
|
![]() |
2010-04-15
, 15:10
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#7
|
![]() |
2010-04-15
, 15:11
|
Posts: 146 |
Thanked: 149 times |
Joined on Apr 2010
|
#8
|
description "Starts the imhere application" start on started hildon-desktop exec /etc/init.d/imhere start stop on starting shutdown
#!/bin/sh case "$1" in start) echo "IMHERE INIT CALLED" >> /home/user/startuplog /usr/bin/imhere ;; *) esac echo "IMHERE INIT EXITING" >> /home/user/startuplog exit 0
MHERE INIT CALLED IMHERE INIT EXITING
![]() |
2010-04-15
, 15:15
|
Posts: 146 |
Thanked: 149 times |
Joined on Apr 2010
|
#9
|
I know nothing about Upstart, so all I can do is give lame hints.
You may need the D-Bus initialization routines from http://talk.maemo.org/showpost.php?p...9&postcount=16 and, also, have you tried making it start when hildon-desktop has done so? I believe it's something like "start on started hildon-desktop" (alternatively, "start on started xsession" may work for you) in your Upstart service definition.
echo "SOME TEXT" sleep 180 echo "SOME TEXT" /usr/bin/imhere echo "SOME TEXT"
![]() |
2010-04-15
, 15:16
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#10
|
start on started hildon-desktop script /usr/bin/imhere end script
I am struggling now for over 12 hours with a problem of starting my application after the boot.
I have created scripts and saved them in following locations:
/etc/init.d/imhere
/etc/init.d/imhere_run_later
then I have used "ln -s" command to create a link to /etc/init.d/imhere from /etc/rc2.d/S99imhere
Unfortunately my application did not start. I started playing around with those files in init.d and finally ended up with following:
/etc/init.d/imhere:
I have modified also /etc/init.d/hulda by adding at the beggining of the file following piece of code:
If I run myself the script /etc/init.d/imhere from terminal, the startuplog file will fill up with "SLEPT..." and the other echoed text as expected and /usr/bin/imhere starts running.
Question is: Why my own scripts are not called/executed at startup?
Thanks in advance.
Last edited by rachol; 2010-04-15 at 13:02.