mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-24 09:52:48 -04:00
When launched when the session starts, /run/media/%u may not exist if the user has never mounted any removable storage devices. This causes the unit to fail on login. Relax the check to just validate that the argument has been provided. Since we use shopt -s nullglob, the "$media_dir"/* glob will expand to the empty list if $media_dir does not exist. (The other option is to add a condition check to the .service, but the script might conceivably want to clean up some stale symlinks.)