[gnome-boxes/housekeeping-autumn-2021: 3/9] shared-folders: Don't throw warning when symlink exists




commit fbbf1d78b301724dee1458d670c24ad1f3e385a9
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Oct 13 10:16:05 2021 +0200

    shared-folders: Don't throw warning when symlink exists
    
    We map our shared folders with symlinks. Whenever the shared folder
    data is constructured, we would warn that symlinks already exist.
    
    This is a bit scary for regular users and only serves as debug
    information.

 src/shared-folders.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/shared-folders.vala b/src/shared-folders.vala
index 0c9863d3..b3c7c15c 100644
--- a/src/shared-folders.vala
+++ b/src/shared-folders.vala
@@ -79,7 +79,7 @@ public new bool add_item (SharedFolder folder) {
 
         var link_path = GLib.Path.build_filename (shared_folder, folder.name);
         if (GLib.FileUtils.symlink (folder.path, link_path) == -1) {
-            warning (strerror (errno));
+            debug ("Not creating symlink for shared folder \"%s\": %s", link_path, strerror (errno));
 
             return false;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]