How to fix error Xlib.error.DisplayConnectionError: Can't connect to display “:0”: b'No protocol specified\n'

前端 未结 2 1279
南笙
南笙 2021-02-08 14:34

I\'m making some program with python3 and XLib.

On my PC with Ubuntu 14.04 everything works fine but when I try to run my app in my notebook with manualy installed Xorg

相关标签:
2条回答
  • 2021-02-08 15:02

    Ok, It was bug in python3-xlib. See https://github.com/LiuLang/python3-xlib/issues/6 for details.

    0 讨论(0)
  • 2021-02-08 15:08

    Temporary workaround is

    $ xhost +
    

    http://ubuntuforums.org/showthread.php?t=2290602

    0 讨论(0)
提交回复
热议问题