app: use g_file_query_file_type() to check for the GIMP directory

This commit is contained in:
Michael Natterer 2014-07-29 12:04:17 +02:00
parent b200345a98
commit 7149a5ac6c
1 changed files with 3 additions and 1 deletions

View File

@ -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);