mirror of
https://github.com/dkmstr/openuds.git
synced 2025-02-01 05:47:17 +03:00
fix Actor for newer Oss
This commit is contained in:
parent
4c4a54e50b
commit
ba09bab8a1
@ -33,6 +33,7 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import sys
|
||||
import os
|
||||
from PyQt4 import QtCore, QtGui
|
||||
import six
|
||||
|
||||
@ -93,6 +94,11 @@ class UDSConfigDialog(QtGui.QDialog):
|
||||
self.close()
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
# If to be run as "sudo" on linux, we will need this to avoid problems
|
||||
if 'linux' in sys.platform:
|
||||
os.environ['QT_X11_NO_MITSHM'] = '1'
|
||||
|
||||
app = QtGui.QApplication(sys.argv)
|
||||
|
||||
if store.checkPermissions() is False:
|
||||
|
Loading…
x
Reference in New Issue
Block a user