summaryrefslogtreecommitdiff
path: root/archivers/xarchiver/files/patch-src_main.c
blob: 2c499398688bf2a84d559f3e1f7e8106522145e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- src/main.c.orig	2022-08-25 20:42:45 UTC
+++ src/main.c
@@ -410,7 +410,7 @@ static void xa_check_available_archivers ()
 	/* GNU zip */
 
 	type = XARCHIVETYPE_GZIP;
-	path = g_find_program_in_path("gzip");
+	path = g_find_program_in_path("%%LOCALBASE%%/bin/gzip");
 
 	if (path)
 		archiver[type].is_compressor = TRUE;
@@ -906,11 +906,11 @@ static void xa_check_available_archivers ()
 	if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(prefs_window->prefer_unzip)) ||
 	    (!is7za && !lsar))
 	{
-		path = g_find_program_in_path("unzip");
+		path = g_find_program_in_path("%%LOCALBASE%%/bin/unzip");
 
 		if (path)
 		{
-			gchar *zip = g_find_program_in_path("zip");
+			gchar *zip = g_find_program_in_path("%%LOCALBASE%%/bin/zip");
 
 			if (zip)
 			{