defaultApps: use builtins.baseNameOf where appropriate (#98)
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

* defaultApps: use basenames of executables for session vars

* defaultApps: set xfce4 helpers.rc
This commit is contained in:
Aly Raffauf 2024-08-23 12:49:58 -04:00 committed by GitHub
parent 5b9a79974b
commit d761532a9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View file

@ -14,11 +14,5 @@
xfce.tumbler xfce.tumbler
xfce.xfconf xfce.xfconf
]; ];
xdg.configFile."xfce4/helpers.rc".text = ''
FileManager=thunar
TerminalEmulator=kitty
WebBrowser=firefox
'';
}; };
} }

View file

@ -29,13 +29,19 @@ in {
]; ];
sessionVariables = { sessionVariables = {
BROWSER = "${lib.getExe cfg.webBrowser}"; BROWSER = "${builtins.baseNameOf (lib.getExe cfg.webBrowser)}";
EDITOR = "${lib.getExe cfg.terminalEditor}"; EDITOR = "${builtins.baseNameOf (lib.getExe cfg.terminalEditor)}";
TERMINAL = "${lib.getExe cfg.terminal}"; TERMINAL = "${builtins.baseNameOf (lib.getExe cfg.terminal)}";
}; };
}; };
xdg = { xdg = {
configFile."xfce4/helpers.rc".text = ''
FileManager=${builtins.baseNameOf (lib.getExe cfg.fileManager)}
TerminalEmulator=${builtins.baseNameOf (lib.getExe cfg.terminal)}
WebBrowser=${builtins.baseNameOf (lib.getExe cfg.webBrowser)}
'';
mimeApps = { mimeApps = {
enable = true; enable = true;