[maemo-developers] How to optify in MADDE?

From: Tomi Ollila tomi.ollila at guru.guru-group.fi
Date: Thu Jun 10 14:15:37 EEST 2010
On Thu 10 Jun 2010 13:55, daniel wilms <daniel.wilms at nokia.com> writes:

> ext Sascha Mäkelä wrote:
>> OK, could someone give me or point me to example on how to do this?
>> Basically the only the src.pro <http://src.pro> and the .desktop
>> files need to be modified, right?
> I will post something how to do that and will publish it latest
> tomorrow, then you will have an example with some explanations. Here
> some advises:
>
> 1) Put all your application files, apart from your *.desktop file into
> a folder like /opt/<application-name>. This you can do by setting the
> path variable of the INSTALL target used in the *.pro file.
>
> 2) Point in the desktop file to your executable, like:
> X-Path=/opt/<application-name>/<application-executable>


I personally dislike polluting /opt -tree with lots of application
directories (although that is allowed by FHS). Better alternative would
be /opt/<provider>/... (IMHO) (also allowed by FHS), where <provider>
is 'maemo' (is that LANANA-registered (what LANANA???). FHS also says
there might be bin/, lib/, include/ and <application-name> directories
intermixed there (which I don't like either). But YMMV.

Also, in larger projects, X-PATH could be
X-Path=/opt/maemo/<application-name>/bin/<application-executable>
but for smaller ones (like all mine), wasting filesystem space for
one extra directory is overkill ;)

Tomi
More information about the maemo-developers mailing list