Is there a standard way for getting the media mount path (like /media/user, /run/media/user...)?
4
votes
0
answers
760
views
In an application, I need to find out where removable media is mounted. On Ubuntu, this happens in
/media/username/
. On Arch, it is /run/media/username/
. On other systems, its just /media/
etc.
There seems to be no XDG
environment variable for this path. So I wonder, is this standardized anywhere? The FHS only specifies that there must be a /media directory, not how to find out that directory.
Asked by dv_
(151 rep)
Sep 22, 2016, 09:18 AM
Last activity: Sep 22, 2016, 09:29 AM
Last activity: Sep 22, 2016, 09:29 AM