3

I'm getting familiar with Ubuntu SDK and QML.

After creating sample project: 'App with Simple UI', I'm able to run it correctly.

But, I'm getting warning:

unity::action::ActionManager::ActionManager(QObject*):
Could not determine application identifier. HUD will not work properly.
Provide your application identifier in $APP_ID environment variable.

** (qmlscene:16973): WARNING **: Unable to register app: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid application ID

How to provide such id per application? Should I put it somewhere in code?

Thanks.

1 Answer 1

4

You're probably getting this warning because you're developing your application on a desktop.

QML applications using Ubuntu components need this for identifying themselves throughout the system, see ApplicationId.

To get rid of this warning, just prefix your qmlscene command like this:

   APP_ID=foo qmlscene ./foo.qml

Resources:

2
  • Thanks. Is QML meant for developing apps for desktop?
    – korro
    Jul 23, 2014 at 8:45
  • 1
    Of course you can develop apps for desktop. QML is really powerful to create UI. The app_id was just a warning, nothing to worry about. I put some links in the qml tag (see askubuntu.com/tags/qml/info) Jul 23, 2014 at 8:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .