We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 733039e + 1569d6f commit bd29ee5Copy full SHA for bd29ee5
runtime.c
@@ -359,6 +359,13 @@ main (int argc, char *argv[])
359
/* Setting some environment variables that the app "inside" might use */
360
setenv( "APPIMAGE", fullpath, 1 );
361
setenv( "APPDIR", mount_dir, 1 );
362
+
363
+ /* Original working directory */
364
+ char cwd[1024];
365
+ if (getcwd(cwd, sizeof(cwd)) != NULL) {
366
+ setenv( "OWD", cwd, 1 );
367
+ }
368
369
execv (filename, real_argv);
370
/* Error if we continue here */
371
perror ("execv error: ");
0 commit comments