之前我按照以下步骤安装了咖啡因,并且运行良好:
sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update
sudo apt-get install caffeine
但最近我全新安装了 Ubuntu 14.04,在使用咖啡因时遇到了问题。安装顺利。但无法运行。终端显示以下错误消息:
╔═[shoumma dell-3442 : ~ ]
╚══╣$║ caffeine
(caffeine:7898): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:3398:10: 'filter' is not a valid property name
Traceback (most recent call last):
File "/usr/bin/caffeine", line 36, in <module>
ewmh = EWMH()
File "/usr/lib/python3/dist-packages/ewmh.py", line 50, in __init__
self.display = _display or display.Display()
File "/usr/lib/python3/dist-packages/Xlib/display.py", line 80, in __init__
self.display = _BaseDisplay(display)
File "/usr/lib/python3/dist-packages/Xlib/display.py", line 62, in __init__
display.Display.__init__(*(self, ) + args, **keys)
File "/usr/lib/python3/dist-packages/Xlib/protocol/display.py", line 129, in __init__
raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n'
我不明白我做错了什么。我是唯一一个遇到这个问题的人吗?如果有任何解决方案,请告诉我。我喜欢这个软件。任何帮助都将不胜感激。