From 3c8e2bab14c1d854c73a9c57795f88c7601b86b6 Mon Sep 17 00:00:00 2001 From: polyphemus Date: Sun, 24 Mar 2013 23:29:24 +0100 Subject: [PATCH] Small change to call to startx, run in subshell. Previous solution failed to start on my setup (Ubuntu 12.10). --- src/cdm-xlaunch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cdm-xlaunch b/src/cdm-xlaunch index 1da14e3..1f4dd7a 100755 --- a/src/cdm-xlaunch +++ b/src/cdm-xlaunch @@ -76,8 +76,7 @@ if $consolekit; then dbuspid=$(<"$dbuspidfifo"); rm -f "$dbuspidfifo" fi -# Conform to POSIX and do not use `>&' here. -setsid startx "$@" > /dev/null 2>&1 & +$(setsid startx "$@" > /dev/null 2>&1) & # If wait(1) returns with a value >128, it was interrupted by kill(1), # so registration was sucessful.