Skip to content

Commit effcebc

Browse files
authored
Merge pull request #953 from AppImage/extract-and-run-env-var
Allow using extract-and-run via environment variable
2 parents ce61b83 + cd5b6c4 commit effcebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ int main(int argc, char *argv[]) {
662662
free(abspath);
663663
}
664664

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

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

0 commit comments

Comments
 (0)