After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680851 - Asynchronously select/launch machines
Asynchronously select/launch machines
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks: 678025
 
 
Reported: 2012-07-30 16:42 UTC by Zeeshan Ali
Modified: 2016-03-31 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
machine: Asynchronously select/launch machines (6.64 KB, patch)
2012-07-30 16:43 UTC, Zeeshan Ali
none Details | Review
Simplify LibvirtMachine.connect_display() (2.08 KB, patch)
2012-07-30 16:43 UTC, Zeeshan Ali
none Details | Review
app: Remove a redundant return value (1.79 KB, patch)
2012-07-31 09:59 UTC, Zeeshan Ali
none Details | Review
machine: Asynchronously launch machines (4.05 KB, patch)
2012-07-31 10:11 UTC, Zeeshan Ali
none Details | Review
app: Remove a redundant return value (1.79 KB, patch)
2012-08-07 15:06 UTC, Zeeshan Ali
committed Details | Review
machine: Asynchronously launch machines (4.05 KB, patch)
2012-08-07 15:06 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2012-07-30 16:42:47 UTC
Currently user doesn't see any activity for at least a few seconds (actual time varies but can easily be up to several seconds for local VMs) after clicking on a box. Attaching patches to fix that.
Comment 1 Zeeshan Ali 2012-07-30 16:43:10 UTC
Created attachment 219912 [details] [review]
machine: Asynchronously select/launch machines

W/o this patch, user doesn't see any activity for at least a few seconds
(actual time varies but can easily be up to several seconds for local
VMs) after clicking on a box.

Also remove some redundant return values.
Comment 2 Zeeshan Ali 2012-07-30 16:43:16 UTC
Created attachment 219913 [details] [review]
Simplify LibvirtMachine.connect_display()

This should probably be squashed into parent commit:

'machine: Asynchronously select/launch machines'.
Comment 3 Zeeshan Ali 2012-07-31 09:59:36 UTC
Created attachment 219959 [details] [review]
app: Remove a redundant return value
Comment 4 Zeeshan Ali 2012-07-31 10:11:16 UTC
Created attachment 219960 [details] [review]
machine: Asynchronously launch machines

W/o this patch, user doesn't see any activity for at least a few
seconds (actual time varies but can easily be up to several seconds for
local VMs) after clicking on a box.
Comment 5 Zeeshan Ali 2012-07-31 10:13:08 UTC
(In reply to comment #4)
> Created an attachment (id=219960) [details] [review]
> machine: Asynchronously launch machines

This requires my pending 'Add async variant of gvir_domain_resume()' patch to libvirt-glib.
Comment 6 Zeeshan Ali 2012-08-07 15:06:13 UTC
Created attachment 220567 [details] [review]
app: Remove a redundant return value

V2: Rebased on git master
Comment 7 Zeeshan Ali 2012-08-07 15:06:24 UTC
Created attachment 220568 [details] [review]
machine: Asynchronously launch machines

V2: Rebased on git master
Comment 8 Marc-Andre Lureau 2012-08-07 15:19:56 UTC
(In reply to comment #6)
> Created an attachment (id=220567) [details] [review]
> app: Remove a redundant return value
> 
> V2: Rebased on git master

the idea is rather to return true if the VM can be successfully opened. Not sure it's worth this change here.. ack anyway...
Comment 9 Marc-Andre Lureau 2012-08-07 15:21:40 UTC
(In reply to comment #7)
> Created an attachment (id=220568) [details] [review]
> machine: Asynchronously launch machines
> 
> V2: Rebased on git master

maybe you need to change libvirt-glib version check?
Comment 10 Zeeshan Ali 2012-08-07 15:42:53 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > Created an attachment (id=220567) [details] [review] [details] [review]
> > app: Remove a redundant return value
> > 
> > V2: Rebased on git master
> 
> the idea is rather to return true if the VM can be successfully opened. Not
> sure it's worth this change here.. ack anyway...

I know the idea but it wasn't really being used and this change made implemetning the following change, easier.

(In reply to comment #9)
> (In reply to comment #7)
> > Created an attachment (id=220568) [details] [review] [details] [review]
> > machine: Asynchronously launch machines
> > 
> > V2: Rebased on git master
> 
> maybe you need to change libvirt-glib version check?

You already did that for me. :)
Comment 11 Marc-Andre Lureau 2012-08-07 16:07:52 UTC
(In reply to comment #10)
> You already did that for me. :)

ah, it failed to compile here. if only we would have more precise git version checks.. rebuilding the whole stuff again..
Comment 12 Zeeshan Ali 2012-08-07 16:41:03 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > You already did that for me. :)
> 
> ah, it failed to compile here. if only we would have more precise git version
> checks.. rebuilding the whole stuff again..

OK my bad. Totally forgot to push the needed libvirt-glib patch and now I need to bump the required version again..
Comment 13 Marc-Andre Lureau 2012-08-07 16:57:34 UTC
Review of attachment 220568 [details] [review]:

ack
Comment 14 Marc-Andre Lureau 2012-08-07 16:57:50 UTC
Review of attachment 220568 [details] [review]:

please bump libvirt-glib version check
Comment 15 Marc-Andre Lureau 2012-08-07 16:58:04 UTC
Review of attachment 220567 [details] [review]:

ack
Comment 16 Zeeshan Ali 2012-08-07 17:09:25 UTC
Attachment 220567 [details] pushed as baa61f7 - app: Remove a redundant return value
Attachment 220568 [details] pushed as 27c02d8 - machine: Asynchronously launch machines