move configuration from ~/.x49gp/ to ~/.config/x49gp/

This commit is contained in:
Gwenhael Le Moine 2024-10-22 17:40:23 +02:00
parent 2e440861bc
commit 299be1bf84
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
3 changed files with 5 additions and 5 deletions

View file

@ -154,7 +154,7 @@ Start Over:
* clean slate?
```
rm -r ~/.x49gp
rm -r ~/.config/x49gp
```
* soft reset only?

4
dist/x49gp.man.in vendored
View file

@ -178,7 +178,7 @@ as the configuration file instead of the default one. See below for details on t
.El
.Sh FILES
.Bl -tag -width indent
.It Sy ~/. Ns Nm Ns Sy /config
.It Sy ~/.config/ Ns Nm Ns Sy /config
The default location for the configuration file. The file format is the INI-like
.Dq key-file
format defined by GLib. The configuration file stores, for the most part, the state of the calculator's hardware, excluding the memory. The peripherals' official names according the the S3C2410 datasheet are used as section names with the prefix
@ -214,4 +214,4 @@ The default name of the file backing the SRAM memory; required size: 512 KiB.
The default name of the file backing the S3C2410's internal SRAM memory; required size: 4 KiB.
.El
.Sh CAVEATS
The emulation of the calculators' hardware is not fully accurate. Most notably, emulation speed is not authentic (it depends on the host's capabilites), and communication ports (serial, infrared, USB) are not available. For most purposes this is good enough, though.
The emulation of the calculators' hardware is not fully accurate. Most notably, emulation speed is not authentic (it depends on the host's capabilites), and communication ports (serial, infrared, USB) are not available. For most purposes this is good enough, though.

View file

@ -653,10 +653,10 @@ main(int argc, char **argv)
}
if (opt.config == NULL) {
char config_dir[strlen(progname) + 2];
char config_dir[strlen(progname) + 9];
home = g_get_home_dir();
sprintf(config_dir, ".%s", progname);
sprintf(config_dir, ".config/%s", progname);
opt.config = g_build_filename(home, config_dir,
"config", NULL);
}