Skip to content

Commit 76d60e9

Browse files
committed
🐛 Fixed xhost: unable to open display :0.0
1 parent 16281f6 commit 76d60e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/upload_python_package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
env:
12-
DISPLAY: :0.0
12+
# DISPLAY: :0.0
1313
XAUTHORITY: /run/user/1000/gdm/Xauthority
14+
LIBGL_ALWAYS_INDIRECT: 1
1415

1516
steps:
1617
- uses: actions/checkout@v2
@@ -20,6 +21,7 @@ jobs:
2021
python-version: '3.x'
2122
- name: Setup Device Information.
2223
run: |
24+
echo "export DISPLAY=\$(cat /etc/resolv.conf | grep nameserver | awk '{print \$2}'):0.0" >> ~/.profile
2325
pip install xkeysnail
2426
xhost +SI:localuser:root
2527
xkeysnail config.py

0 commit comments

Comments
 (0)