g_unix_mount_guess_should_display ignores mount
Submitted by Marius Avram
First of all I'm not sure if the bug is in the selected component or somewhere else. Maybe I can get some help from somebody else regarding that.
I have a custom linux distribution where I use glib-2.38.1 and there seems to be an issue with the discovery of new mounted drives in a file manager using glib (pcmanfm). The function mentioned has not changed since then so the problem is still valid.
I've researched this issue a little bit and I discovered that the drive is mounted under /run/media/sdX. The drive is accessible with a root account but when I use the file manager the drive is not showing up. The main reason is that the above function is expecting a path which should looks something like this:
<username>/sdX when in reality the username part is missing.
I could create a patch in which I could overlook the username part if the user_name is root. But is this the desired behavior ?
Otherwise how else can I solve the issue ? Should I look to the component responsible for creating the mounting path prefix? If yes, which is that component as I'm a bit confused.