Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using XDG_CACHE_HOME for the log file. #10

Closed
Earnestly opened this issue May 30, 2015 · 5 comments
Closed

Consider using XDG_CACHE_HOME for the log file. #10

Earnestly opened this issue May 30, 2015 · 5 comments

Comments

@Earnestly
Copy link

This would mean instead of HOME/.xsel.log, XDG_CACHE_HOME/xsel/log would be
used.

If XDG_CACHE_HOME is not set or not absolute, the fallback HOME/.cache
should be substituted instead.

@severen
Copy link

severen commented Oct 15, 2015

👍

This blog post lists the advantages of using the XDG Base Directory Specification as follows:

  • $HOME is a lot less cluttered.
  • Backups are a lot more safer and easier. (you know that backuping your $XDG_DATA_HOME along with your files is enough)
  • A lot easier to reset a default configuration if you want/need it (and without any risk of loosing information).
  • Avoid some strange bugs that happen because you had a old version of some configuration file.
  • It is a lot more flexible and portable because no paths are hard-coded. You can use the XDG library that does the job for you or, if you don’t want the dependency, implementing the XDG specification is only a few lines of code.

@AladW
Copy link

AladW commented May 26, 2016

Any progress on this?

@Earnestly
Copy link
Author

xsel seems more-or-less dead. @AladW Is there any reason to use this over xclip?

@AladW
Copy link

AladW commented Jun 9, 2016

There's some caveats when using it with tmux, cf. https://sourceforge.net/p/xclip/bugs/9/

@kfish
Copy link
Owner

kfish commented Aug 24, 2017

This was implemented by @valeth in Nov 2015, and merged in Aug 2016.

@kfish kfish closed this as completed Aug 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants