diff options
Diffstat (limited to 'apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator')
-rwxr-xr-x | apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator b/apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator index a16ef99..a28f44e 100755 --- a/apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator +++ b/apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator @@ -2,5 +2,7 @@ DPkg { -Post-Invoke {"if [ -x /usr/sbin/update-alternatives ] && [ -x /usr/bin/urxvt ]; then /usr/sbin/update-alternatives --set x-terminal-emulator /usr/bin/urxvt; else exit 0; fi";}; +Post-Invoke { +"s=/usr/bin/urxvt; [ ! -x $s ] || update-alternatives --set x-terminal-emulator $s" +;}; }; |