ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #07196
Re: app icon displays on phone when run from qtcreator, but not when installed and run from phone
On 03/24/2014 05:40 PM, David Marceau 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.
>
> When I used a relative path from the .desktop file to point to the
> AppIcon which is a straight copy of the terminal64.png, it doesn't
> display unless I give it an explicit path. I manage to see it on the
> phone only when running the app from qtcreator. When I install the
> app, the icon doesn't seem to appear. What am I doing wrong?
> What should I be putting in the .desktop file?
>
> Here is my current desktop file which I know is all wrong because
> /usr/share/uqttabtest1 doesn't even exist.
>
> [Desktop Entry]
> Name=uqttabtest1
> Comment=My project description
> Exec=/usr/bin/qmlscene $@ /usr/share/uqttabtest1/uqttabtest1.qml
> Icon=/home/phablet/dev_tmp/uqttabtest1/uqttabtest1/graphics/uqttabtest1Icon64.png
> Terminal=false
> Type=Application
> X-Ubuntu-Touch=true
> APP_ID=uqttabtest1
>
>
> Thank you in advance.
>
> Cheers,
> David Marceau
>
Also the Exec within the .desktop doesn't match what I see in the
qtcreator console. What is the Exec within the .desktop supposed to
look like?
[17:29:16] Going to execute: export
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-hilBE7itC4;
APP_ID=uqttabtest1 qmlscene
/home/phablet/dev_tmp/uqttabtest1/uqttabtest1/uqttabtest1.qml
--desktop_file_hint=/home/phablet/.local/share/applications/uqttabtest1.desktop
Follow ups
References