WSL run linux from windows without spawning a cmd-window

Here’s a simpler solution, which, however, requires a WSH-based helper script, runHidden.vbs (see bottom section): wscript .\runHidden.vbs bash -c “DISPLAY=:0 xmessage ‘hello, world'” To apply @davv’s own launch-in-background technique to avoid creating a new bash instance every time: One-time action (e.g., at boot time): launch a hidden, stay-open bash window. This spawns 2 bash processes: … Read more

How to use enable pseudo-locale in Windows for testing?

How do i enable pseudo-locale’s in Windows? Initially the four pseudo-locale’s are not visible in the Control Panel: (archive.org) Note that NLS does not automatically enumerate the pseudo-locales or expose them in the regional and language options portion of the Control Panel. They are only enumerable if values are set in the registry. You enable … Read more

How do I find out the browser’s proxy settings?

The function you’re looking for is WinHttpGetIEProxyConfigForCurrentUser(), which is documented at http://msdn.microsoft.com/en-us/library/aa384096(VS.85).aspx. This function is used by Firefox and Opera to get their proxy settings by default, although you can override them per-browser. Don’t do that, though. The right thing to do (which is what everybody else does) is to just get the IE settings … Read more

SWT No More Handles

If I understand you correctly, you are probably getting the following exception: org.eclipse.swt.SWTError: No more handles You may be creating resources (such as Font, Image or GC objects) that you aren’t correctly disposing. You might want to take a moment to read through the SWT guide on Managing Operating System Resources. To determine if this … Read more

What is the range of a Windows HANDLE on a 64 bits application?

MSDN states: Interprocess Communication Between 32-bit and 64-bit Applications 64-bit versions of Windows use 32-bit handles for interoperability. When sharing a handle between 32-bit and 64-bit applications, only the lower 32 bits are significant, so it is safe to truncate the handle (when passing it from 64-bit to 32-bit) or sign-extend the handle (when passing … Read more