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.