[gnome-desktop/gnome-3-26] thumbnailer: also add /lib(64)? to bwrap's link-mounted directory list



commit 22b89aa5fd285d7acf98317e8006d91457b53037
Author: Dominique Leuenberger <dimstar opensuse org>
Date:   Sat Sep 2 00:05:23 2017 +0200

    thumbnailer: also add /lib(64)? to bwrap's link-mounted directory list
    
    As not all distros have libs moves from /lib(64)? to /usr/lib(64), we need
    to also bind-mount those directories, or the thumbnailers will fail to load
    the required libraries.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787072

 libgnome-desktop/gnome-desktop-thumbnail-script.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail-script.c 
b/libgnome-desktop/gnome-desktop-thumbnail-script.c
index be603d3..99d83ac 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail-script.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail-script.c
@@ -506,10 +506,10 @@ add_bwrap (GPtrArray   *array,
   add_args (array,
            "bwrap",
            "--ro-bind", "/usr", "/usr",
+           "--ro-bind", "/lib", "/lib",
+           "--ro-bind", "/lib64", "/lib64",
            "--proc", "/proc",
            "--dev", "/dev",
-           "--symlink", "usr/lib", "/lib",
-           "--symlink", "usr/lib64", "/lib64",
            "--symlink", "usr/bin", "/bin",
            "--symlink", "usr/sbin", "/sbin",
            "--chdir", "/",


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