Active Topics

 


Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on May 2011
#1
Hi, I would like to write some application on Nokia N900 with Maemo 5. My problem is that, I need to launch this application with turning on device. Do you know how can I add my application to autostart? Thanks for all reply and advice.
 
AgogData's Avatar
Posts: 870 | Thanked: 133 times | Joined on Aug 2010
#2
What is your application ? i know desktop widgets are starting right after switching on the phone
 
Posts: 435 | Thanked: 769 times | Joined on Apr 2010
#3
Create a file in /etc/event.d, check the ones already there to get a "template" to follow.
 

The Following User Says Thank You to gionni88 For This Useful Post:
Posts: 2 | Thanked: 0 times | Joined on May 2011
#4
Hmm..., is there anything what I can do from application level? I mean that I want to add my aplication to autostart just with instal it on device.
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#5
Originally Posted by minsc View Post
Hmm..., is there anything what I can do from application level? I mean that I want to add my aplication to autostart just with instal it on device.
I am afraid it is not so easy. A sure fire way to get a program to start is to stick a script in /etc/x11/xsession.post/

What program do you want autostarted?
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 

The Following User Says Thank You to vi_ For This Useful Post:
Posts: 435 | Thanked: 769 times | Joined on Apr 2010
#6
Originally Posted by minsc View Post
Hmm..., is there anything what I can do from application level? I mean that I want to add my aplication to autostart just with instal it on device.
Sure, you can create the file directly from the app. You need root rights to save the file in /etc/event.d, so you can create the file in MyDocs and than moving it with a sudo command. To use sudo command from your app you need to create a sudoers file in /etc/sudoers.d.

If you wish you can deploy the file directly when installing the deb package since dpkg has root rights.
 

The Following User Says Thank You to gionni88 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:57.