1
0
Fork 0
mirror of synced 2024-09-28 15:31:14 +12:00

Add warning, if desktop link not supported

This commit is contained in:
Dummerle 2021-06-20 22:03:14 +02:00
parent a5997f62ab
commit 52bea4e43f

View file

@ -66,6 +66,10 @@ class BaseInstalledWidget(QGroupBox):
self.addAction(uninstall)
def create_desktop_link(self, type_of_link):
if platform.system() not in ["Windows", "Linux"]:
QMessageBox.warning(self, "Warning",
f"Create a Desktop link is currently not supported on {platform.system()}")
return
if type_of_link == "desktop":
path = os.path.expanduser(f"~/Desktop/")
elif type_of_link == "start_menu":