Hacker News new | ask | show | jobs
by streetfighter64 17 days ago
The way web apps do it is pretty much correct and could be how desktop apps work as well, in the future https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...

There is one OS that does file permission more correctly, and that's OSX / Mac. For sandboxed apps at least. Windows and linux are lagging behind in that regard.

At least in my opinion, the way it's done on the web and on phones, is the correct model, and the only reason desktop OSes does it differently is legacy.

1 comments

There are options for both Linux and Windows to work that way. You can get flatpaks or snaps on Linux to do that. Windows has the same thing too though I forgot if it's App-V or AppContainer or VXD or whatever they call it. There is no reason Microsoft couldn't release a Windows version that can only run apps in that mode. Pretty sure there will be a major backlash for it though. Same with Linux.
Well, "can only run apps in that mode" isn't really a great idea. The OS should be secure by default, but of course it should have the option to disable the security if you want / need that. I don't think there'd be a lot of backlash to making the OS more secure by default; the people that dislike that default have enough knowledge to disable it, and the people that don't know how to disable it are helped by a more sensible default.