Closed carpediem29 closed 6 months ago
You should be able to mount things in /var/foo
and then grant access to that folder to selected Flatpaks with Flatseal.
Do you mean reconfigure all Flatpaks to access /var/nas for instance ? Isn't had overkill. How should it be done ? I don't see a way right now.
By default /var in Flatpaks do not list my NAS directory :
$ flatpak run --command=bash com.github.qarmin.czkawka
[π¦ com.github.qarmin.czkawka ~]$ ls /var
cache config data db home mnt opt run srv tmp
[π¦ com.github.qarmin.czkawka ~]$ exit
exit
$ flatpak --command=bash run com.xnview.XnViewMP
[π¦ com.xnview.XnViewMP ~]$ ls /var
cache config data db home run tmp
Any reason for not using /mnt or /media instead of /var for mount points with SilverBlue ? I know we want data in /etc and /var mainly but some extra mount points are popular especially for those migrating.
Applications in Flatpaks should access files via portals (https://flatpak.github.io/xdg-desktop-portal/).
For those that don't, you need to give them access directly, usually using Flatseal (https://flathub.org/apps/com.github.tchx84.Flatseal) or the command line.
Example:
$ flatpak override --user --filesystem=/var/nas:ro org.kde.kcalc
$ flatpak override --user --show org.kde.kcalc
[Context]
filesystems=/var/nas:ro;
$ flatpak run --command=bash org.kde.kcalc
# ls -d /var/nas
...
Understood. So strategy for SilverBlue users to use NAS shares is to mount under /var/foo subdirectories (only /var top directory can be selected) and use Flatpak override feature (by CLI or Flatseal). Will mark this bug as Closed.
You can mount anywhere under /var
and share it with Flatpaks.
i'm using an uptodate SilverBlue 39 system and I'm facing an issue experienced since I installed SilverBlue - it was 38 back then.
Describe the bug I set-up autofs to access my NAS shares but with Silverblue can just use /var as top mount point .
/mnt and /media cannot be used. This is a big issue when using Flatpak apps (gThumb, XnView MP, Czkawka for instance) as /var is not accessible from Flatpak apps. Either a SeLinux configuration or restriction elsewhere on mount points.
To Reproduce When configuring autofs to use /mnt or /media - for instance configuring /etc/auto.master with such content :
Error message is clear : mount failed & umount_autofs_indirect:252: ioctl failed: Bad file descriptor
Expected behavior I expect /media and /mnt to be usable with autofs on Silverblue so I can access files on my NAs through Flatpak apps.
Screenshots Not needed
OS version:
Additional context Not needed