From 452110c88d2ef0137d28e9270a4551d26144d684 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 12 Dec 2023 01:08:23 +0300 Subject: 2023-12-12 --- modules/common/qutebrowser.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/common/qutebrowser.nix') 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 ''; }; }; -- cgit 1.4.1