Active Topics

 


Reply
Thread Tools
Posts: 146 | Thanked: 149 times | Joined on Apr 2010
#11
Tried, didn't help...
 
Posts: 318 | Thanked: 735 times | Joined on Oct 2009
#12
Hi,

try to put some printf in the application itself, there will be something that crash (maybe).
 

The Following User Says Thank You to b0unc3 For This Useful Post:
Posts: 146 | Thanked: 149 times | Joined on Apr 2010
#13
Originally Posted by b0unc3 View Post
Hi,

try to put some printf in the application itself, there will be something that crash (maybe).
Thx,

I have followed your advice, that brought me a bit closer to the soulution.

It crashes/quits/terminates in following line:
Code:
QApplication app(argc, argv)
Now this stuff gets tricky, it seems, that some environment variables or something like that are not set when the application is executed
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#14
Originally Posted by rachol View Post
It crashes/quits/terminates in following line:
Code:
QApplication app(argc, argv)
Now this stuff gets tricky, it seems, that some environment variables or something like that are not set when the application is executed
strange, but have you tried running with run_standalone.sh <your app> ?
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 

The Following 3 Users Say Thank You to krk969 For This Useful Post:
Posts: 146 | Thanked: 149 times | Joined on Apr 2010
#15
Hi,

I have got it working, thx to krk969 again

I have no idea of the reason why, but following file /etc/event.d/imhere didn't work:
Code:
start on started hildon-desktop
script 
        run-standalone.sh /usr/bin/imhere
end script
So I tried to change it to:
Code:
start on started hildon-desktop
exec /etc/init.d/imhere start
stop on starting shutdown
Then I have edited /etc/init.d/imhere file to:
Code:
#!/bin/sh

case "$1" in
  start)
    run-standalone.sh /usr/bin/imhere
	;;
  *)
esac

exit 0
And surprise, surprise it works!! Great! Thank you all, soon(day or two) I will upload an intresting app in extras-devel
 

The Following 3 Users Say Thank You to rachol For This Useful Post:
tuminoid's Avatar
Posts: 188 | Thanked: 185 times | Joined on Dec 2009 @ Finland
#16
AFAIK your problem is trying to start Qt GUI app as root, which isn't gonna work as root cannot connect to X. This is demonstrated by segfault in QApplicatio init. For GUI app I'd suggest starting your app in Xsession, with su - user -c "/path/to/app" (cannot test exact syntax as posting this on the road).
__________________
My wiki: User:Tuminoid
cpumem-applet: home | packages - status: 0.0.3 in Extras

cell-modem-ui: home | packages - status: 0.5.1-1 in Extras
nowplayingd: home | packages - status: 0.1-2 in extras-devel
custom-pwkmenu: home - no packages yet.
 
Posts: 146 | Thanked: 149 times | Joined on Apr 2010
#17
Just checked from curiosity,

su user -c "path" does not work in my case, I have just checked all the possible syntax combinations, none of them worked.

root does not have access to X? it somehow does not sound right... I thought root have access to anything

Anyway, I have been running qt applications as a root hundreds of times, it works.

Thanks anyway for a tip.

Last edited by rachol; 2010-04-15 at 18:57.
 
Posts: 889 | Thanked: 537 times | Joined on Mar 2010 @ scotland
#18
i'm liking the sounds of this interesting app! any teasers? like if i receive a text with the phrase "i want sex" it will auto-reply "be there in ten mins" and set the satnav to the senders adress? :P
__________________
sarcasm may be the lowest form of wit, but its the only wit i have.

its a sad day when i can't slip at least one hitchhiker reference in somewhere.
 
Posts: 146 | Thanked: 149 times | Joined on Apr 2010
#19
Actually, it is doing that already
 
Posts: 12 | Thanked: 1 time | Joined on May 2010
#20
this should also work

start on started hildon-desktop
exec run-standalone.sh /usr/bin/imhere start
stop on starting shutdown
and if you want to run it as user not root:


start on started hildon-desktop
exec run-standalone.sh su user -c /usr/bin/imhere start
stop on starting shutdown
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:17.