diff --git a/src/main.c b/src/main.c index 4d67fe354..e8807eec0 100644 --- a/src/main.c +++ b/src/main.c @@ -153,9 +153,6 @@ OS_Setup (void) mc_global.sysconfig_dir = g_strdup (SYSCONFDIR); mc_global.share_data_dir = g_strdup (DATADIR); - - /* Set up temporary directory */ - mc_tmpdir (); } /* --------------------------------------------------------------------------------------------- */ @@ -298,6 +295,9 @@ main (int argc, char *argv[]) vfs_plugins_init (); vfs_setup_work_dir (); + /* Set up temporary directory after VFS initialization */ + mc_tmpdir (); + /* do this after vfs initialization due to mc_setctl() call in mc_setup_by_args() */ if (!mc_setup_by_args (argc, argv, &error)) {