← Back to team overview

ubuntu-phone team mailing list archive

Re: Running uNav locally

 


On 21.04.2016 14:45, Matthias Apitz wrote:
> El día Tuesday, April 19, 2016 a las 05:31:38PM +0200, Michael Zanetti escribió:
> 
>>> Three comments on this:
>>> - Please try sending ASCII and not HTML mails.
>>> - You can not launch a UI app from a terminal, at least I never found a
>>>   way to do so. It can not connect this way to the Mir server.
>>
>> just pass "--desktop_file_hint=/usr/share/applications/some-app.desktop"
>> as argument and it will work.
>>
> 
> Hello Michael,
> 
> I wrote my 1st QApplication as:
> 
> #include <QCoreApplication>
> #include <QtWidgets/QApplication>
> #include <QtWidgets/QPushButton>
> #include <QSettings>
> #include <QDebug>
> #include <QDateTime>
> #include <QStringList>
> #include <QtGui/QKeyEvent>
> 
> int main(int argc, char *argv[])
> {
>     QApplication a(argc, argv);
> 
>     return a.exec();
> 
> }
> 
> It compiles fine in a chrooted system below myRoot with this *.pro:
> 
> $ cat app.pro
> QT += core
> TARGET = firstapp
> CONFIG += console
> CONFIG -= app_bundle
> QT += widgets
> TEMPLATE = app
> SOURCES += main.cpp
> 
> Whe I launch it from the terminal-app from outside the myRoot as:
> 
> $ myRoot/home/phablet/qapp/firstapp --desktop_file_hint=/usr/share/applications/dialer-app.desktop

Note that you are tricking the system into thinking you are launching
the dialer-app with this. While your "fake dialer app" is running, you
probably won't be able to properly handle phone calls as the real dialer
app can't be started. Better create your own .desktop file for your app.


> Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
> 
> it really works, at least it starts. Thanks
> 
> 	matthias
> 

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References