diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-store-launch b/tools/linuxfs/overlay/usr/local/bin/droiddeck-store-launch index 9a26979021..0aa5088bb0 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-store-launch +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-store-launch @@ -138,7 +138,10 @@ def set_value(reg, key, name, value, now=None): def overlay_version(overlay_dir=OVERLAY_DIR): """The overlay build the app placed, or None when it is not there.""" d = Path(overlay_dir) - if not (d / OVERLAY_DLL).is_file(): + try: + if not (d / OVERLAY_DLL).is_file(): + return None + except OSError: # unreadable is the same as not there return None try: return (d / "droiddeck-version").read_text().strip() or "unknown"