Skip to content

Commit cd5b6c4

Browse files
committed
Allow using extract-and-run via environment variable
Useful for "nested" AppImage calls, e.g., linuxdeploy plugins called by linuxdeploy in a Docker environment.
1 parent ce61b83 commit cd5b6c4

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)