Unable to access HUD on phone when launched through qtcreator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator-plugin-ubuntu |
Fix Released
|
Critical
|
Zoltan Balogh | ||
qtcreator-plugin-ubuntu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It is not possible to try out HUD actions when trying an application on the phone launched through qtcreator.
Steps to reproduce:
1. Branch any development app
2. Open the branch in qtcreator.
3. Press Ctrl + F12 to run the application on a mobile device
4. Try HUD actions.
What to expect:
HUD appears with the actions provided by the application
What actually happens:
Empty HUD with no actions
Error message:
[21:28:51] unity::
Could not get session bus. Actions will not be available through D-Bus.
Reason: Error spawning command line 'dbus-launch --autolaunch=
[21:28:51] unity::
Could not determine application identifier. HUD will not work properly.
Provide your application identifier in $APP_ID environment variable.
Related branches
- Antti Kaijanmäki (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 32 lines (+8/-1)1 file modifiedshare/qtcreator/ubuntu/scripts/qtc_device_run_app (+8/-1)
summary: |
- Not able to access HUD on phone when launched through qtcreator + Unable to access HUD on phone when launched through qtcreator |
affects: | ubuntu-ui-toolkit → qtcreator-plugin-ubuntu |
Changed in qtcreator-plugin-ubuntu: | |
importance: | Undecided → Critical |
affects: | qtcreator-plugin-ubuntu → ubuntu-qtcreator-plugins |
Changed in ubuntu-qtcreator-plugins: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
assignee: | Zoltan Balogh (bzoltan) → Juhapekka Piiroinen (juhapekka-piiroinen) |
Changed in ubuntu-qtcreator-plugins: | |
assignee: | Juhapekka Piiroinen (juhapekka-piiroinen) → Zoltan Balogh (bzoltan) |
Changed in qtcreator-plugin-ubuntu: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
importance: | Undecided → Critical |
status: | New → Fix Committed |
Changed in ubuntu-qtcreator-plugins: | |
status: | In Progress → Invalid |
no longer affects: | ubuntu-qtcreator-plugins |
Changed in qtcreator-plugin-ubuntu: | |
status: | Fix Committed → Fix Released |
I can confirm this. I tried with nik90's branch: /code.launchpad .net/~nik90/ ubuntu- clock-app/ add-hud- support
https:/
simply branch it, open with QtCreator and do Build -> Ubuntu Touch -> Run Application on Device
Naturally the actions don't end up to the HUD as the app is unable to access the session bus.
The other thing I see is that it seems that QtC does not set the $APP_ID env variable: arm-linux- gnueabihf/ qt5/bin/ qmlscene /home/phablet/ dev_tmp/ add-hud- support/ ubuntu- clock-app. qml --desktop_ file_hint= /home/phablet/ .local/ share/applicati ons/ubuntu- clock-app. desktop
phablet 22127 1.8 7.2 195016 51592 ? Ssl 19:26 0:05 /usr/lib/
The proper launch command should be: ubuntu- clock-app /usr/lib/ arm-linux- gnueabihf/ qt5/bin/ qmlscene /home/phablet/ dev_tmp/ add-hud- support/ ubuntu- clock-app. qml --desktop_ file_hint= /home/phablet/ .local/ share/applicati ons/ubuntu- clock-app. desktop
APP_ID=