X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/3e6872c0fd97dd5463d07315548187ad16a1eda1..d8c700bbb8b7bd992b9fe9b43de8a2f3d8e8587f:/tools/services/user_manager.py diff --git a/tools/services/user_manager.py b/tools/services/user_manager.py index 83a50cc..98cda79 100644 --- a/tools/services/user_manager.py +++ b/tools/services/user_manager.py @@ -50,7 +50,7 @@ Icon={waydroid_data}/icons/com.android.settings.png 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): @@ -61,7 +61,7 @@ Icon={waydroid_data}/icons/com.android.settings.png 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()}