xdg-terminal-exec: remove (it exists upstream now)
This commit is contained in:
parent
bcac00d766
commit
e297df011d
|
@ -1,2 +0,0 @@
|
||||||
{ writeShellScriptBin }:
|
|
||||||
writeShellScriptBin "xdg-terminal-exec" (builtins.readFile ./xdg-terminal-exec)
|
|
|
@ -1,39 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# xdg-terminal-exec is a proposed XDG extension, with example implementation:
|
|
||||||
# - <https://github.com/Vladimir-csp/xdg-terminal-exec>
|
|
||||||
#
|
|
||||||
# its purpose is to allow any program which needs to launch a terminal to do so
|
|
||||||
# in a manner which respects user preferences.
|
|
||||||
# it aims to be `xdg-open`, but for opening a terminal.
|
|
||||||
#
|
|
||||||
# a notable user is glib/gio: <repo:gnome/glib:gio/gdesktopappinfo.c>
|
|
||||||
# and by extension, Firefox
|
|
||||||
#
|
|
||||||
# it's not actually packaged for NixOS, nor Alpine, as of 2023/06/29.
|
|
||||||
# this script is just a hackier version. it lets me insert my preferences
|
|
||||||
|
|
||||||
termargs="$@"
|
|
||||||
|
|
||||||
try_term() {
|
|
||||||
if command -v "$1" > /dev/null
|
|
||||||
then
|
|
||||||
exec "$1" $termargs
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# user preference
|
|
||||||
if [ -n "$TERMINAL" ]
|
|
||||||
then
|
|
||||||
exec "$TERMINAL" $termargs
|
|
||||||
fi
|
|
||||||
|
|
||||||
# hardcoded checks, imprecise order
|
|
||||||
try_term kitty
|
|
||||||
try_term alacritty
|
|
||||||
try_term foot
|
|
||||||
try_term st
|
|
||||||
try_term gnome-terminal
|
|
||||||
try_term konsole
|
|
||||||
|
|
||||||
# fallback to default
|
|
||||||
exec xterm "$termargs"
|
|
|
@ -69,7 +69,6 @@ let
|
||||||
;
|
;
|
||||||
unftp = callPackage ./additional/unftp { };
|
unftp = callPackage ./additional/unftp { };
|
||||||
where-am-i = callPackage ./additional/where-am-i { };
|
where-am-i = callPackage ./additional/where-am-i { };
|
||||||
xdg-terminal-exec = callPackage ./additional/xdg-terminal-exec { };
|
|
||||||
zecwallet-light-cli = callPackage ./additional/zecwallet-light-cli { };
|
zecwallet-light-cli = callPackage ./additional/zecwallet-light-cli { };
|
||||||
|
|
||||||
# packages i haven't used for a while, may or may not still work
|
# packages i haven't used for a while, may or may not still work
|
||||||
|
|
Loading…
Reference in New Issue
Block a user