Notices


Reply
Thread Tools
Posts: 23 | Thanked: 5 times | Joined on Mar 2010 @ TX, USA
#1
I'm trying to use mPlayer in a script that is started from event.d on startup. I'm under the impression that scripts from that origin are as root user and mplayer does not work as root.

I've tried su user -c "mplayer <file>" but that didn't work.

Anyone know how to do this?
 
Posts: 415 | Thanked: 732 times | Joined on Jan 2009 @ Finland
#2
upstart script feels a bit wrong place to do it for me. You could write a desktop file that has the mplayer launch command in the exec line and put the created desktop file in /etc/xdg/autostart/

You can take an existing one from /usr/share/applications/hildon/ and modify it. info about desktop files: http://wiki.maemo.org/Desktop_file_format
 

The Following User Says Thank You to timoph For This Useful Post:
Posts: 23 | Thanked: 5 times | Joined on Mar 2010 @ TX, USA
#3
Hey, very cool. Thanks for showing me these options, I had made a couple shortcuts before but these are great.
 
Posts: 23 | Thanked: 5 times | Joined on Mar 2010 @ TX, USA
#4
I still haven't been able to get a program to start on boot this way.

My .desktop file reads
Code:
[Desktop Entry]
Encoding=UTF-8
Name=MyProgram
Comment=Do Stuff
Icon=
Exec=PATHTOPROGRAM
Type=Application
Version=1.0
X-Maemo-Prestarted=always
NoDisplay=true
I tried to copy from the existing trackerd file in the directory but didn't make any progress. This is trimmed down a bit from what I tried first, no success from any version though.
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:09.