The Following 14 Users Say Thank You to Reflektorfalke For This Useful Post: | ||
|
2010-01-17
, 03:18
|
Posts: 6 |
Thanked: 12 times |
Joined on Nov 2009
@ Rome, Italy
|
#2
|
When you click on your new icon / shortcut a xterm window will appear for a second before media player starts playing your webradio...
#!/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
... Exec=sh /home/user/play.sh Terminal=false ...
The Following 10 Users Say Thank You to orientel For This Useful Post: | ||
|
2010-01-17
, 17:47
|
|
Posts: 597 |
Thanked: 490 times |
Joined on Dec 2009
@ Germany
|
#3
|
|
2010-02-03
, 21:12
|
Posts: 739 |
Thanked: 220 times |
Joined on Dec 2009
@ Surrey, UK
|
#4
|
|
2010-02-03
, 21:53
|
Posts: 739 |
Thanked: 220 times |
Joined on Dec 2009
@ Surrey, UK
|
#5
|
|
2010-02-03
, 22:47
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#6
|
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 ...
|
2010-02-03
, 22:54
|
|
Posts: 597 |
Thanked: 490 times |
Joined on Dec 2009
@ Germany
|
#7
|
How do you create the file in the first instance? Do you do this on the N900 first?
The Following User Says Thank You to Reflektorfalke For This Useful Post: | ||
|
2010-02-03
, 22:55
|
|
Posts: 597 |
Thanked: 490 times |
Joined on Dec 2009
@ Germany
|
#8
|
The Following User Says Thank You to Reflektorfalke For This Useful Post: | ||
|
2010-02-03
, 23:02
|
|
Posts: 597 |
Thanked: 490 times |
Joined on Dec 2009
@ Germany
|
#9
|
I rebooted and still don't see my entry showing up. I've seen this before with other applications and then they mysteriously appear some hours later. Any idea how to refresh the applications Icon menu?
|
2010-02-03
, 23:13
|
Posts: 739 |
Thanked: 220 times |
Joined on Dec 2009
@ Surrey, UK
|
#10
|
Just create a copy of another .desktop-file by typing
cp example.desktop examplecopy.desktop
in Xterm.
Tags |
yd config |
Thread Tools | |
|
inspired by this thread: http://talk.maemo.org/showthread.php?t=35858 I came up with the idea of creating a desktop shortcut for starting my favorite internet radio:
Step 1: Create a file named e.g. "webradio.desktop" in the /usr/share/applications/hildon/ directory
(will need root access to do that).
Step 2: Enter the text below in the new file and replace the text within < ... > (custom name + link to stream) with whatever you want...
Step 3: Afterwards you have a new entry in your application list with your custom name and may create a shortcut on your desktop.
When you click on your new icon / shortcut a xterm window will appear for a second before media player starts playing your webradio...
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=<custom name>
Exec=/usr/bin/osso-xterm '/usr/bin/dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"<link to your webradio / stream>"'
Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
http://talk.maemo.org/showpost.php?p...0&postcount=26
Thanx to archebyte for the great work!!!
Please share with whatever other functions you create your own custom icons / shortcuts...
Last edited by Reflektorfalke; 2010-01-09 at 15:44.