Description of problem: Version-Release number of selected component (if applicable): 6.0-256 x64 How reproducible: Steps to Reproduce: 1. Open Virt Viewer 2. Connect to remote virtual machine 2. Close connection 3. Open Virt Viewer Actual results: Open window, but the Recent connections Window is empty Expected results: Recent connections Window must include the url connections to the remote machine Additional info:
*** Bug 1610564 has been marked as a duplicate of this bug. ***
I can see that this works on Linux, but has stopped working on Windows. AFAIK this is supposed to be handled automatically for us by GtkRecentChooser so presumably something in GTK has broken this.
*** Bug 1253915 has been marked as a duplicate of this bug. ***
The original Windows MSI installer for virt-viewer 5.0 *does* remember connections, but if I build a new MSI installer for the 5.0 release it does *NOT* remember connections. This strongly suggests the problem is not in virt-viewer, but instead most likely a regression in GTK
It was broken somewhere between GTK 3.22.2 and 3.22.17 AFAIK. A likely candidate is the refactoring work done to support GContentType on non-Linux: https://bugzilla.gnome.org/show_bug.cgi?id=734946 This included changes to filter the recent files list in: commit e387f807e4a6da663bca3f8d0b75f1cdbd66465d Author: TingPing <tingping> Date: Wed Mar 8 22:52:58 2017 -0500 Improve GContentType usage Convert to content type where needed. Should fix various issues on Windows and OS X. https://bugzilla.gnome.org/show_bug.cgi?id=734946 I'm guessing our saved URIs get filtered out as there is no content type match for the vnc:// and spice:// URI schemes.
Added Marc-Andre who recent the original "recent connections" code in case he has any ideas on fixing this.
(In reply to Daniel Berrange from comment #6) > Added Marc-Andre who recent the original "recent connections" code in case > he has any ideas on fixing this. Yep, after some investigations: https://gitlab.gnome.org/GNOME/gtk/issues/1769
I wonder if the suggestion in this bug for registering the URI schemes would avoid us triggering the GTK bug https://bugzilla.redhat.com/show_bug.cgi?id=1434368
this stupid bug last so looooooog years
Yep, five years without a fix. What's the justification for a MIME type lookup anyway? GTK blames applications that do this for the failed behavior.