fix missing desktop files for mpv and helix

This commit is contained in:
Elec3137 2026-02-15 13:33:25 -08:00
commit 70eeaa185f

View file

@ -12,17 +12,23 @@
configArg ? "-c ", configArg ? "-c ",
excecutable ? "${package}/bin/${name}", excecutable ? "${package}/bin/${name}",
}: }:
pkgs.writeShellApplication { pkgs.symlinkJoin {
inherit name; inherit name;
paths = [
(pkgs.writeShellApplication {
inherit name;
runtimeInputs = [ package ]; runtimeInputs = [ package ];
text = '' text = ''
if test -r "${userConfig}"; then if test -r "${userConfig}"; then
exec -a "$0" "${excecutable}" "$@" exec -a "$0" "${excecutable}" "$@"
else else
exec -a "$0" "${excecutable}" ${configArg}"${globalConfig}" "$@" exec -a "$0" "${excecutable}" ${configArg}"${globalConfig}" "$@"
fi fi
''; '';
})
package
];
}; };
} }