diff --git a/smother.py b/smother.py index ecf8131..5ed1095 100755 --- a/smother.py +++ b/smother.py @@ -3,6 +3,7 @@ import os import yaml import time +import ctypes gi.require_version('Gtk', '3.0') from threading import Thread from gi.repository import Gtk @@ -146,6 +147,8 @@ def status_check(self): vpnstatus = False time.sleep(1) +x11 = ctypes.cdll.LoadLibrary('libX11.so') +x11.XInitThreads() win = Smother() win.connect("destroy", Gtk.main_quit) win.show_all()