fix: nemo open in terminal

This commit is contained in:
DACHXY 2025-01-01 03:29:41 +08:00
parent 3797b75083
commit e08222fc8f
3 changed files with 12 additions and 27 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, inputs, system, ... }:
{ pkgs, lib, inputs, system, terminal }:
let
swayncScript = pkgs.pkgs.writeShellScriptBin "swaync-start" ''
XDG_CONFIG_HOME="$HOME/.dummy" # Prevent swaync use default gtk theme
@ -6,6 +6,10 @@ let
'';
startupScript = pkgs.pkgs.writeShellScriptBin "start" ''
# Fix nemo open in terminal
dconf write /org/cinnamon/desktop/applications/terminal/exec "''\'${terminal}''\'" &
dconf write /org/cinnamon/desktop/applications/terminal/exec-arg "''\'''\'" &
uwsm app -- ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 &
uwsm app -- ${swayncScript}/bin/swaync-start &
dbus-update-activation-environment --systemd --all &
@ -20,3 +24,4 @@ let
'';
in
''${startupScript}/bin/start''