octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #40444] On Windows, config & history files etc


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #40444] On Windows, config & history files etc. should go to %APPDATA%
Date: Thu, 7 Mar 2019 16:18:17 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

Follow-up Comment #11, bug #40444 (project octave):

Thanks for the info and the references. Based on that and on the Windows
article, I still think that %LOCALAPPDATA% is a better first target for where
to read octaverc from.

If a user saves their startup path to octaverc (e.g. with 'savepath'), that
might include local directories and drives that are only present on one
system. That should only happen in a local configuration file, not a roaming
file.

I am also trying to reconcile this with best practices. One example is the Qt
QStandardPaths class (https://doc.qt.io/qt-5/qstandardpaths.html), which maps
various system conventions to a standard enumerated type. According to
QStandardPaths

* AppDataLocation == %APPDATA%/AppName
* AppConfigLocation == %LOCALAPPDATA%/AppName

On a GNU system

* AppDataLocation == ~/.local/share/AppName
* AppConfigLocation == ~/.config/AppName

In this context, "app data" to me means things like icons, themes, fonts,
compiled search databases, email folders, various kinds of internal storage or
generated files. OTOH "app config" means configuration files that users should
be able to edit and customize to configure the application for their local
environment.

If Octave supports reading octaverc from %APPDATA% only, how would you add a
startup configuration that only applies to one machine?

I am leaving open the possibility that Octave could read octaverc from both
locations eventually, but for now I think %LOCALAPPDATA% is a good first
target to aim for. Can you test my patch on bug #36477?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?40444>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]