Browse Source

Add kxstudio dbus workaround to catia and claudia

tags/v0.9.0
falkTX 6 years ago
parent
commit
7e98325af3
2 changed files with 20 additions and 2 deletions
  1. +10
    -1
      src/catia.py
  2. +10
    -1
      src/claudia.py

+ 10
- 1
src/catia.py View File

@@ -31,7 +31,16 @@ try:
from dbus.mainloop.pyqt5 import DBusQtMainLoop
haveDBus = True
except:
haveDBus = False
kxstudioWorkaround = "/opt/kxstudio/python3/dist-packages/dbus/mainloop"
if os.path.exists(kxstudioWorkaround):
try:
sys.path.insert(0, kxstudioWorkaround)
from pyqt5 import DBusQtMainLoop
haveDBus = True
except:
haveDBus = False
else:
haveDBus = False

# ------------------------------------------------------------------------------------------------------------
# Try Import OpenGL


+ 10
- 1
src/claudia.py View File

@@ -51,7 +51,16 @@ try:
from dbus.mainloop.pyqt5 import DBusQtMainLoop
haveDBus = True
except:
haveDBus = False
kxstudioWorkaround = "/opt/kxstudio/python3/dist-packages/dbus/mainloop"
if os.path.exists(kxstudioWorkaround):
try:
sys.path.insert(0, kxstudioWorkaround)
from pyqt5 import DBusQtMainLoop
haveDBus = True
except:
haveDBus = False
else:
haveDBus = False

# ------------------------------------------------------------------------------------------------------------
# Try Import OpenGL


Loading…
Cancel
Save