[RFC 5/6] Let the user control the startup style

Tom Tromey tom@tromey.com
Sun Jun 21 20:27:38 GMT 2020


>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:

>> +The default value for this directory depends on the host platform.  On
>> +most systems, the index is cached in the @file{gdb} subdirectory of
>> +the directory pointed to by the @env{XDG_CONFIG_HOME} environment
>> +variable, if it is defined, else in the @file{.config/gdb} subdirectory
>> +of your home directory.  However, on some systems, the default may
>> +differ according to local convention.

Eli> This is also OK.  But I wonder: we have ~/.gdbinit and ~/config/gdb
Eli> (or, if XDG_CONFIG_HOME is set, some utterly different directory) for
Eli> the new file?  Sounds confusing.  Also, I'm told that XDG_CONFIG_HOME
Eli> is ephemeral: it is set anew each session, so the user could end up
Eli> having his/her setting saved in a file he/she will not see the next
Eli> time they log in.  Can that happen?

I think XDG_CONFIG_HOME is intended for user config files written by the
app and as such isn't reset each session.  See

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

The XDG "cache" and "runtime" directories can be reset, on the other
hand.

Tom


More information about the Gdb-patches mailing list