5 ms·
So, a music player that keeps a database on 25000+ files needs to hold and manage 25000+ capability tokens? Do I have to select all those files in an "Open" dia
by pdntspa 3y ago
So, a music player that keeps a database on 25000+ files needs to hold and manage 25000+ capability tokens? Do I have to select all those files in an "Open" dialog box?
Hell naw, dawg.
- kalleboo 3y agoTypically all your music would be in a "Music" folder and not randomly scattered around your file system, it could simply hold a capability for the Music folder.
- pdntspa 3y agoThere are a lot of scenarios where I might want to take the scattered approach, without wanting to authorize the whole parent path. "Show me any mp3 file anywhere in c:\" for example
- mikewarot 3y agoSure, and the application gets access to all the MP3 files anywhere, if that's what the user tells the OS to let it have. There's no reason that shouldn't be a thing. It's not like we're going to run out at 64k of RAM or something. ;-) You can hand someone your wallet if you want, or just give them exact change to make it $3.50 We should be able to do simple things like that with our OS.
- breakfastduck 3y agoNo, it doesn't work like that. For example, if you had a 'Music' folder that everything was within, you grant access to the Music folder (and thereby any child folders or files). It's about granting access to a folder and its children, rather than individual access to files. For example, when you try to import your files, if they are located within the 'Music' folder, the OS will ask if you are OK with the app having read / write access to that folder. You click OK - it will never ask again for anything you store import or interact with under that parent. Similar to how IDE's ask if folders should be trusted when you open / run projects.