hey guys.
i also am trying to set up xdg-desktop-portal-termfilechooser
(without the gtk portal!) for hyprland AND lxqt. i have gotten to successfully launching the service via
xdg.portal.config = {
common.default = [ "hyprland" ];
common."org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ];
hyprland.default = [ "hyprland" ];
hyprland."org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ];
lxqt.default = [ "lxqt" "hyprland" ];
lxqt."org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ];
};
(probably an overkill⦠oh, btw, should i use ["termfilechooser"]
or ["xdg-desktop-portal-termfilechooser"]
? i mean, it launches the service either way, but you never know, haha! thanks!)
but it still seem to not work⦠i am using
wezterm
terminal and yazi
file manager on 25.05 Warbler using flakes.
i have read the latest pr for termfilemanager but nothing worked. with or without a config present in $XDG_CONFIG_HOME
(which ive copied from /nix/store/6jx8d0l715k9n6p99dd7i7jyjmxiiqha-xdg-desktop-portal-termfilechooser-1.0.5/share/xdg-desktop-portal-termfilechooser
) it says:
apr 14 12:18:20 host xdg-desktop-portal-termfilechooser[1923]: sh: regel 1: yazi-wrapper.sh: opdracht niet gevonden
apr 14 12:18:20 host xdg-desktop-portal-termfilechooser[1454]: 2025/04/14 12:18:20 [ERROR] - filechooser: could not execute 'yazi-wrapper.sh 0 0 0 '/home/user' '/tmp/termfilechooser-1000.portal'': exit code -127
the āline 1ā in yazi-wrapper.sh is:
#!/nix/store/58br4vk3q5akf4g8lx0pqzfhn47k3j8d-bash-5.2p37/bin/sh
am i doing something wrong? i probably am⦠sorry
P.S. im a bit suspicious of the yazi-wrapper.sh
⦠even IF it passes the first line, what is it going to do with termcmd="${TERMCMD:-kitty --title 'termfilechooser'}"
? im not using kitty⦠is this where you make your own config in ~/.config/xdg-desktop-portal-termfilechooser/
? okay, but wezterm
doesnt have a --title
option or --class
? im really lostā¦