add uninstall function

This commit is contained in:
Rikka
2023-05-27 16:55:24 +08:00
committed by Rikka
parent 4d15b6153c
commit 0d7681bccb
12 changed files with 244 additions and 63 deletions
+4
View File
@@ -19,6 +19,10 @@ def get_download_dir():
os.makedirs(download_loc)
return download_loc
# not good
def get_data_dir():
return os.path.join('/', "home", os.environ.get("SUDO_USER", os.environ["USER"]), ".local", "share", "waydroid", "data")
def run(args, ignore=""):
result = subprocess.run(args=args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# print(result.stdout.decode())