fix: appimage: adjust docdir for help menu

This commit is contained in:
Stéphane Lesimple
2021-01-12 22:20:20 +01:00
parent b03bd5d076
commit c0de13c027
3 changed files with 8 additions and 1 deletions

View File

@@ -91,6 +91,12 @@ static void get_base_dirs()
Verbose("Using path from get_exe_path() = %s\n", Closure->binDir);
#endif
/* for AppImage, get docdir from env if there */
if (g_getenv("DVDISASTER_DOCDIR"))
{ if (Closure->docDir)
g_free(Closure->docDir);
Closure->docDir = g_strdup(g_getenv("DVDISASTER_DOCDIR"));
}
/*** The location of the dotfile depends on the operating system.
Under Unix the users home directory is used. */