change the default mount point under `/media` or `/run/media` instead of `/mnt`
Current behavior
When mounting a file or a device, veracrypt will create a directory under /mnt.
The drawback of current behavior
The directory /mnt is usually a place where user want to manually operate on. For example, mounting a chroot linux distro root filesystem (Arch Linux), or mounting a specific filesystem which user want to operate it inside shell.
The nature of mounting which veracrypt need is same as what udisk2 like (Just a place where user want to open inside file manager).
Desired behavior
As a result, it would be nice to follow the same or similar behavior as udisk2 or other auto-mounting facility of Linux system. Creating a mountpoint under /media or /run/media and under the subdirectory of username. This will make /mnt available during mounting of veracrypt volume.
Screenshots/Mockup/Designs
Additional information
Your Environment
Please tell us more about your environment
VeraCrypt version:
Operating system and version:
System type:
Currently /media/ is used preferentially if it exists, after that it fallbacks to /mnt/ and then temporary files.
https://github.com/veracrypt/VeraCrypt/blob/2f8161af342217a5f59c4b7d6c73f425857a618b/src/Core/Unix/CoreUnix.cpp#L288-L301
@Jertzukka , I think it would be good to add /run/media and remove /mnt.
Because for nowadays Linux distro, almost certain either /media or /run/media will do exist.
And if mounting on a temporary directory, mount-point actually doesn't take up storage space and won't consume tmpfs.
But if a user doing chroot inside /mnt, mounting in /mnt/veracrypt will bring a lot of undetermined inconvenient to the user.
@evan0greenup , will https://github.com/veracrypt/VeraCrypt/pull/1524 help?
To be note that the long or short of prefix does not matter at all, because, the most common way that user enter the directory is by clicking the drive row entry in VeraCrypt GUI.