Skip to content

Commit

Permalink
do not use a dotfile for the log
Browse files Browse the repository at this point in the history
  • Loading branch information
valeth committed Nov 21, 2015
1 parent 31e0a14 commit a20077f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ become_daemon (void)
/* If the user has specified a --logfile, use that ... */
if (logfile[0] == '\0') {
/* ... otherwise use the default logfile */
snprintf (logfile, MAXFNAME, "%s/.xsel.log", cachedir);
snprintf (logfile, MAXFNAME, "%s/xsel.log", cachedir);
}

/* Make sure to create the logfile with sane permissions */
Expand Down

2 comments on commit a20077f

@ropery
Copy link

@ropery ropery commented on a20077f Sep 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps as suggested in #10 XDG_CACHE_HOME/xsel/log would be even better.
Also, give the man page some love? ;)

@kfish
Copy link
Owner

@kfish kfish commented on a20077f Aug 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this uses XDG_CACHE_HOME now, as in #10

Please sign in to comment.