is there a way to determine udisks default mount path?

145 views Asked by At

It can be /media/ or /media/$USER or /run/media/$USER depends on distro or customization. Is there a unified way to get its value programmatically regardless distros?

1

There are 1 answers

2
Eric Marceau On

Have a look at this, where they reference a passage from the man page for :

UDISKS_FILESYSTEM_SHARED : If set to 1, the filesystem on the device will be mounted in a shared directory (e.g. /media/VolumeName) instead of a private directory (e.g./run/media/$USER/VolumeName) when the Filesystem.Mount() method is handled.