summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 445130f)
raw | patch | inline | side by side (parent: 445130f)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Wed, 4 Jan 2012 19:36:05 +0000 (20:36 +0100) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Wed, 4 Jan 2012 19:36:05 +0000 (20:36 +0100) |
fixes http://musicpd.org/mantis/view.php?id=3354
NEWS | patch | blob | history | |
doc/ncmpc.1 | patch | blob | history | |
src/options.c | patch | blob | history |
index f435e1ce05bfd1f7a835925dd7ef3981bd40fc59..e55bae9acf0f5f4773e02b2c5523aebd9d55d7c7 100644 (file)
--- a/NEWS
+++ b/NEWS
* screen_lyrics: You can now edit lyrics by pressing 'e'
* configurable timeout for MPD connections
* screen_keydef: show command descriptions
+* show the paths of the configuration files in --version output
ncmpc 0.19 - (07/23/2011)
diff --git a/doc/ncmpc.1 b/doc/ncmpc.1
index 27167989dc0acaab901b435496115b72514dcbc1..f72c99c8cc6bc2c6afbdce77673d13f49774f10e 100644 (file)
--- a/doc/ncmpc.1
+++ b/doc/ncmpc.1
.TP
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
.SH "CONFIGURATION"
-When ncmpc starts it tries to read the user's configuration file, ~/.ncmpc/config. If no user configuration file is found then ncmpc tries to load the global settings from $SYSCONFDIR/ncmpc/config (the actual path is displayed on the help screen). An example configuration file (config.sample) should be provided with ncmpc.
+When ncmpc starts it tries to read the user's configuration file, ~/.ncmpc/config. If no user configuration file is found then ncmpc tries to load the global settings from $SYSCONFDIR/ncmpc/config (the actual path is displayed in the output of the --version option). An example configuration file (config.sample) should be provided with ncmpc.
diff --git a/src/options.c b/src/options.c
index 35de128e1e602a4b7aed0d5008120471d10ac1ca..c331fa54c897a109b69a77e59c848c0216c1c1e1 100644 (file)
--- a/src/options.c
+++ b/src/options.c
"\n");
#ifndef NCMPC_MINI
+ {
+ char *user_conf = build_user_conf_filename();
+ char *system_conf = build_system_conf_filename();
+
+ printf("configuration files:\n %s\n %s\n\n",
+ user_conf, system_conf);
+
+ g_free(user_conf);
+ g_free(system_conf);
+ }
if (strcmp("translator-credits", _("translator-credits")) != 0)
/* To translators: these credits are shown
when ncmpc is started with "--version" */