OS/2, eCS & ArcaOS - Technical > Applications
To .config or not .config
Dave Yeo:
Can always wrap the program in a cmd file that sets HOME. Have to test but something like,
--- Code: ---@echo off
SET HOME= ./config
app.exe
exit
--- End code ---
may work for you
jailbird:
--- Quote from: Martin Iturbide on September 30, 2022, 05:59:16 pm ---Thanks for the feedback.
I was wondering if the ".config" was standarized, because if it was, maybe that can be requested to the original develper (or project owner) of the open source project, so in the next port update it will reflected. But since it is not standarized, I guess it can be more difficult for the original developer to agree on that.
Regards
--- End quote ---
On the *IX side, it's part of the "XDG Base Directory Specification" @ https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
$XDG_DATA_HOME defines the base directory relative to which user-specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.
$XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.
$XDG_STATE_HOME defines the base directory relative to which user-specific state files should be stored. If $XDG_STATE_HOME is either not set or empty, a default equal to $HOME/.local/state should be used.
Personally I find it annoying, but what can you do? :)
Alex Taylor:
%HOME%/.config is a Qt thing. The built-in Qt routines for reading/writing settings automatically use that location.
Martin Iturbide:
--- Quote from: Alex Taylor on October 03, 2022, 01:59:29 pm ---%HOME%/.config is a Qt thing. The built-in Qt routines for reading/writing settings automatically use that location.
--- End quote ---
That's something I didn't expect :o But for example Tea is a Qt app and it does not use the /.config.
Regards
Martin Iturbide:
Hi
I also have a different question but related. Will it work to declare "XDG_CONFIG_HOME" to change the location (obviously for application that respect that) like:
SET XDG_CONFIG_HOME=C:\HOME\MARTIN\.config;
Regards
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version