ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #07197
Re: app icon displays on phone when run from qtcreator, but not when installed and run from phone
On Mon, Mar 24, 2014 at 9:40 PM, David Marceau
<uticdmarceau2007@xxxxxxxx> wrote:
> Hi there,
>
> I took a qtquick 2 app generated from standard ubuntu-sdk and noticed
> it had an icon for tap me. I noticed it is using a relative path to
> load up from within the qml file.
>
http://askubuntu.com/a/417370/612
I would recommend your icon be placed in the root of your project in
which case you could reference it in the .desktop file thus:-
Icon=./icon.png
Alternatively you could put it with other assets in a subdirectory,
such as "images", and reference it thus:-
Icon=./images/icon.png
Do not put a full path in the icon variable because you cannot
guarantee (once installed) the path will exist on the device as clicks
apps are relocatable and confined.
Cheers,
--
Alan Pope
Engineering Manager
Canonical - Product Strategy
+44 (0) 7973 620 164
alan.pope@xxxxxxxxxxxxx
http://ubuntu.com/
References