mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
fix nautilus failing to load in linux build
This commit is contained in:
parent
8e71554ac4
commit
3be25cf900
1 changed files with 4 additions and 0 deletions
|
@ -347,7 +347,11 @@ def openFolder(path):
|
||||||
if isWin:
|
if isWin:
|
||||||
subprocess.Popen(["explorer", path])
|
subprocess.Popen(["explorer", path])
|
||||||
else:
|
else:
|
||||||
|
oldlpath = os.environ.get("LD_LIBRARY_PATH")
|
||||||
|
del os.environ["LD_LIBRARY_PATH"]
|
||||||
QDesktopServices.openUrl(QUrl("file://" + path))
|
QDesktopServices.openUrl(QUrl("file://" + path))
|
||||||
|
if oldlpath:
|
||||||
|
os.environ["LD_LIBRARY_PATH"] = oldlpath
|
||||||
|
|
||||||
def shortcut(key):
|
def shortcut(key):
|
||||||
if isMac:
|
if isMac:
|
||||||
|
|
Loading…
Reference in a new issue