16
submitted 1 year ago* (last edited 1 year ago) by cygnus@lemmy.ca to c/linux@lemmy.ml

RESOLVED: it was caused by the app being flatpak. use Flatseal!

I have a network drive mounted to my computer (PopOS). I have read & write access to everything in the drive and can drag and drop files between two Nautilus windows, but if I try to drag a file from the network drive into an email for example, I get a popup about file permissions. Is it because flatpak apps don't inherit my user permissions?

top 8 comments
sorted by: hot top controversial new old
[-] Voytrekk@lemmy.world 7 points 1 year ago

If the email application is a flatpak, then it might not have permission. You could use FlatSeal to provide access to the directory where your network share is mounted for that specific application.

[-] cygnus@lemmy.ca 2 points 1 year ago

Never heard of Flatseal before, that's awesome! I gave Mailspring access to the folder in /mnt/ and logged out, and it's working as expected now. Thank you!

[-] greybeard@lemmy.one 2 points 1 year ago

It's a small thing that I think Flatpak is really missing. Drag and drop should just work, regardless of the permissions of the app, but it doesn't because what it feels like you are doing is different from what you are really doing doing. What you are really doing is simply pointing the app to where the files are that you want it to access, so I'm unsure how to fix that problem. I would love to see it fixed though, along with an open dialog that gives temporary permission to files.

[-] cygnus@lemmy.ca 1 points 1 year ago

I suppose it might be doable; something could throw a pop-up that says "Flatpak app XYZ doesn't have access to this folder. Do you want to enable access for this folder only, or all files?"

[-] wildbus8979@sh.itjust.works 1 points 1 year ago

What protocol are you using? How are you mounting the drive?

[-] cygnus@lemmy.ca 1 points 1 year ago

The drive is NFS, on a Debian machine. I mounted it with a simple "mount" command into /mnt/

[-] jouzu@lemmy.world 1 points 1 year ago

Not sure if this is related or not but when I was unable to open media files (that were stored on my SMB server) in VLC (also got permission denied) I solved it by installing "kio-fuse".

Hope you figure it out.

[-] cygnus@lemmy.ca 2 points 1 year ago

Thank you – Flatseal fixed the problem!

this post was submitted on 23 Aug 2023
16 points (94.4% liked)

Linux

48317 readers
789 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS