From 38c5af92d8767cd69f4ce30026e8be9022d2dbf1 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Fri, 22 Dec 2023 22:02:47 +0200 Subject: [PATCH] home/xdg: add xdg-terminal-exec This fixes the issue where the AppChooser portal wouldn't launch terminal .desktop entries due to a missing terminal. --- home/programs/xdg.nix | 14 +++++++++++++- lib/theme/default.nix | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/home/programs/xdg.nix b/home/programs/xdg.nix index 39b315ae..02a490e0 100644 --- a/home/programs/xdg.nix +++ b/home/programs/xdg.nix @@ -1,4 +1,9 @@ -{config, ...}: let +{ + config, + pkgs, + default, + ... +}: let browser = ["firefox"]; imageViewer = ["org.gnome.Loupe"]; videoPlayer = ["io.github.celluloid_player.Celluloid"]; @@ -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} "$@" + '') + ]; } diff --git a/lib/theme/default.nix b/lib/theme/default.nix index bcfe839b..b79898cb 100644 --- a/lib/theme/default.nix +++ b/lib/theme/default.nix @@ -5,6 +5,7 @@ lib: { terminal = { font = "JetBrainsMono Nerd Font"; name = "wezterm"; + exec = "start"; # command used to execute programs opacity = 0.9; size = 10; };