This commit is contained in:
2026-01-10 04:08:56 +01:00
parent 864a89ba4e
commit 490ce1f819
5 changed files with 38 additions and 9 deletions
+9
View File
@@ -0,0 +1,9 @@
有时候会遇到一些需要提权运行的 GUI 应用显示不了窗口的情况,
例如 Gtk 报错:`cannot open display: :1`
这有可能是 root 用户无权访问 X 显示服务导致的。运行
```bash
xhost +SI:localuser:root
```
可以允许本机的 root 用户访问 X 显示服务,或许可以解决问题。