[gimp] app: use g_file_query_file_type() to check for the GIMP directory
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use g_file_query_file_type() to check for the GIMP directory
- Date: Tue, 29 Jul 2014 10:04:57 +0000 (UTC)
commit 7149a5ac6cad003a835abf7ea884113cd77bbae3
Author: Michael Natterer <mitch gimp org>
Date: Tue Jul 29 12:04:17 2014 +0200
app: use g_file_query_file_type() to check for the GIMP directory
app/app.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/app.c b/app/app.c
index 59384d0..cc5f5c5 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]