Skip to content

Commit

Permalink
Use XDG Base Directory specification cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
kynikos authored and flacjacket committed Mar 4, 2016
1 parent a66d505 commit fd8686e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -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
Expand Down
1 change: 1 addition & 0 deletions libqtile/utils.py
Expand Up @@ -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
Expand Down

0 comments on commit fd8686e

Please sign in to comment.