How to set default terminal for nemo?

Hello, how do I set a default terminal for Nemo( file manager) the Nix Way TM

According to Google, I should run the following

gsettings set org.cinnamon.desktop.default-applications.terminal exec kitty

However, when I run that, I get the output

No schemas installed

I think this is because I’m using i3wm.

I had figured this out in the past (by editing some config files), but unfortunately, my /home directory decided to kill it self, and I don’t remember which config files to edit.

Any help is appreciated

See GSettings schema of installed software not available to gsettings program or dconf-editor · Issue #33277 · NixOS/nixpkgs · GitHub

I think i might be using your script wrong (perhaps im missing some packages?)

❯ cat gsettings_config.sh
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p glib.dev
schemas=""
for p in $NIX_PROFILES; do
    if [[ -d "$p" ]]; then
        for d in $(nix-store --query --references "$p"); do
            schemas_dir=$(echo "$d"/share/gsettings-schemas/*/glib-2.0/schemas)
            if [[ -d "$schemas_dir" ]]; then
                schemas="$schemas${schemas:+:}$schemas_dir"
            fi
        done
    fi
done
env XDG_DATA_DIRS=$schemas gsettings "$@"
❯ ./gsettings_config.sh list-schemas
No schemas installed

schemas returns empty

❯ echo $schemas

Contents of nix profile

❯ echo $NIX_PROFILES
/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/gaurav /home/gaurav/.local/state/nix/profile /nix/profile /home/gaurav/.nix-profile

Sorry, the script was slightly incorrect. I have since fixed it, thanks for bringing it to my attention.

And I noticed that it will also skip packages with multiple directories under share/gsettings-schemas but there are no normal packages like that – such packages are likely symlink trees and nix-store --query --references should find the original packages in any case.

1 Like

Thank you this works

For anyone else facing the same issue, you also have to install cinnamon-common and cinnamon-desktop packages