maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Creating a shortcut with a defined icon that leads to a defined web address (https://talk.maemo.org/showthread.php?t=46329)

Arif 2010-03-02 21:17

Creating a shortcut with a defined icon that leads to a defined web address
 
Hello,

I am using DVBViewer + Recording Service to stream radio and TV channels to my N900.
In the web UI of Recording Service you can select the channel to stream which you then need to open in KMPlayer to watch.
What I'd like is to create a shortcut with the channel logo and when opened it leads to the stream config for that channel.
I thought of using web bookmarks, but they take up a lot of space and I can't set my own icon.
Basically what I want is the following:
An app that has my own defined icon that opens a link.
Could anyone guide me in the right direction to create my own ''apps'' which work as bookmarks?

b666m 2010-03-02 21:41

Re: Creating a shortcut with a defined icon that leads to a defined web address
 
the desktop-files are stored in /usr/share/applications/hildon/
just take a look at one of those to know the content...
or simply copy to anywhere else and edit it :)

for launching the browser from cli use:
Code:

/usr/bin/browser --url="http://i-am-an-address.com"
write this behind "Exec=" in the desktop-file.

if you want your own icon place it in /usr/share/icons/hicolor/48x48/hildon/ - it has to be .png and 48*48 px.
if it's called "example.png" then you have to edit the icon-line in the desktop-file to "Icon=example".

hope that helps. (:

Arif 2010-03-02 22:03

Re: Creating a shortcut with a defined icon that leads to a defined web address
 
Great :) Thanks a lot
I just have one more questıon :) Is it possible to hide these icons from the menu? I'd like to only have them on one of my desktops and not clutter the whole menu structure :)

demirole 2010-03-02 22:12

Re: Creating a shortcut with a defined icon that leads to a defined web address
 
1 Attachment(s)
Quote:

Originally Posted by b666m (Post 553066)
the desktop-files are stored in /usr/share/applications/hildon/

.. where you can find the ovi store desktop file, ovi.desktop. Just rename it and change the content according to your needs:
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=<app name (appears in application menu)>
Comment=<some comment>
Exec=dbus-send --print-reply --dest=com.nokia.osso_browser /com/nokia/osso_browser/request com.nokia.osso_browser.open_new_window string:<the link>
Icon=<icon name w/o the suffix>
Terminal=false
Type=Application
Categories=System;TerminalEmulator;
X-HildonDesk-ShowInToolbar=true
#X-Osso-Service=xterm
X-Osso-Type=application/x-executable

Quote:

Originally Posted by b666m (Post 553066)
if you want your own icon place it in /usr/share/icons/hicolor/48x48/hildon/ - it has to be .png and 48*48 px.

Hmmm, I use 64x64 icons...

Here is a screenshot of one of my desktops, those shortcuts are all bookmarks:

Arif 2010-03-02 22:16

Re: Creating a shortcut with a defined icon that leads to a defined web address
 
well, I got it to work :D
Now I'm trying to figure out if there's a way to tell KMPlayer to start playing a file in the same way (stream.m3u in MyDocs/Playlists) :)


All times are GMT. The time now is 15:23.

vBulletin® Version 3.8.8