Skip to content
Permalink
Browse files

Use XDG Base Directory specification cache path

  • Loading branch information...
kynikos authored and flacjacket committed Mar 4, 2016
1 parent a66d505 commit fd8686e5b4e4fa20bb82039ed8a83768434585ec
Showing with 3 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +1 −0 libqtile/utils.py
@@ -1,4 +1,6 @@
qtile x.x.x, released xxxx-xx-xx:
* file path changes (XDG Base Directory specification)
- the cache directory changed from ~/.cache to ~/.cache/qtile
* features
- wlan widget shows when you are disconnected and uses a configurable
format
@@ -213,6 +213,7 @@ def get_cache_dir():
if cache_directory == '$XDG_CACHE_HOME':
# if variable wasn't set
cache_directory = os.path.expanduser("~/.cache")
cache_directory = os.path.join(cache_directory, 'qtile')
if not os.path.exists(cache_directory):
os.makedirs(cache_directory)
return cache_directory

0 comments on commit fd8686e

Please sign in to comment.
You can’t perform that action at this time.