Commit c672fcc0 authored by Philip Withnall's avatar Philip Withnall

gunixmounts: Allow root to display mounts under /run/media/$username

Normally, the list of mounts is filtered to exclude mounts in
/run/media/$username where $username is not the current user. However,
root can access all the mounts under /run/media/, regardless of the
username — so there’s no point in filtering out those mounts.

In some cases, filtering them out is harmful. In the case of a system
service which uses GVolumeMonitor, for example, filtering them out means
the service cannot see automounted USB sticks belonging to user
Signed-off-by: Philip Withnall's avatarPhilip Withnall <>
parent 7c1f38b1
Pipeline #5703 failed with stage
in 3 minutes and 17 seconds