[gnome-boxes] media-manager: Fix non-flatpak build issue for GUdev codepath
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] media-manager: Fix non-flatpak build issue for GUdev codepath
- Date: Fri, 17 Dec 2021 12:23:09 +0000 (UTC)
commit 8fdbb80a5ce0e59bacc0cb01dfccf545559fada0
Author: Felipe Borges <felipeborges gnome org>
Date: Fri Dec 17 13:22:30 2021 +0100
media-manager: Fix non-flatpak build issue for GUdev codepath
src/media-manager.vala | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/media-manager.vala b/src/media-manager.vala
index ed92716b..692a6870 100644
--- a/src/media-manager.vala
+++ b/src/media-manager.vala
@@ -138,10 +138,11 @@ else if (VMConfigurator.is_libvirt_cloning_config (config))
}
#if !FLATPAK
- private async GLib.List<InstallerMedia> load_physical_medias ()
- var list = GLib.List<InstallerMedia> list ();
+ public GUdev.Client client;
+ private async GLib.List<InstallerMedia> load_physical_medias () {
+ var list = new GLib.List<InstallerMedia> ();
- GUdev.Client client = new GUdev.Client ({"block"});
+ client = new GUdev.Client ({"block"});
var enumerator = new GUdev.Enumerator (client);
// We don't want to deal with partitions to avoid duplicate medias
enumerator.add_match_property ("DEVTYPE", "disk");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]