summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file-utilities.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-file-utilities.c')
-rw-r--r--libcaja-private/caja-file-utilities.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/libcaja-private/caja-file-utilities.c b/libcaja-private/caja-file-utilities.c
index cc08be57..51083122 100644
--- a/libcaja-private/caja-file-utilities.c
+++ b/libcaja-private/caja-file-utilities.c
@@ -43,8 +43,6 @@
#include <unistd.h>
#include <stdlib.h>
-#include <src/glibcompat.h> /* for g_list_free_full */
-
#define CAJA_USER_DIRECTORY_NAME ".config/caja"
#define DEFAULT_CAJA_DIRECTORY_MODE (0755)
@@ -1107,18 +1105,13 @@ caja_find_file_insensitive_next (GFile *parent, const gchar *name)
gboolean
caja_is_engrampa_installed (void)
{
- static int installed = - 1;
+ static int installed = -1;
if (installed < 0)
{
- if (g_find_program_in_path ("engrampa"))
- {
- installed = 1;
- }
- else
- {
- installed = 0;
- }
+ gchar *found = g_find_program_in_path ("engrampa");
+ installed = found ? 1 : 0;
+ g_free (found);
}
return installed > 0 ? TRUE : FALSE;