diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-14 01:02:16 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-14 01:02:16 +0200 |
commit | 0d5a47a1b631043b0430125c82cfa1cf312b16cd (patch) | |
tree | e3e2e2e88a140412f265190b12818a360c2e2cf3 /test.d/mdsinitrc | |
parent | add test script (diff) | |
download | mds-0d5a47a1b631043b0430125c82cfa1cf312b16cd.tar.gz mds-0d5a47a1b631043b0430125c82cfa1cf312b16cd.tar.bz2 mds-0d5a47a1b631043b0430125c82cfa1cf312b16cd.tar.xz |
spawn terminal from test mdsinitrc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'test.d/mdsinitrc')
-rwxr-xr-x | test.d/mdsinitrc | 12 |
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 + |