Namespaces
Variants
Actions
Revision as of 06:54, 13 August 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Application View Book marks as debian packages on MeeGo

Jump to: navigation, search
Article Metadata

Code Example
Article
Created: ronanmac (27 Sep 2011)
Last edited: hamishwillee (13 Aug 2012)

Introduction

The Nokia N9 allows you to place URL bookmarks directly on the Applications view, complete with their own icons. There are several ways to creates these, the easiest is from the browser, but if you want to distribute them further you can by creating a debian package.

How is it done?

All you really need to insert into the system is a .desktop file and an icon. Here is an example .desktop file:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Link
Name=testnoapp
URL=http://swipe.nokia.com
Icon=/usr/share/icons/hicolor/80x80/apps/testlink80.png
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

The icon in this case is any 80x80pixel .png graphic. The only tricky bit is creating the .deb package for distribution. This requires creating a make file and debian package generation files, but these are easily done based on the example attached here. File:Dummylink.tar.gz

What's inside the example and how to use it?

To get the example to work, unpack it and then navigate to the create directory using the madde terminal. The key command that creates the package is:

mad dpkg-buildpackage -us -uc -rfakeroot

(This assumes that you have a default runtime selected, if not consult with the Madde documentation).

This creates a dummylink_0.1_armrel.deb package in the directory above the current directory.

To customize it for your own purposes change edit the icon, .desktop file and the /debian/control file. This should be straightforward.

Note.png
Note: This produces a link that cannot be easily deleted from the application viewer, you need to manage the link like an application.

Enjoy!

208 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved