Fixed panic on cleaning unproperly terminated sandbox

master
xSmurf 10 years ago
parent 154c8ac5e9
commit 993b89c0c8

@ -99,7 +99,7 @@ func NewFromProfile(profile *oz.Profile, user *user.User, basePath string, UseFu
fs.noDefaults = profile.NoDefaults
fs.noSysAndProc = profile.NoSysProc
fs.fullDevices = UseFullDev
if profile.XServer.Enabled {
if profile.XServer.Enabled && user != nil {
fs.xpra = path.Join(user.HomeDir, ".Xoz", profile.Name)
}
return fs

Loading…
Cancel
Save