You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xhost + local:discord;#allow discord to connect to X
14
+
docker run --rm -it \
15
+
--name discord \
16
+
--hostname discord \
17
+
-v /home/$USER:/home/$USER \
18
+
-e DISPLAY=$DISPLAY \
19
+
-v /etc/group:/etc/group:ro \
20
+
-v /etc/passwd:/etc/passwd:ro \
21
+
-v /etc/shadow:/etc/shadow:ro \
22
+
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
23
+
-v /etc/localtime:/etc/localtime:ro \
24
+
--user $(id -u) \
25
+
--device /dev/snd \
26
+
discord;
27
+
xhost - local:discord;#remove discord from being allowed to connect to X
19
28
```
20
-
## Issues
21
-
* You have to log out Discord to close the docker container.
29
+
The previous commands is to be run on a linux machine. But Mac users, I have a special surprise for you. You can also do fun hacks with X11. Details are described [here](https://github.com/docker/docker/issues/8710).
30
+
31
+
## Issues
32
+
* You have to log out Discord or be sure 'minimize to try' is turned off in user settings under linux settings to be able to close discord fully.
22
33
23
34
24
35
## FAQ
25
36
### Docker <1.8
26
37
Before Docker 1.8 you need to replace `--device /dev/snd` by `-v /dev/snd:/dev/snd --privileged`.
27
38
28
-
29
-
### QXcbConnection: Could not connect to display unix:0
39
+
### 'QXcbConnection: Could not connect to display unix:0' or 'No protocol specified'
40
+
Some form of
30
41
```shell
31
42
xhost +
32
43
```
33
-
do not forget to remove it after start or usage (`xhost -`)
34
-
The previous command is to be run on a linux machine. But Mac users, I have a special surprise for you. You can also do fun hacks with X11. Details are described [here](https://github.com/docker/docker/issues/8710).
44
+
Before running is required to get this working and remember to remove after finished usage (`xhost -`)
35
45
36
46
37
47
Thanks to [Discord](https://discordapp.com/) for their great app !
0 commit comments