forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flatpak: Preserve pixbuf path in validate-icon
SVG support isn't built-in to GdkPixBuf, it's provided by an external module. Therefore, GDK_PIXBUF_MODULE_FILE should be preserved in the sandbox, otherwise `flatpak-validate-icon --sandbox` won't work on SVG files.
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
pkgs/development/libraries/flatpak/validate-icon-pixbuf.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/icon-validator/validate-icon.c b/icon-validator/validate-icon.c | ||
index 6e23d9f2..f0659a78 100644 | ||
--- a/icon-validator/validate-icon.c | ||
+++ b/icon-validator/validate-icon.c | ||
@@ -193,6 +193,8 @@ rerun_in_sandbox (const char *arg_width, | ||
add_args (args, "--setenv", "G_MESSAGES_DEBUG", g_getenv ("G_MESSAGES_DEBUG"), NULL); | ||
if (g_getenv ("G_MESSAGES_PREFIXED")) | ||
add_args (args, "--setenv", "G_MESSAGES_PREFIXED", g_getenv ("G_MESSAGES_PREFIXED"), NULL); | ||
+ if (g_getenv ("GDK_PIXBUF_MODULE_FILE")) | ||
+ add_args (args, "--setenv", "GDK_PIXBUF_MODULE_FILE", g_getenv ("GDK_PIXBUF_MODULE_FILE"), NULL); | ||
|
||
add_args (args, validate_icon, arg_width, arg_height, filename, NULL); | ||
g_ptr_array_add (args, NULL); |