View Single Post
Posts: 6 | Thanked: 12 times | Joined on Nov 2009 @ Rome, Italy
#2
Originally Posted by Reflektorfalke View Post
When you click on your new icon / shortcut a xterm window will appear for a second before media player starts playing your webradio...
Thanks, cool idea! I also found a way to avoid seing xterm windows:
  • Create a script file (e.g. "play.sh") like the following including the xterm command to be executed
    Code:
    #!/bin/bash
    /usr/bin/dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"<link to your webradio / stream>"
    exit 0
  • Change the Exec including sh command followed by the script file created, e.g.:
    Code:
    ...
    Exec=sh /home/user/play.sh
    Terminal=false
    ...
 

The Following 10 Users Say Thank You to orientel For This Useful Post: