fix nautilus failing to load in linux build

This commit is contained in:
Damien Elmes 2016-07-14 21:06:33 +10:00
parent 8e71554ac4
commit 3be25cf900

View File

@ -347,7 +347,11 @@ def openFolder(path):
if isWin:
subprocess.Popen(["explorer", path])
else:
oldlpath = os.environ.get("LD_LIBRARY_PATH")
del os.environ["LD_LIBRARY_PATH"]
QDesktopServices.openUrl(QUrl("file://" + path))
if oldlpath:
os.environ["LD_LIBRARY_PATH"] = oldlpath
def shortcut(key):
if isMac: