From c4b831f919e695d1c6882fbd76900dfa0f64cab5 Mon Sep 17 00:00:00 2001 From: ShadowKyogre Date: Sat, 11 Feb 2012 17:44:23 -0800 Subject: [PATCH 1/2] Add case for handling the Invalid MIT cookie or something. --- src/cdm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cdm b/src/cdm index d5aead5..59094cc 100755 --- a/src/cdm +++ b/src/cdm @@ -128,6 +128,8 @@ else elif [[ $dpyinfo = No\ protocol\ specified* ]]; then # Display is in use by another user let display=display+1 + elif [[ $dpyinfo = Invalid\ MIT* ]];then + let display=display+1 else break fi From d0a3ae017618aa3bb1a2060b717703b08a616c42 Mon Sep 17 00:00:00 2001 From: ShadowKyogre Date: Mon, 16 Jul 2012 18:45:45 -0700 Subject: [PATCH 2/2] Officially fix this issue: https://bbs.archlinux.org/viewtopic.php?pid=1130930#p1130930 --- src/cdm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdm b/src/cdm index 59094cc..a485c0f 100755 --- a/src/cdm +++ b/src/cdm @@ -273,9 +273,9 @@ xstart() { fi if $(checkyesno loginshell); then - nohup bash --login -c "startx $wm_bin -- ${serverargs}" &> /dev/null & + setsid bash --login -c "startx $wm_bin -- ${serverargs}" &> /dev/null & else - nohup startx $wm_bin -- ${serverargs} &> /dev/null & + setsid startx $wm_bin -- ${serverargs} &> /dev/null & fi if [[ -n $clockpid ]]; then