diff options
-rw-r--r-- | src/firejail/fs_home.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/firejail/fs_home.c b/src/firejail/fs_home.c index 010999d7a..25c167af1 100644 --- a/src/firejail/fs_home.c +++ b/src/firejail/fs_home.c | |||
@@ -110,6 +110,9 @@ static void skel(const char *homedir, uid_t u, gid_t g) { | |||
110 | } | 110 | } |
111 | 111 | ||
112 | static int store_xauthority(void) { | 112 | static int store_xauthority(void) { |
113 | if (arg_x11_block) | ||
114 | return 0; | ||
115 | |||
113 | // put a copy of .Xauthority in XAUTHORITY_FILE | 116 | // put a copy of .Xauthority in XAUTHORITY_FILE |
114 | char *dest = RUN_XAUTHORITY_FILE; | 117 | char *dest = RUN_XAUTHORITY_FILE; |
115 | char *src; | 118 | char *src; |
@@ -145,6 +148,9 @@ static int store_xauthority(void) { | |||
145 | } | 148 | } |
146 | 149 | ||
147 | static int store_asoundrc(void) { | 150 | static int store_asoundrc(void) { |
151 | if (arg_nosound) | ||
152 | return 0; | ||
153 | |||
148 | // put a copy of .asoundrc in ASOUNDRC_FILE | 154 | // put a copy of .asoundrc in ASOUNDRC_FILE |
149 | char *dest = RUN_ASOUNDRC_FILE; | 155 | char *dest = RUN_ASOUNDRC_FILE; |
150 | char *src; | 156 | char *src; |