diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-12-12 01:08:23 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-12-12 01:08:23 +0300 |
commit | 452110c88d2ef0137d28e9270a4551d26144d684 (patch) | |
tree | 45ecf70463792f317a26717fcbce022b6f20ae97 /modules/common | |
parent | 2023-12-10 (diff) |
2023-12-12
Diffstat (limited to '')
-rw-r--r-- | modules/common/qutebrowser.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/common/qutebrowser.nix b/modules/common/qutebrowser.nix index 8eadf5a..96da894 100644 --- a/modules/common/qutebrowser.nix +++ b/modules/common/qutebrowser.nix @@ -532,8 +532,9 @@ in { home.activation.installQutebrowserDictionaries = let dictcli = "${pkgs.qutebrowser}/share/qutebrowser/scripts/dictcli.py"; in '' - # TODO Check if already installed. - ${dictcli} install en-US en-GB ru-RU + if [[ ! -d "''${XDG_DATA_HOME:-$HOME/.local/share}/qutebrowser/qtwebengine_dictionaries" ]]; then + ${dictcli} install en-US en-GB ru-RU + fi ''; }; }; |