Fix download_loc if XDG_CACHE_HOME is set
This commit is contained in:
parent
4bdb95aee0
commit
4736a61136
1 changed files with 1 additions and 1 deletions
2
waydroid_extras.py
Normal file → Executable file
2
waydroid_extras.py
Normal file → Executable file
|
|
@ -15,7 +15,7 @@ download_loc = ""
|
|||
if os.environ.get("XDG_CACHE_HOME", None) is None:
|
||||
download_loc = os.path.join('/', "home", os.environ.get("SUDO_USER", os.environ["USER"]), ".cache", "waydroid_script", "downloads")
|
||||
else:
|
||||
os.path.join(os.environ["XDG_CACHE_HOME"], "waydroid_script", "downloads")
|
||||
download_loc = os.path.join(os.environ["XDG_CACHE_HOME"], "waydroid_script", "downloads")
|
||||
|
||||
print(download_loc)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue