diff options
author | 2016-06-11 09:11:12 +0200 | |
---|---|---|
committer | 2016-06-11 09:11:12 +0200 | |
commit | 51187308df74ae27a551cb31fd063c92c8b44371 (patch) | |
tree | 1de208e28b6db1ab0dd31b998584363319bf4adf /src/firejail | |
parent | testing (diff) | |
download | firejail-51187308df74ae27a551cb31fd063c92c8b44371.tar.gz firejail-51187308df74ae27a551cb31fd063c92c8b44371.tar.zst firejail-51187308df74ae27a551cb31fd063c92c8b44371.zip |
Set $APPIMAGE and $APPDIR environment variables
Partly fixes #560
Diffstat (limited to 'src/firejail')
-rw-r--r-- | src/firejail/appimage.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/firejail/appimage.c b/src/firejail/appimage.c index 2d5a05b8d..930d92177 100644 --- a/src/firejail/appimage.c +++ b/src/firejail/appimage.c | |||
@@ -87,7 +87,13 @@ void appimage_set(const char *appimage_path) { | |||
87 | if (arg_debug) | 87 | if (arg_debug) |
88 | printf("appimage mounted on %s\n", mntdir); | 88 | printf("appimage mounted on %s\n", mntdir); |
89 | EUID_USER(); | 89 | EUID_USER(); |
90 | |||
91 | if (mntdir && setenv("APPIMAGE", appimage_path, 1) < 0) | ||
92 | errExit("setenv"); | ||
90 | 93 | ||
94 | if (mntdir && setenv("APPDIR", mntdir, 1) < 0) | ||
95 | errExit("setenv"); | ||
96 | |||
91 | // build new command line | 97 | // build new command line |
92 | if (asprintf(&cfg.command_line, "%s/AppRun", mntdir) == -1) | 98 | if (asprintf(&cfg.command_line, "%s/AppRun", mntdir) == -1) |
93 | errExit("asprintf"); | 99 | errExit("asprintf"); |