From 7149a5ac6cad003a835abf7ea884113cd77bbae3 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 29 Jul 2014 12:04:17 +0200 Subject: [PATCH] app: use g_file_query_file_type() to check for the GIMP directory --- app/app.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/app.c b/app/app.c index 59384d0bce..cc5f5c5733 100644 --- a/app/app.c +++ b/app/app.c @@ -211,7 +211,9 @@ app_run (const gchar *full_prog_name, /* Check if the user's gimp_directory exists */ - if (! g_file_test (gimp_directory (), G_FILE_TEST_IS_DIR)) + if (g_file_query_file_type (gimp_directory_file (NULL), + G_FILE_QUERY_INFO_NONE, NULL) != + G_FILE_TYPE_DIRECTORY) { GimpUserInstall *install = gimp_user_install_new (be_verbose);