Bug 489337 - Unable to open files under /mnt
Summary: Unable to open files under /mnt
Status: REPORTED
Alias: None
Product: kile
Classification: Applications
Component: user interface (other bugs)
Version First Reported In: 2.9.94
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-27 19:39 UTC by Johannes
Modified: 2024-08-28 20:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Archive with 5 pngs (289.38 KB, application/zip)
2024-06-27 19:39 UTC, Johannes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes 2024-06-27 19:39:25 UTC
Created attachment 171099 [details]
Archive with 5 pngs

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

I have a second drive mounted to /mnt/data and I soft link most of my home folders (Music, Documents, Videos, etc)  to that location (bug_kile_1).
I'm unable to see these linked folders in the file picker (bug_kile_2). When I open a file with Kile it shows an error after opening the application (bug_kile_3).

The linked folders show up as files in the file picker, if "All files" is selected (bug_kile_4).
I'm unable to see my /mnt directory in the file picker (bug_kile_5).
/mnt is owned by root with 755 permissions. No other applications I've tried (flatpak and not flatpak) have this issue.

STEPS TO REPRODUCE
1. Create /mnt/data, if it does not already exist
2. (optional) Mount a disk to /mnt/data
3. Create /mnt/data/dir owned by user running Kile
4. Create a file in /mnt/data/dir
5. Open this file

OBSERVED RESULT
Open any file the user has permission to open

EXPECTED RESULT
Some files are cannot be opened, because of their location.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch
(available in About System)
KDE Plasma Version:  6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kile installed as Flatpak
Comment 1 Johannes 2024-08-28 20:59:16 UTC
I managed to fix the issue by granting kile read write access to xdg-documents via the flatpak settings. Just user home doesnt seem to be enough