Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for failing logoff/reboot in LOSS. Fixes #42.

Altered the existing wx.wxExecute lines. Since litestep.exe accepts
bang commands as commandline arguments, we're able to silently pass
our restart and logoff commands to LiteStep, thus resolving our issue.
  • Loading branch information...
commit ee1e5013f1b714f756e2bc4e5aeb0707fba85618 1 parent 77829a5
Darrin C Roenfanz authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 LS/utilities/LOSS.lua
View
5 LS/utilities/LOSS.lua
@@ -126,13 +126,14 @@ function getLitestepPath()
end
function rebootLogoff()
+ local ls = getLitestepPath()
if writeVals.lmBootShell ~= readVals.lmBootShell then
--wx.wxMessageBox("yo")
- wx.wxExecute("shutdown -r -t 0")
+ wx.wxExecute(ls .. " !restart")
-- C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec
else
-- io.popen("shutdown -l -t 0")
- wx.wxExecute("shutdown -l -t 0")
+ wx.wxExecute(ls .. " !logoff")
-- io.popen[["C:\WINDOWS\RUNDLL.EXE" shell32.dll,SHExitWindowsEx 0]]
-- os.execute[["C:\WINDOWS\RUNDLL.EXE" shell32.dll,SHExitWindowsEx 0]]
end
Please sign in to comment.
Something went wrong with that request. Please try again.