mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-03 20:38:10 +03:00
Add AppImage path discovery
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -30,6 +30,7 @@ import subprocess
|
||||
__all__ = [
|
||||
'getPythonVersion',
|
||||
'getUbuntuRelease',
|
||||
'getAppImagePath',
|
||||
'isAdministrator',
|
||||
'isTUNMode',
|
||||
'isScriptMode',
|
||||
@@ -71,6 +72,16 @@ def getUbuntuRelease() -> str:
|
||||
return ''
|
||||
|
||||
|
||||
def getAppImagePath() -> str:
|
||||
if PLATFORM != 'Linux':
|
||||
return ''
|
||||
|
||||
if 'APPIMAGE' in os.environ:
|
||||
return os.environ['APPIMAGE']
|
||||
else:
|
||||
return ''
|
||||
|
||||
|
||||
@functools.lru_cache(None)
|
||||
def isAdministrator() -> bool:
|
||||
if PLATFORM == 'Windows':
|
||||
|
||||
Reference in New Issue
Block a user