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 666373 - wizard: Present bootable ISO files
wizard: Present bootable ISO files
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
3.3.x (unsupported)
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on: 666372 670023
Blocks:
 
 
Reported: 2011-12-16 16:34 UTC by Zeeshan Ali
Modified: 2016-03-31 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wizard: Present bootable ISO files on 'Source' page (9.82 KB, patch)
2012-02-13 01:58 UTC, Zeeshan Ali
none Details | Review
wizard: Present bootable ISO files on 'Source' page (13.17 KB, patch)
2012-02-14 01:12 UTC, Zeeshan Ali
none Details | Review
wizard: Present bootable ISO files on 'Source' page (13.43 KB, patch)
2012-02-14 23:17 UTC, Zeeshan Ali
none Details | Review
wizard: Present bootable ISO files on 'Source' page (13.59 KB, patch)
2012-02-15 02:13 UTC, Zeeshan Ali
none Details | Review
wizard: Present bootable ISO files on 'Source' page (14.17 KB, patch)
2012-02-17 00:03 UTC, Zeeshan Ali
none Details | Review
wizard: Present bootable ISO files on 'Source' page (14.46 KB, patch)
2012-02-17 01:44 UTC, Zeeshan Ali
none Details | Review
wizard: Present bootable ISO files on 'Source' page (14.63 KB, patch)
2012-02-17 17:57 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2011-12-16 16:34:26 UTC
Using Tracker (once bug#666372 has been fixed), we should provide a nice list of VM sources to choose from at 'Source' page of wizard so that user doesn't need to browse to the ISOs or write URI/path.
Comment 1 Zeeshan Ali 2012-02-13 01:58:12 UTC
Created attachment 207422 [details] [review]
wizard: Present bootable ISO files on 'Source' page

This patch also makes fetching of media sources (both HW and ISO image)
dynamic. Keeping all these points in mind:

1. For each addition/deletion signal you get integer ID against which
you use a Sparql query to check what Tracker is talking about. i-e
inefficient and redundant code.

2. Tracker doesn't send out any signal for ISO files by default, which
makes it impossible to monitor ISO files. Hopefully this will be fixed
when patches to add better support for bootable ISOs (bug#666372) are
merged.

3. A typical user will not have >10 ISOs (?).

4. We cache the source widgets.

I'm propose we do it this way.
Comment 2 Zeeshan Ali 2012-02-13 02:00:10 UTC
(In reply to comment #1)
> Created an attachment (id=207422) [details] [review]
> wizard: Present bootable ISO files on 'Source' page

NOTE: This patch does not require any unmerged patches to Tracker.
Comment 3 Zeeshan Ali 2012-02-13 23:49:44 UTC
Now that bug#666372 has been fixed, I'll be providing another patch that makes use of the new Tracker properties so that we don't have to do any detection on ISOs at all. It'll still need bug#670023 though but I'm guessing that'll be resolved rather quickly.
Comment 4 Zeeshan Ali 2012-02-14 01:12:37 UTC
Created attachment 207508 [details] [review]
wizard: Present bootable ISO files on 'Source' page

This patch also makes fetching of media sources (both HW and ISO image)
dynamic. Keeping all these points in mind:

1. For each addition/deletion signal you get integer ID against which
you use a Sparql query to check what Tracker is talking about. i-e
inefficient and redundant code.

2. A typical user will not have >10 ISOs (?).

3. We cache the source widgets.

I'm propose we do it this way.
Comment 5 Zeeshan Ali 2012-02-14 23:17:03 UTC
Created attachment 207601 [details] [review]
wizard: Present bootable ISO files on 'Source' page

Since for each addition/deletion Tracker, you get an integer ID from
Tracker against which you use a Sparql query to check what Tracker is
talking about, the code to handle the these signals will be inefficient
and unnecessarily complicated. So instead of keeping a list of medias (HW
and ISO images), we now:

1. Asynchronously fetch list of medias on startup and create the widgets
for them in the wizard.

2. When the 'Source' page of wizard is activated/shown, we refetch the
list (again asynchronously) and add/remove widgets accordingly.
Comment 6 Zeeshan Ali 2012-02-15 02:13:37 UTC
Created attachment 207607 [details] [review]
wizard: Present bootable ISO files on 'Source' page

Since for each addition/deletion Tracker, you get an integer ID from
Tracker against which you use a Sparql query to check what Tracker is
talking about, the code to handle the these signals will be inefficient
and unnecessarily complicated. So instead of keeping a list of medias (HW
and ISO images), we now:

1. Asynchronously fetch list of medias on startup and create the widgets
for them in the wizard.

2. When the 'Source' page of wizard is activated/shown, we refetch the
list (again asynchronously) and add/remove widgets accordingly.
Comment 7 Zeeshan Ali 2012-02-17 00:03:16 UTC
Created attachment 207820 [details] [review]
wizard: Present bootable ISO files on 'Source' page

Same as the previous one except:

* The redundant "Local Machine:.." label has been removed.
* System title now in bold (as per jimmac's suggestion).
* Reduced size of entries/icon by about half.
* More padding.

Looks like this: http://static.fi/~zeenix/tmp/boxes-small-iso-icons.png
Comment 8 Zeeshan Ali 2012-02-17 01:44:43 UTC
Created attachment 207831 [details] [review]
wizard: Present bootable ISO files on 'Source' page

This version adds a label for media architecture (if known) as per jimmac's new mockup:

https://github.com/gnome-design-team/gnome-mockups/raw/38e6701a3ad3c204cb7bea629dda97553b869eb8/boxes/boxes-install2.0.png

Looks like this: http://static.fi/~zeenix/tmp/boxes-small-iso-icons+arch.png
Comment 9 Zeeshan Ali 2012-02-17 17:57:26 UTC
Created attachment 207875 [details] [review]
wizard: Present bootable ISO files on 'Source' page

This version does a much better job at handling unknown (to libosinfo) ISOs.
Comment 10 Zeeshan Ali 2012-02-17 23:05:34 UTC
So whats the verdict on this one?
Comment 11 Marc-Andre Lureau 2012-02-18 16:16:23 UTC
Review of attachment 207875 [details] [review]:

ack
Comment 12 Zeeshan Ali 2012-02-18 16:32:55 UTC
Attachment 207875 [details] pushed as 02538bd - wizard: Present bootable ISO files on 'Source' page