From f0ced9e4c8ba13f7d499695d57680fc191a94b1c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 10 Mar 2002 01:58:58 +0000 Subject: xsh: Use x-terminal-emulator instead of rxvt (and leave - commented out - some experimental probing). --- xsh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'xsh') diff --git a/xsh b/xsh index 09f7903..9c7d701 100755 --- a/xsh +++ b/xsh @@ -16,13 +16,22 @@ function termwrapper () { # da_*) LANG=da;; # esac - if [ "x$PRG" != "x" ]; then -# if [ -z $PRG ]; then - rxvt +sb -sl 500 -n "$title" -title "$title" -e $PRG & +# case `readlink /etc/alternatives/x-terminal-emulator | xargs basename` in +# rxvt*) +# opts="+sb -sl 500 -n \"$title\" -title \"$title\"" +# ;; +# esac + + if [ -n "$PRG" ]; then +# rxvt +sb -sl 500 -n "$title" -title "$title" -e $PRG & # exec rxvt +sb -sl 500 -n "$title" -title "$title" -e $PRG + x-terminal-emulator +sb -sl 500 -n "$title" -title "$title" -e $PRG & +# x-terminal-emulator $opts -e $PRG & else - rxvt +sb -sl 500 -n "$title" -title "$title" & +# rxvt +sb -sl 500 -n "$title" -title "$title" & # exec rxvt +sb -sl 500 -n "$title" -title "$title" + x-terminal-emulator +sb -sl 500 -n "$title" -title "$title" & +# x-terminal-emulator $opts & fi } -- cgit v1.2.3