xdg-terminal-exec: fix bad interaction with TERMINAL
This commit is contained in:
@@ -1,9 +1,16 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
sane.programs.xdg-terminal-exec = {
|
sane.programs.xdg-terminal-exec = {
|
||||||
# give the package a .desktop item.
|
|
||||||
# this way anyone can launch a terminal via the xdg-desktop-portal.
|
|
||||||
packageUnwrapped = pkgs.xdg-terminal-exec.overrideAttrs (upstream: {
|
packageUnwrapped = pkgs.xdg-terminal-exec.overrideAttrs (upstream: {
|
||||||
|
# fix for <https://github.com/Vladimir-csp/xdg-terminal-exec/issues/50>
|
||||||
|
postPatch = (upstream.postPatch or "") + ''
|
||||||
|
sed '2i\
|
||||||
|
unset TERMINAL\
|
||||||
|
' -i xdg-terminal-exec
|
||||||
|
'';
|
||||||
|
|
||||||
|
# give the package a .desktop item.
|
||||||
|
# this way anyone can launch a terminal via the xdg-desktop-portal.
|
||||||
nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ [
|
nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ [
|
||||||
pkgs.copyDesktopItems
|
pkgs.copyDesktopItems
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user