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 683467 - Deleted boxes in gnome-shell search results
Deleted boxes in gnome-shell search results
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: search
unspecified
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks: 683489
 
 
Reported: 2012-09-06 08:56 UTC by Marc-Andre Lureau
Modified: 2016-03-31 14:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Delete configuration when deleting a machine (1.29 KB, patch)
2012-09-06 09:16 UTC, Marc-Andre Lureau
committed Details | Review
Delete screenshots from deleted machines (711 bytes, patch)
2012-09-06 09:16 UTC, Marc-Andre Lureau
committed Details | Review

Description Marc-Andre Lureau 2012-09-06 08:56:14 UTC
The shell search function is listing deleted boxes, because the configuration isn't removed from the .ini file.
Comment 1 Marc-Andre Lureau 2012-09-06 09:16:48 UTC
Created attachment 223613 [details] [review]
Delete configuration when deleting a machine

If we keep the configuration around, it will show up in search
results.
Comment 2 Marc-Andre Lureau 2012-09-06 09:16:51 UTC
Created attachment 223614 [details] [review]
Delete screenshots from deleted machines
Comment 3 Christophe Fergeau 2012-09-06 09:28:30 UTC
Review of attachment 223613 [details] [review]:

Would be nicer to avoid sync IO... Also, would it be possible to cleanup the configuration file at startup by comparing what's in there with the libvirt VM we have available? Or does it require a spice connection?
Comment 4 Christophe Fergeau 2012-09-06 09:29:15 UTC
Review of attachment 223614 [details] [review]:

Same small comment about sync IO, though in this case it seems there are no async delete helpers in glib.
Comment 5 Marc-Andre Lureau 2012-09-06 11:33:08 UTC
(In reply to comment #3)
> Review of attachment 223613 [details] [review]:
> 
> Would be nicer to avoid sync IO... Also, would it be possible to cleanup the
> configuration file at startup by comparing what's in there with the libvirt VM
> we have available? Or does it require a spice connection?

gnome-boxes-search-provider doesn't connect to libvirt, but only uses locally saved information (it links only with glib), in order to return results quickly and be lightweight.

It would be nice to do sync clean-up when Boxes is started. Also these patches will probably not be sufficient if you delete VM outside of Boxes, in which case the sync clean-up code would be really helpful. We should open a seperate bug for that, with lower priority.
Comment 6 Marc-Andre Lureau 2012-09-06 11:33:53 UTC
Attachment 223613 [details] pushed as 8d14d20 - Delete configuration when deleting a machine
Attachment 223614 [details] pushed as ad96c19 - Delete screenshots from deleted machines
Comment 7 Christophe Fergeau 2012-09-06 11:39:05 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > Review of attachment 223613 [details] [review] [details]:
> > 
> > Would be nicer to avoid sync IO... Also, would it be possible to cleanup the
> > configuration file at startup by comparing what's in there with the libvirt VM
> > we have available? Or does it require a spice connection?
> 
> gnome-boxes-search-provider doesn't connect to libvirt, but only uses locally
> saved information (it links only with glib), in order to return results quickly
> and be lightweight.
> 
> It would be nice to do sync clean-up when Boxes is started. Also these patches
> will probably not be sufficient if you delete VM outside of Boxes, in which
> case the sync clean-up code would be really helpful. We should open a seperate
> bug for that, with lower priority.

Yes, by 'startup', I meant 'Boxes startup', this was not about the search provider.