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?

2
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

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);
}