trixie wrote:To continue our discussion:
Based on the arguments presented here, I can now see that it is fairly logical that the lifetime of Use-d settings should equal the runtime of the application, not the runtime of the OS session.
I don't think I completely agree with that. There are cases where you would want
Use settings to remain in effect after an application is closed. For example, when all the indicators in the lower right of the Odyssey window turn blue, there is little choice but to quit and restart Odyssey. Odyssey and other browsers can get stuck on a bad WEB page and need to be restarted. In those kinds of cases, it's handy to have the
Use settings in ENV: so you can reopen an application with the
Use settings. Personally, I see the use of ENVARC: and ENV: as two different issues. I think applications could use ENV: for
Use settings but that settings should be permanently stored in PROGDIR: and not ENVARC:
trixie wrote:1. If there's no need to keep Use-d settings after the program quits, the program will store them internally, in memory. So why would Application Library, or anybody, want to save them into ENV: (which is the library's default behaviour) at all?
As long as applications have a
Load Settings menu or button to reload saved settings, I see no reason why the
Use settings can't be in ENV: instead of internal. On the other hand, MUI has per-application settings for window positions that can be
not stored,
stored until reboot or
stored permanently. Perhaps we need similar per-application "System" and/or "Application Library" settings.
trixie wrote:2. If you say ENV(ARC): is not suitable for storing application settings, fine with me. But where do they belong? The prog dir is OK in that the settings go with the program - but then again, in the prog dir your settings can easily get lost/overwritten when upgrading/reinstalling the app.
The same can be said for major OS4 updates like the upcoming OS4.1 FE. Unless you have your system set up with assign adds like I do (assign add C: SYS:MyC, assign add LIBS: SYS:MyLibs, etc.) to keep 3rd party stuff seperated from system stuff, you will probably end up searching through your previous install to copy over 3rd party apps and settings. Granted, that's a less frequent occurance since we started using AmiUpdate but it will still happen occasionally.
trixie wrote:I can definitely see advantages in having a shared directory for application settings.
True, but it doesn't need to be the ENVARC: directory. We can introduce a new shared directory for 3rd party applications such as "APPARC:" or simarly named assignment.
trixie wrote:And as Chris says, in a future multiuser OS it can even be a requirement.
That's a pipe-dream in my opinion. Dream on Chris
trixie wrote:I'm sure opinions will vary, so a standard will have to be proposed and enforced.
It's good to have standards for people who want to follow them but enforcing them will be almost impossible. Can we enforce the standards for MUI apps, AmiCygnix apps, Hollywood Apps, QT apps or Linux ports? No, we can only complain and hope somebody listens.