Skip to content

Commit

Permalink
home/xdg: add xdg-terminal-exec
Browse files Browse the repository at this point in the history
This fixes the issue where the AppChooser portal wouldn't launch terminal
.desktop entries due to a missing terminal.
  • Loading branch information
fufexan committed Dec 22, 2023
1 parent 854089a commit 38c5af9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion home/programs/xdg.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{config, ...}: let
{
config,
pkgs,
default,
...
}: let
browser = ["firefox"];
imageViewer = ["org.gnome.Loupe"];
videoPlayer = ["io.github.celluloid_player.Celluloid"];
Expand Down Expand Up @@ -60,4 +65,11 @@ in {
};
};
};

# used by `gio open` and xdp-gtk
home.packages = [
(pkgs.writeShellScriptBin "xdg-terminal-exec" ''
${default.terminal.name} ${default.terminal.exec} "$@"
'')
];
}
1 change: 1 addition & 0 deletions lib/theme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ lib: {
terminal = {
font = "JetBrainsMono Nerd Font";
name = "wezterm";
exec = "start"; # command used to execute programs
opacity = 0.9;
size = 10;
};
Expand Down

0 comments on commit 38c5af9

Please sign in to comment.