-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird console window while starting #333
Comments
The restart behavior was added to enhance the -delay_start command implementation, when trying to address user need in #332. The -delay_start command option was mainly used to solve PW startup failure, for example PW icon may disappear from taskbar if started too early. The command option is obsolete now as I thought no user is actually using it since newer PW release is able to detect the startup failure by checking taskbar readiness and restart PW if taskbar is not ready. Restart PW would be a nice addition to -delay_start to make sure PW auto start works reliably. |
Ah, I see. If the restart ability is needed, may I propose to use a VBScript file to call If WScript.Arguments.Count >= 1 Then
ReDim arr(WScript.Arguments.Count-1)
For i = 0 To WScript.Arguments.Count-1
Arg = WScript.Arguments(i)
If InStr(Arg, " ") > 0 or InStr(Arg, "&") > 0 Then Arg = chr(34) & Arg & chr(34)
arr(i) = Arg
Next
RunCmd = Join(arr)
CreateObject("Wscript.Shell").Run RunCmd, 0 , True
End If See attached |
Instead of running PW with -delay_start, you may try a new method to create delayed task using DOS schtasks command, as the result of discussion in #332
the /delay 0000:10 command option specifies 10 second delay before running pw.bat (for more details on pw.bat, please refer to README page) |
Thanks for suggestion! Maybe I'll give it a try without the Your proposal to create a scheduled task sounds okay, but firstly I'm using PersistentWindows on my work laptop where I'm not having admin rights and do want to not clobber the scheduled task menu (personal preference). Secondly this way is rather complicated (manually creating an For now my workaround is to directly start |
release 5.56 reduced console window waiting time from 10 seconds to 2 seconds. Hope you are satisfied with this improvement. |
Hello and thanks for the update. Though I still haven't got my point across: A desktop application should (IMHO) not suddenly pop out console windows! (Doesn't matter if it's 2s or 10s.) That being said I failed to properly understand that As it's been obsolete for quite some time please don't put any effort into a workaround. I think this issue can be closed. |
Hello,
with version 5.55 there is now a console window visible every time PersistentWindows is started because (apparently) it starts, waits a few seconds and then creates some file
pw_restart.cmd
, terminates itself and executes said cmd file. Is this intentional?(I'm using a shortcut to
PersistentWindows.exe
in my auto start menu.)Also said cmd file prepends another command line parameter (
-wait_taskbar
) before all those configurations I've included in the start menu link toPersistentWindows.exe
.I don't see any information regarding this behaviour or this new command line parameter in the changelog and I'm not quite understanding the relevant(?) code.
The text was updated successfully, but these errors were encountered: