def makeWaydroidDesktopFile(hide):
desktop_file_path = apps_dir + "/Waydroid.desktop"
# If the user has set the desktop file as read-only, we won't replace it
- if not os.access(desktop_file_path, os.W_OK):
+ if os.path.isfile(desktop_file_path) and not os.access(desktop_file_path, os.W_OK):
logging.info(f"Desktop file '{desktop_file_path}' is not writeable, not updating it")
else:
if os.path.isfile(desktop_file_path):
Type=Application
Name=Waydroid
Exec=waydroid show-full-ui
-Categories=X-WayDroid-App;
+Categories=X-WayDroid-App;Utility;
X-Purism-FormFactor=Workstation;Mobile;
Icon=waydroid
NoDisplay={str(hide).lower()}