{
gboolean have_file = FALSE;
gboolean dir_changed = TRUE;
+ gchar *last_image;
if (!layout_valid(&lw)) return FALSE;
}
lw->dir_fd = file_data_ref(fd);
file_data_register_real_time_monitor(fd);
+
+ last_image = get_recent_viewed_folder_image(fd->path);
+ if (last_image)
+ {
+ fd = file_data_new_group(last_image);
+ g_free(last_image);
+
+ if (isfile(fd->path)) have_file = TRUE;
+ }
+
}
else
{
static void layout_config_commandline(LayoutOptions *lop, gchar **path)
{
+ gchar *last_image;
+
if (command_line->startup_blank)
{
*path = NULL;
}
else layout_config_startup_path(lop, path);
+ if (isdir(*path))
+ {
+ last_image = get_recent_viewed_folder_image(*path);
+ if (last_image)
+ {
+ g_free(*path);
+ *path = last_image;
+ }
+ }
+
if (command_line->tools_show)
{
lop->tools_float = FALSE;