PDA

View Full Version : How to start Opera or Media player from Xterm


Bernard
04-08-2007, 08:54 AM
I'm trying to find out how to launch the Webbrowser (and open a website) and how to open the normal MediaPlayer using the command line. (on the N800)

If I open xterm I can launch most programs that I have installed by just typing them in:
If I type: "mediastreamer" (without the quotes) the mediastreamer app launches
if I type: "gmplauncher" the simple mplayer GUI launches. (same goes for "rdesktop" , "mplayer" etc.)

I'm trying to launch the default media player and make it open an url from the command line (a real media stream). But I can't seem to be able to find how I should do that.
I tried the 3 "media" item I could find:
"mediaplayer-engine"
"mediaplayer-ui"
"mediaplayer-ui.launch"

but none seem to open any GUI programs.
I also tried to open the web browser, but also these don't seem to do anything:
"browser"
"browser.launch"

My goal is to open a real media stream using the default mediaplayer using a python script. (but a command line will be alright for now)

Can anybody help me?

Bernard
04-09-2007, 09:00 AM
small kick

francoisg
04-10-2007, 12:32 AM
you need to launch it with dbus-send

dbus-send --dest=com.nokia.osso_browser /usr/bin/browser com.nokia.osso_browser

you can use dbus-monitor or look at the dbus interface source to figure out what messages you can send the apps (opening pages, etc)