no ask
parent
5044eda94d
commit
251fbc4fb7
12
src/vrou.py
12
src/vrou.py
|
@ -72,16 +72,12 @@ def install(program = "none", other="none"):
|
||||||
dpm = detect_pm()
|
dpm = detect_pm()
|
||||||
# Detect snap
|
# Detect snap
|
||||||
if os.path.exists("/usr/bin/snap") and other == "snap":
|
if os.path.exists("/usr/bin/snap") and other == "snap":
|
||||||
print("you can use snap, or your current package manager (" + dpm +")")
|
os.system("snap install " + program)
|
||||||
anr = input("Use snap? (Y/n)")
|
exit()
|
||||||
if "Y" in anr or "y" in anr:
|
|
||||||
os.system("snap install " + program)
|
|
||||||
#Detect flatpak
|
#Detect flatpak
|
||||||
if os.path.exists("/usr/bin/flatpak") and other == "flatpak":
|
if os.path.exists("/usr/bin/flatpak") and other == "flatpak":
|
||||||
print("you can use flatpak (flathub), or your current package manager (" + dpm +")")
|
os.system("flatpak install flathub " + program)
|
||||||
anr = input("Use flatpak? (Y/n)")
|
exit()
|
||||||
if "Y" in anr or "y" in anr:
|
|
||||||
os.system("flatpak install flathub " + program)
|
|
||||||
|
|
||||||
if dpm == "choco":
|
if dpm == "choco":
|
||||||
print("choco detect")
|
print("choco detect")
|
||||||
|
|
Loading…
Reference in New Issue