Skip to content
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...
1 parent 77829a5 commit ee1e5013f1b714f756e2bc4e5aeb0707fba85618 Darrin C Roenfanz committed
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

0 comments on commit ee1e501

Please sign in to comment.
Something went wrong with that request. Please try again.