Merge lp://staging/~bzoltan/qtcreator-plugin-ubuntu/rebase_to_ubuntu-emulator into lp://staging/qtcreator-plugin-ubuntu

Proposed by Zoltan Balogh
Status: Merged
Approved by: Zoltan Balogh
Approved revision: 87
Merged at revision: 86
Proposed branch: lp://staging/~bzoltan/qtcreator-plugin-ubuntu/rebase_to_ubuntu-emulator
Merge into: lp://staging/qtcreator-plugin-ubuntu
Diff against target: 197 lines (+23/-44)
6 files modified
share/qtcreator/ubuntu/scripts/local_create_emulator (+2/-6)
share/qtcreator/ubuntu/scripts/local_search_images (+1/-2)
share/qtcreator/ubuntu/scripts/local_start_emulator (+2/-3)
src/ubuntu/ubuntuconstants.h (+4/-2)
src/ubuntu/ubuntudeviceswidget.cpp (+12/-12)
src/ubuntu/ubuntudeviceswidget.ui (+2/-19)
To merge this branch: bzr merge lp://staging/~bzoltan/qtcreator-plugin-ubuntu/rebase_to_ubuntu-emulator
Reviewer Review Type Date Requested Status
Sergio Schvezov (community) Approve
PS Jenkins bot continuous-integration Approve
Benjamin Zeller Approve
Alan Pope 🍺🐧🐱 πŸ¦„ Pending
Review via email: mp+204954@code.staging.launchpad.net

Commit message

Emulator features based on ubuntu-emulator

Description of the change

Emulator features based on ubuntu-emulator

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
81. By Zoltan Balogh

Emulator features based on ubuntu-emulator

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
82. By Zoltan Balogh

fix the HOME variable for pkexec

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

- For me the emulator is created with the wrong owner and does not show up in creator until i chown -R the emulator
  directory

- starting the emulator while another one is created seems to stop the creation script, but the UI still looks like
  the emulator script is still running

- UI does not adapt if the create emulator script fails, should be the same problem as the previous point

review: Needs Fixing
83. By Zoltan Balogh

Fix the ownership of the created emulator

Revision history for this message
Benjamin Zeller (zeller-benjamin) wrote :

Works for me, ready to go

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

28 +find ~/.local/share/ubuntu-emulator/ -name "*img" 2>/dev/null |sed -e "s/^\(.*ubuntu-emulator\/.*\)\/.*$/\1/"|sort|uniq|xargs stat --format="%n %y" 2>&1|egrep -v "missing operand|for more information"|sed -e 's/^.*ubuntu-emulator\/\(.*\) \([0-9]*-[0-9]*-[0-9]* [0-9]*:[0-9]*:[0-9]*\)\..*$/\1 \2/'

Why not use ubuntu-emulator list?

review: Needs Information
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

55 +const char DEFAULT_EMULATOR_PATH[] = ".local/share/ubuntu-emulator";

How about using $XDG_DATA_HOME/ubuntu-emulator ?

review: Needs Fixing
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

> 28 +find ~/.local/share/ubuntu-emulator/ -name "*img" 2>/dev/null |sed -e
> "s/^\(.*ubuntu-emulator\/.*\)\/.*$/\1/"|sort|uniq|xargs stat --format="%n %y"
> 2>&1|egrep -v "missing operand|for more information"|sed -e 's/^.*ubuntu-
> emulator\/\(.*\) \([0-9]*-[0-9]*-[0-9]* [0-9]*:[0-9]*:[0-9]*\)\..*$/\1 \2/'
>
> Why not use ubuntu-emulator list?

Good point. I was not aware of this feature when I made this script.

Actually the ubuntu-emulator list does not return exactly the same output as this oneliner. I would happily use the ubuntu-emulator list, if it is a stable tool and the output is not changed in the future without sending a patch against the IDE.

Revision history for this message
Zoltan Balogh (bzoltan) wrote :

> 55 +const char DEFAULT_EMULATOR_PATH[] = ".local/share/ubuntu-emulator";
>
> How about using $XDG_DATA_HOME/ubuntu-emulator ?

Since the pkexec ate my $HOME I trust nothing :)

I test if this $XDG_DATA_HOME is reliable and will use it.

84. By Zoltan Balogh

merge from trunk and use simpler emulator listing

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
85. By Zoltan Balogh

merge from trunk and use simpler emulator listing

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
86. By Zoltan Balogh

Use QStandardPaths instead of hardcoded path

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
87. By Zoltan Balogh

Pass the data home directory to the emulator creator script

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: