From 3c86ec8c1a6f584fe3b6c5418d63f0a4ab946e73 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 5 Jan 2013 16:17:50 +0100 Subject: zprofile: check for $DISPLAY kdm runs this file when logging into a graphical session and screen fails because it can't get a tty or something. Make sure this doesn't happen... Signed-off-by: Florian Pritz --- .zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.zprofile') diff --git a/.zprofile b/.zprofile index fa8160b..e47e9ad 100644 --- a/.zprofile +++ b/.zprofile @@ -1,4 +1,4 @@ -if type screen &>/dev/null && [[ -e ~/.screenrc-2 ]]; then +if [[ -z $DISPLAY ]] && type screen &>/dev/null && [[ -e ~/.screenrc-2 ]]; then screenname=$(screen -list | grep "screen-sh-2") if [ ! "$screenname" ]; then exec screen -S "screen-sh-2" -c ~/.screenrc-2 -- cgit v1.2.3-24-g4f1b