Skip to content
Browse files

Use XDG Base Directory specification path for prompt widget's history…

… file
  • Loading branch information...
kynikos authored and flacjacket committed Mar 4, 2016
1 parent 66d704b commit 51cff019917b87bda696b381493f969ceb6cc350
Showing with 4 additions and 1 deletion.
  1. +2 −0 CHANGELOG
  2. +2 −1 libqtile/widget/
@@ -3,6 +3,8 @@ qtile x.x.x, released xxxx-xx-xx:
- the default log file path changed from ~/.qtile.log to
- the cache directory changed from ~/.cache to ~/.cache/qtile
- the prompt widget's history file changed from ~/.qtile_history to
* features
- wlan widget shows when you are disconnected and uses a configurable
@@ -362,7 +362,8 @@ def __init__(self, name="prompt", **config):
self.original_background = self.background
# If history record is on, get saved history or create history record
if self.record_history:
self.history_path = os.path.expanduser('~/.qtile_history')
self.history_path = os.path.join(utils.get_cache_dir(),
if os.path.exists(self.history_path):
with open(self.history_path, 'rb') as f:

0 comments on commit 51cff01

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