diff options
Diffstat (limited to 'src/firejail/join.c')
-rw-r--r-- | src/firejail/join.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/join.c b/src/firejail/join.c index 7fd5ec3d3..ca8b8c4bf 100644 --- a/src/firejail/join.c +++ b/src/firejail/join.c | |||
@@ -545,12 +545,14 @@ void join(pid_t pid, int argc, char **argv, int index) { | |||
545 | free(display_str); | 545 | free(display_str); |
546 | } | 546 | } |
547 | 547 | ||
548 | #ifdef HAVE_DBUSPROXY | ||
548 | // set D-Bus environment variables | 549 | // set D-Bus environment variables |
549 | struct stat s; | 550 | struct stat s; |
550 | if (stat(RUN_DBUS_USER_SOCKET, &s) == 0) | 551 | if (stat(RUN_DBUS_USER_SOCKET, &s) == 0) |
551 | dbus_set_session_bus_env(); | 552 | dbus_set_session_bus_env(); |
552 | if (stat(RUN_DBUS_SYSTEM_SOCKET, &s) == 0) | 553 | if (stat(RUN_DBUS_SYSTEM_SOCKET, &s) == 0) |
553 | dbus_set_system_bus_env(); | 554 | dbus_set_system_bus_env(); |
555 | #endif | ||
554 | 556 | ||
555 | start_application(0, NULL); | 557 | start_application(0, NULL); |
556 | 558 | ||