external media / flatpakrc

Robert McQueen rob at endlessm.com
Thu Feb 16 17:38:35 UTC 2017


On 16/02/17 15:16, Alexander Larsson wrote:
> On Thu, 2017-02-16 at 10:49 +0000, Robert McQueen wrote:
>> We've got some reports from users that eg they can't play movies in
>> VLC
>> which are stored on an external HDD. As this is a binary we're
>> downloading, it's not patched to support flatpak and the document
>> portal, so we've added --filesystem=home. However this means
>> /run/media
>> isn't accessible. Do we want --filesystem=media which maps in
>> /run/media/youruser as well?
>
> --filesystem=host should give you this. Any particular reason you went
> with just --filesystem=home ?

You're right... this might just be superstition at this point. It's not 
like it's hard to steal the user's password or admin privs once you have 
access to ~.

>> Similarly / relatedly, I've personally got some data folders mounted
>> on
>> my system (/mnt/sd) which aren't in the "usual" place - and symlinks
>> from eg ~/Pictures to locations on that external drive. This is
>> probably
>> not a hugely uncommon set-up - thinking of people with large data
>> drives
>> mounted at /data, Windows dual boot systems in /mnt/c, etc.
>>
>> This is totally system-specific, and not knowable in advance by the
>> flatpak/apps themselves - so even if the app maintainer enabled
>> home,
>> media, etc - it would not handle this case. Is it worth us
>> considering
>> some kind of flatpakrc file which allows the user to feed in
>> additional
>> command line arguments? Such as:
>
> you can do:
>
> flatpak override --filesystem=/mnt/sd:ro org.my.App
>
> To add this. Or did you mean as some kind of generic catch-all option?

TIL2! Sorry for the noise.

Cheers,
Rob

........................................................................

Robert McQueen  |  +1.415.413.4159  |  Endless <http://endlessm.com/>



More information about the xdg-app mailing list