Bug 429544

Summary: Device notifier does not ignore bind mounts when opening folders
Product: [Plasma] plasmashell Reporter: Riccardo Robecchi <sephiroth_pk>
Component: DataEnginesAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.20.3   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Riccardo Robecchi 2020-11-23 12:07:14 UTC
SUMMARY
Device notifier opens the wrong directory if a bind mount is used. If I mount a partition (let's call it /dev/sda1, mounted on /mnt) and then bind mount a folder to another folder (e.g. /mnt/music to /home/user/music), clicking "open in file manager" in the device notifier opens the folder that's bind mounted and not the actual device. 

STEPS TO REPRODUCE
1. mount a device
2. bind mount a folder
3. open the device from the device notifier

OBSERVED RESULT
The bind mounted folder is opened.

EXPECTED RESULT
The main device folder is opened.

SOFTWARE/OS VERSIONS
Linux: KDE Neon Focal
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76
Qt Version: 5.15.1

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-11-25 01:03:33 UTC
Problem in the Solid DataEngine.
Comment 2 Riccardo Robecchi 2022-02-12 15:07:51 UTC
This is fixed as of Plasma 5.24.0 with Frameworks 5.90.