Merge pull request #3484 from xzfc/3476-export-i3sock

Export I3SOCK
This commit is contained in:
Ingo Bürk 2018-11-10 22:12:01 +01:00 committed by GitHub
commit 90c39a4bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@ void start_application(const char *command, bool no_startup_id) {
/* Setup the environment variable(s) */
if (!no_startup_id)
sn_launcher_context_setup_child_process(context);
setenv("I3SOCK", current_socketpath, 1);
execl(_PATH_BSHELL, _PATH_BSHELL, "-c", command, NULL);
/* not reached */