Bug Fix #426: geeqie -r file:FILE crashes if FILE does not exist
authorColin Clark <cclark@mcb.net>
Wed, 24 Aug 2016 16:01:32 +0000 (17:01 +0100)
committerColin Clark <cclark@mcb.net>
Wed, 24 Aug 2016 16:01:32 +0000 (17:01 +0100)
If the file does not exist, default to the home directory

src/remote.c

index db87526..c89eff9 100644 (file)
@@ -516,6 +516,7 @@ static void gr_file_load(const gchar *text, GIOChannel *channel, gpointer data)
        else
                {
                log_printf("remote sent filename that does not exist:\"%s\"\n", filename);
+               layout_set_path(NULL, homedir());
                }
 
        g_free(filename);
@@ -532,6 +533,7 @@ static void gr_config_load(const gchar *text, GIOChannel *channel, gpointer data
        else
                {
                log_printf("remote sent filename that does not exist:\"%s\"\n", filename);
+               layout_set_path(NULL, homedir());
                }
 
        g_free(filename);