]> git.sur5r.net Git - i3/i3/commitdiff
Export I3SOCK (#3476) 3484/head
authorAlbert Safin <xzfcpw@gmail.com>
Fri, 26 Oct 2018 08:40:59 +0000 (15:40 +0700)
committerAlbert Safin <xzfcpw@gmail.com>
Fri, 26 Oct 2018 08:40:59 +0000 (15:40 +0700)
src/startup.c

index 6302d811e3b4b3688ff59cc8bbfe7108edcfc390..c5b7ad5da0b702be671407eac8c69338ff423342 100644 (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 */