3 ms·
This is a great idea and will mean that many Electron applications can just run much more securely as plain web applications.
by andrewstuart 8y ago
This is a great idea and will mean that many Electron applications can just run much more securely as plain web applications.
- devwastaken 8y agoRelying upon browser features for native access will be trouble. Google could revoke the feature from chromium at any time. And in any real application you will need to interact with plenty of folders users cannot be expected to know, like Appdata.
- Klathmon 8y agoBy that line of thinking relying on OS APIs will be trouble as Microsoft or Apple could remove features at any time.
- devwastaken 8y agoIf they are shiny new features, absolutely. Browser features, especially from Google, are notorious in being experimental and removed when they want to be. Browsers in general will remove things unless their internal teams find use for them. Browsers do not want to support more features than they have to, as can be seen by subscribing and listening in on the mailing lists for Firefox. However your equivalence in this case is a completely false one, because file system API's are not going to just be 'removed' as that would break literally every application that uses standard fopen. over 20 years of standard is a pretty good boat to stand on unless there's signals that say otherwise.
- Klathmon 8y agoWell sure you shouldn't rely on anything new for core aspects of your application without a plan for what happens if they go away. Especially when the API in question isn't even implemented yet... But that's not how I understood your comment above, which was to not rely on any browser features for native access, which IMO isn't good advice. Sure, you shouldn't go out and build a business around the "Web Writable Files API" tomorrow, but if it gets standardized, and if it gets implemented in a few major browser engines (which is a requirement for standardization in this context), then yeah go ahead and start to rely on it more. But this has very little to do with these new proposed APIs, and more with general software development.
- ballenf 8y ago> And in any real application you will need to interact with plenty of folders users cannot be expected to know, like Appdata. I think a lot of what you'd store in Appdata in a "real" application will remain in browser storage or pulled from the server. A single file or folder with app settings, drafts, etc. should suffice. And even settings are probably better stored server side for user convenience so they can easily switch devices.
- devwastaken 8y ago1. Completely unnecessary given native access 2. Native will be much faster 3. Native will allow for features from the kernel that browsers do not impliment. 4. You cannot plan for how people will use such a wide feature as the Filesystem. Saying 'X and Y should fit' requires a significant amount of honest research and testing, with a very good reason as to why the change is necessary.
- WorldMaker 8y agoI agree. This is one of the biggest things some of my applications have needed Electron for. WinJS has a similar API to the proposal here (it's picker-oriented to keep it somewhat sandboxed), which opens up options for Windows-only support in a PWA, but it would be great to see a more web platform-wide supported approach.
- pjmlp 8y agoI don't have any issues with PWA apps, actually quite like the idea, specially how it is done on Windows, ChromeOS and Android. Electron ones is another matter, I already have enough browsers installed.