aboutsummaryrefslogtreecommitdiffstats
path: root/test.d/mdsinitrc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtest.d/mdsinitrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/test.d/mdsinitrc b/test.d/mdsinitrc
index f010fb7..ca28224 100755
--- a/test.d/mdsinitrc
+++ b/test.d/mdsinitrc
@@ -2,3 +2,15 @@
echo "Successfully spawned mdsinitrc. "
+
+export XDG_CONFIG_HOME="${OLD_XDG_CONFIG_HOME}"
+unset OLD_XDG_CONFIG_HOME
+if [ -z "${XDG_CONFIG_HOME}" ]; then
+ unset XDG_CONFIG_HOME
+fi
+if which terminator 2>/dev/null >&2; then
+ exec terminator
+else
+ exec xterm
+fi
+