← Back to team overview

ubuntu-phone team mailing list archive

Re: Running qmlscene from the terminal

 

On Tue, Sep 24, 2013 at 3:42 PM, Gustavo Niemeyer <
gustavo.niemeyer@xxxxxxxxxxxxx> wrote:

> Just had a long debugging session with help from Ricardo Salveti, and
> he provided a few workarounds that have helped getting qmlscene to be
> runnable from the terminal (or adb shell).
>
> So, for the record, here are a few points to keep in mind if you want
> to do this:
>
> 1) If you are root, run "su - phablet" so you get into the right user
> environment
>

Do this instead:
sudo -i -u phablet -H

it will avoid you headaches in the future.


2) Install http://paste.ubuntu.com/6151324/ at
> ~/.local/applications/desktop/test.desktop
>
> 3) Run: qmlscene
> --desktop_file_hint=~/.local/share/applications/test.desktop
> yourfile.qml
>

given that your desktop file is correct, do:

start application APP_ID=test

although using a more unique name will help against other headaches. Given
that it's a legacy app (non click/confined) it's logs will land in:

~/.cache/upstart/application-legacy-${APP_ID}*.log



> Note that for some strange reason, running qmlscene without the
> desktop hint file flag was corrupting the environment in a way that is
> not yet well understood, and after that it would stop working
> altogether until a reboot. That made the problem specially tricky to
> workaround.
>

the upstart job should do the right thing.

Follow ups

References