mirror of
https://github.com/gwenhael-le-moine/x49gp.git
synced 2024-12-26 21:58:41 +01:00
move configuration from ~/.x49gp/ to ~/.config/x49gp/
This commit is contained in:
parent
2e440861bc
commit
299be1bf84
3 changed files with 5 additions and 5 deletions
|
@ -154,7 +154,7 @@ Start Over:
|
||||||
* clean slate?
|
* clean slate?
|
||||||
|
|
||||||
```
|
```
|
||||||
rm -r ~/.x49gp
|
rm -r ~/.config/x49gp
|
||||||
```
|
```
|
||||||
|
|
||||||
* soft reset only?
|
* soft reset only?
|
||||||
|
|
2
dist/x49gp.man.in
vendored
2
dist/x49gp.man.in
vendored
|
@ -178,7 +178,7 @@ as the configuration file instead of the default one. See below for details on t
|
||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width indent
|
.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
|
The default location for the configuration file. The file format is the INI-like
|
||||||
.Dq key-file
|
.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
|
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
|
||||||
|
|
|
@ -653,10 +653,10 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opt.config == NULL) {
|
if (opt.config == NULL) {
|
||||||
char config_dir[strlen(progname) + 2];
|
char config_dir[strlen(progname) + 9];
|
||||||
|
|
||||||
home = g_get_home_dir();
|
home = g_get_home_dir();
|
||||||
sprintf(config_dir, ".%s", progname);
|
sprintf(config_dir, ".config/%s", progname);
|
||||||
opt.config = g_build_filename(home, config_dir,
|
opt.config = g_build_filename(home, config_dir,
|
||||||
"config", NULL);
|
"config", NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue