Skip to content

Commit

Permalink
Merge pull request #953 from AppImage/extract-and-run-env-var
Browse files Browse the repository at this point in the history
Allow using extract-and-run via environment variable
  • Loading branch information
TheAssassin authored May 1, 2019
2 parents ce61b83 + cd5b6c4 commit effcebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ int main(int argc, char *argv[]) {
free(abspath);
}

if (arg && strcmp(arg, "appimage-extract-and-run") == 0) {
if (getenv("APPIMAGE_EXTRACT_AND_RUN") != NULL || (arg && strcmp(arg, "appimage-extract-and-run") == 0)) {
char* hexlified_digest = NULL;

// calculate MD5 hash of file, and use it to make extracted directory name "content-aware"
Expand Down

0 comments on commit effcebc

Please sign in to comment.