2 ms·
> Instead of supplying dialog boxes(open, save, etc) for applications to use and then open files directly, the OS could have supplied handles (capabilities) fro
by Someone 4y ago
> Instead of supplying dialog boxes(open, save, etc) for applications to use and then open files directly, the OS could have supplied handles (capabilities) from those dialog boxes for the applications to use. […] the situation now is effectively hopeless.
Not hopeless. MacOS, for example, added entitlements that get you there. Applications cannot list random directories or open files at will.
If an application opens a file browser, the operating system shows you your file system. When you pick a file, the operating system gives the application the right to read that file.
See https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_files_user-selected_read-write https://developer.apple.com/documentation/bundleresources/en...
- quickthrower2 4y agoThis is a way in which web apps are better. The security of what a web access can access (in terms of other services online) is way more granular.
- mikewarot 4y agoSadly, the Chrome browser uses a dialog box to let you pick things to give access to, then promptly never, ever, lets you see the choice you just made ever again. You have to close the browser to make sure things are gone, or if you made a mistake.