about summary refs log tree commit diff
path: root/modules/common
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-12-12 01:08:23 +0300
committerAzat Bahawi <azat@bahawi.net>2023-12-12 01:08:23 +0300
commit452110c88d2ef0137d28e9270a4551d26144d684 (patch)
tree45ecf70463792f317a26717fcbce022b6f20ae97 /modules/common
parent2023-12-10 (diff)
2023-12-12
Diffstat (limited to '')
-rw-r--r--modules/common/qutebrowser.nix5
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
       '';
     };
   };

Consider giving Nix/NixOS a try! <3