thunar-archive-plugin/02_support-non-multiarch-wrappers.patch
2020-07-28 10:45:20 +08:00

35 lines
1.1 KiB
Diff

From: Lionel Le Folgoc <lionel@lefolgoc.net>
Date: Tue, 11 Oct 2011 22:08:00 +0200
Subject: Look for wrappers in {non-,}multiarch LIBEXECDIRs
This will let a multiarch enabled t-a-p find wrappers installed into the old
wrappers' directory (both /usr/lib/$triplet and /usr/lib).
Forwarded: not-needed
---
thunar-archive-plugin/tap-backend.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/thunar-archive-plugin/tap-backend.c b/thunar-archive-plugin/tap-backend.c
index 7941d9d..75dfbc6 100644
--- a/thunar-archive-plugin/tap-backend.c
+++ b/thunar-archive-plugin/tap-backend.c
@@ -373,6 +373,17 @@ tap_backend_mime_wrapper (GAppInfo *mime_application)
filename = NULL;
}
+ /* Try to find wrappers in non-multiarch LIBEXECDIR */
+ if (filename == NULL)
+ {
+ filename = g_strdup_printf ("/usr/lib/thunar-archive-plugin" G_DIR_SEPARATOR_S "%s.tap", base_name);
+ if (!g_file_test (filename, G_FILE_TEST_IS_EXECUTABLE))
+ {
+ g_free (filename);
+ filename = NULL;
+ }
+ }
+
/* cleanup */
g_free (base_name);