From 343ab8c6bb863a69ae25bf4a68ba8881b6205eec Mon Sep 17 00:00:00 2001 From: Sebastian Hamann Date: Mon, 21 Sep 2020 20:46:08 +0200 Subject: Make history file configurable If the variable HIST_FILE is set, it overrides the default history file location. If it is set to an empty value, history is neither read nor written. --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 656447d..936f6ea 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,13 @@ Note: Pass the environment variable `PROVIDERS_FILE` to read custom providers fr The path in `PROVIDERS_FILE` can either be absolute or relative to `${HOME}/.config/sway-launcher-desktop/`. +## Launcher history file + +By default, `sway-launcher-desktop` stores a history of commands to make frequently used entries available more quickly. +This history is stored in a file in `~/.cache/` (or `$XDG_CACHE_HOME`, if that environment variable is set). +You may change the file path and name by setting the environment variable `HIST_FILE` to the desired path. +Setting the variable to an empty value disables the history feature entirely. + ## Troubleshooting Debug information is directed to file descriptor `3` and can be dumped using `./sway-launcher-desktop.sh 3>> ~/sway-launcher-desktop.log` -- cgit v1.2.3