matthiasblaesing opened a new pull request, #9043:
URL: https://github.com/apache/netbeans/pull/9043

   Historically NetBeans relied on cygwin or MSYS to provide a shell on windows.
   
   With WSL (the windows subsystem for linux) an alternative was established, 
that runs a full linux kernel inside a windows session, providing a full linux 
userland, including a shell.
   
   The benefit of WSL is, that it is built-in technology and thus has a lower 
threshold for installation than cygwin. The drawback is, that initial startup 
of wsl is slower than opening a cygwin/MSYS bash.
   
   The change here tries to check that
   
   - WSL2 is available and
   - that a distribution is installed in WSL2
   
   If this is the case NetBeans defaults to WSL.
   
   Users can override the automatic detection by setting the 
`org.netbeans.modules.nativeexecution.api.util.WindowsSupport.shellProvider` 
system property to `CYGWIN`, `MSYS` or `WSL`.
   
   Here is a screenshot with a testsystem with WSL and Cygwin both present, but 
WSL has no distribution installed:
   
   <img width="1117" height="441" alt="grafik" 
src="https://github.com/user-attachments/assets/e7a7933a-e246-4de2-b791-f30b95b204b4";
 />
   
   The same system after installing Ubuntu and restarting NetBeans:
   
   <img width="1117" height="441" alt="grafik" 
src="https://github.com/user-attachments/assets/26fd303a-2d75-4333-9032-c32a3c0d3ff0";
 />
   
   Closes: #3959


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to