Skip to content

Commit 28cc61e

Browse files
committed
Overwrite $APPIMAGE and $APPDIR if they already exist, closes #66
1 parent 10b84ee commit 28cc61e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ main (int argc, char *argv[])
357357
/* ======================================================== End icon extraction */
358358

359359
/* Setting some environment variables that the app "inside" might use */
360-
setenv( "APPIMAGE", fullpath, 0 );
361-
setenv( "APPDIR", mount_dir, 0 );
360+
setenv( "APPIMAGE", fullpath, 1 );
361+
setenv( "APPDIR", mount_dir, 1 );
362362
execv (filename, real_argv);
363363
/* Error if we continue here */
364364
perror ("execv error: ");

0 commit comments

Comments
 (0)