summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 11:10:49 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 23:06:21 +0100
commitd02442c0d7de4748403d8b4af764b36ac2e9e7a3 (patch)
tree5637478d2e93fc2a09059b33acc5397393d80f99 /src/main.c
parente0dcdd3634c63dd6bf4ade9f07ccef90193d17b8 (diff)
downloadratpoison-d02442c0d7de4748403d8b4af764b36ac2e9e7a3.zip
Open $sysconfdir/ratpoisonrc, don't hardcode /etc.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 865ba98..ab1f592 100644
--- a/src/main.c
+++ b/src/main.c
@@ -420,7 +420,7 @@ read_startup_files (char *alt_rcfile)
else
{
/* first check $HOME/.ratpoisonrc and if that does not exist then try
- /etc/ratpoisonrc */
+ $sysconfdir/ratpoisonrc */
homedir = getenv ("HOME");
if (!homedir)
@@ -439,7 +439,7 @@ read_startup_files (char *alt_rcfile)
filename, strerror (errno)));
free (filename);
- filename = xsprintf ("%s/ratpoisonrc", "/etc");
+ filename = xsprintf ("%s/ratpoisonrc", SYSCONFDIR);
if ((fileptr = fopen (filename, "r")) == NULL)
if (errno != ENOENT)