Fixed passing display number 0

master
xSmurf 10 years ago
parent 41e8e4f9e2
commit ed1df1a761

@ -75,9 +75,7 @@ func createInitCommand(name, chroot string, uid uint32, display int, stn *networ
cmd.Env = append(cmd.Env, "INIT_GATEWAY=" + stn.Gateway.String() + "/" + stn.Class)
}
if display > 0 {
cmd.Env = append(cmd.Env, fmt.Sprintf("INIT_DISPLAY=%d", display))
}
return cmd
}

@ -162,10 +162,10 @@ func (st *initState) runInit() {
oz.ReapChildProcs(st.log, st.handleChildExit)
if st.profile.XServer.Enabled {
if st.display == 0 {
st.log.Error("Cannot start xpra because no display number was passed to oz-init")
os.Exit(1)
}
//if st.display == 0 {
// st.log.Error("Cannot start xpra because no display number was passed to oz-init")
// os.Exit(1)
//}
st.xpraReady.Add(1)
st.startXpraServer()
}

Loading…
Cancel
Save