emulator does not run from QtCreator

Bug #1287866 reported by Rick Spencer
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu
Fix Released
Critical
Zoltan Balogh
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
Critical
Zoltan Balogh

Bug Description

Go to devices tab, and go to emulators
In the text box, create a new emulator name, such as MyEmulator
Wait
Eventually this appears in the emulators list: open /home/rick/.local/share/ubuntu-emulator: permission denied

The log looks like this:
Creating new emulator instance.
Creating "MyEmulator" from devel-proposed revision 219
Downloading...
Setting up...
Creating snapshots for disks...
Succesfully created emulator instance MyEmulator in /home/rick/.local/share/ubuntu-emulator/MyEmulator
Search configured emulator instances.
open /home/rick/.local/share/ubuntu-emulator: permission denied
Detecting device..
* there is no device connected.

The emulator never runs

Tags: avengers
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

When creating the emulator instance the user is prompted for the sudo password (need to check if this is really required)

It seems that whatever script is run creates the folder ~/.local/share/ubuntu-emulator with root ownership

Changed in qtcreator-plugin-ubuntu (Ubuntu):
assignee: nobody → zbenjamin (zeller-benjamin)
importance: Undecided → Critical
status: New → Confirmed
Changed in qtcreator-plugin-ubuntu:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → zbenjamin (zeller-benjamin)
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

https://code.launchpad.net/~bzoltan/qtcreator-plugin-ubuntu/lp1287866/+merge/209696

It would be nice if the `ubuntu-emulator list` would return something smart when the ubuntu-emulator is not found. Also the ubuntu-emulator should handle the case when it is run with pkexec and not with sudo.

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Confirmed → Fix Committed
Changed in qtcreator-plugin-ubuntu:
status: Confirmed → Fix Committed
assignee: zbenjamin (zeller-benjamin) → Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
assignee: zbenjamin (zeller-benjamin) → Zoltan Balogh (bzoltan)
Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu:
status: Fix Committed → Fix Released
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.