From 15f967c348f302f3c66449fc4f69915146bbde91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Sun, 7 Feb 2021 07:02:05 +0200 Subject: [PATCH 1/1] App: Determine first run based on existence of prefs.cfg --- src/app.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.c b/src/app.c index a368767a..1ded058a 100644 --- a/src/app.c +++ b/src/app.c @@ -399,7 +399,8 @@ static void init_App_(iApp *d, int argc, char **argv) { } SDL_free(exec); } - const iBool isFirstRun = !fileExistsCStr_FileInfo(cleanedPath_CStr(dataDir_App_())); + const iBool isFirstRun = + !fileExistsCStr_FileInfo(cleanedPath_CStr(concatPath_CStr(dataDir_App_(), "prefs.cfg"))); d->isFinishedLaunching = iFalse; d->launchCommands = new_StringList(); iZap(d->lastDropTime); -- 2.34.1