mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #56188 from layus/poc-fix-nautilus-thumbnails
Fix thumbnails generation in nautilus
This commit is contained in:
commit
c3694e1f3a
2 changed files with 9 additions and 9 deletions
|
@ -1,16 +1,15 @@
|
||||||
--- a/libgnome-desktop/gnome-desktop-thumbnail-script.c
|
--- a/libgnome-desktop/gnome-desktop-thumbnail-script.c
|
||||||
+++ b/libgnome-desktop/gnome-desktop-thumbnail-script.c
|
+++ b/libgnome-desktop/gnome-desktop-thumbnail-script.c
|
||||||
@@ -536,10 +536,9 @@ add_bwrap (GPtrArray *array,
|
@@ -536,9 +536,9 @@ add_bwrap (GPtrArray *array,
|
||||||
g_return_val_if_fail (script->s_infile != NULL, FALSE);
|
g_return_val_if_fail (script->s_infile != NULL, FALSE);
|
||||||
|
|
||||||
add_args (array,
|
add_args (array,
|
||||||
- "bwrap",
|
- "bwrap",
|
||||||
- "--ro-bind", "/usr", "/usr",
|
- "--ro-bind", "/usr", "/usr",
|
||||||
- "--ro-bind", "/etc/ld.so.cache", "/etc/ld.so.cache",
|
- "--ro-bind", "/etc/ld.so.cache", "/etc/ld.so.cache",
|
||||||
- NULL);
|
+ "@bubblewrap_bin@",
|
||||||
+ "@bubblewrap_bin@",
|
+ "--ro-bind", "/nix/store", "/nix/store",
|
||||||
+ "--ro-bind", "/nix/store", "/nix/store",
|
+ "--ro-bind", "/run/current-system", "/run/current-system",
|
||||||
+ NULL);
|
NULL);
|
||||||
|
|
||||||
/* These directories might be symlinks into /usr/... */
|
/* These directories might be symlinks into /usr/... */
|
||||||
for (i = 0; i < G_N_ELEMENTS (usrmerged_dirs); i++)
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/src/gnome-desktop/gnome-desktop-thumbnail-script.c
|
--- a/src/gnome-desktop/gnome-desktop-thumbnail-script.c
|
||||||
+++ a/src/gnome-desktop/gnome-desktop-thumbnail-script.c
|
+++ a/src/gnome-desktop/gnome-desktop-thumbnail-script.c
|
||||||
@@ -514,14 +514,10 @@ add_bwrap (GPtrArray *array,
|
@@ -514,14 +514,11 @@ add_bwrap (GPtrArray *array,
|
||||||
g_return_val_if_fail (script->s_infile != NULL, FALSE);
|
g_return_val_if_fail (script->s_infile != NULL, FALSE);
|
||||||
|
|
||||||
add_args (array,
|
add_args (array,
|
||||||
|
@ -8,8 +8,9 @@
|
||||||
- "--ro-bind", "/usr", "/usr",
|
- "--ro-bind", "/usr", "/usr",
|
||||||
- "--ro-bind", "/lib", "/lib",
|
- "--ro-bind", "/lib", "/lib",
|
||||||
- "--ro-bind", "/lib64", "/lib64",
|
- "--ro-bind", "/lib64", "/lib64",
|
||||||
+ "@bubblewrap_bin@",
|
+ "@bubblewrap_bin@",
|
||||||
+ "--ro-bind", "@storeDir@", "@storeDir@",
|
+ "--ro-bind", "@storeDir@", "@storeDir@",
|
||||||
|
+ "--ro-bind", "/run/current-system", "/run/current-system",
|
||||||
"--proc", "/proc",
|
"--proc", "/proc",
|
||||||
"--dev", "/dev",
|
"--dev", "/dev",
|
||||||
- "--symlink", "usr/bin", "/bin",
|
- "--symlink", "usr/bin", "/bin",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue