summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}