Skip to content

LOSS and Win7: Logoff/Reboot option fails #42

Closed
the-golem opened this Issue Nov 20, 2011 · 1 comment

2 participants

@the-golem

Username (on your computer): Darrin

Operating System: Windows 7 Ultimate 64-bit

Installer Language: English
Installer Components: LOSS.lua
Destination Folder: C:\LiteStep\utilities
User Profiles Location: C:\LiteStep

Bug: Non-functional logoff/reboot option in the SetShell Utility
Details: When using the command-line options through the desktop shortcuts, or the "full version" through the menu, selecting the logoff/reboot option seems to not work. After the warning box comes up, I hit "Yes" and then a command window flashes briefly for half a second, and then goes away. Then I sit there and watch my computer not logoff or reboot.

@the-golem

I found a fix for this. For rebooting, we can use:

    wx.wxShutdown(wx.wxSHUTDOWN_REBOOT)

However, given the changes we've discussed, the reason why we've been calling a reboot actually won't get triggered anymore, so it does make sense to plan for it.

For logging off, I just thought of this genius method, and it's been tested to work

local litestep = getLitestepExecPath() 
wx.wxExecute(litestep .. " !logoff")
@the-golem the-golem pushed a commit that referenced this issue Nov 20, 2011
Darrin C. Roenfanz Fix for issue #42.
Fix for issue #43.

Code cleanup, and reorganization.
30e3179
@the-golem the-golem referenced this issue Nov 24, 2011
Closed

Patch 1 #44

@the-golem the-golem pushed a commit that referenced this issue Nov 24, 2011
Darrin C. Roenfanz Fix for failing logoff/reboot options in LOSS.
Altered the existing wx.wxExecute line. Since LiteStep accepts
bang commands as commandline arguments, changing the wxExecute
command fixes the logoff portion. Additonally, a newer version of
wxLua incorporates a wx.wxShutdown command. Passing this command with
a flag will suggessfully reboot the computer.

Resolves Issue #42.
cd1c805
@the-golem the-golem pushed a commit to the-golem/losi that referenced this issue Nov 25, 2011
Darrin C Roenfanz Fix for failing logoff/reboot in LOSS. Resolves #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.
0f33ce7
@the-golem the-golem pushed a commit to the-golem/losi that referenced this issue Nov 25, 2011
Darrin C Roenfanz Fix for failing logoff/reboot in LOSS. Resolves #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.
bd44548
@the-golem the-golem pushed a commit to the-golem/losi that referenced this issue Nov 27, 2011
Darrin C Roenfanz 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.
d57e5be
@the-golem the-golem pushed a commit to the-golem/losi that referenced this issue Dec 1, 2011
Darrin C Roenfanz 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.
1d49701
@Tobbe Tobbe pushed a commit that closed this issue Dec 13, 2011
Darrin C Roenfanz 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.
ee1e501
@Tobbe Tobbe closed this in ee1e501 Dec 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.