summaryrefslogtreecommitdiff
path: root/xsh
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-03-10 01:58:58 +0000
committerJonas Smedegaard <dr@jones.dk>2002-03-10 01:58:58 +0000
commitf0ced9e4c8ba13f7d499695d57680fc191a94b1c (patch)
treed84aaabe76552aed27f8bd6484b5ce0e09c4f539 /xsh
parentdd3f46b0432179b53d8e091c06765f657f3055bf (diff)
xsh: Use x-terminal-emulator instead of rxvt (and leave - commented out - some experimental probing).
Diffstat (limited to 'xsh')
-rwxr-xr-xxsh17
1 files changed, 13 insertions, 4 deletions
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
}