mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
Meta: Add System32 to the PATH so that reg.exe is always found
On my machine (c), /mnt/c/Windows/System32 is not on the PATH by default. This causes reg.exe to fail, which is responsible for detecting the presence of QEMU. By putting this path on the PATH on WSL, it will always work regardless of the specific PATH configuration, and QEMU is always detected.
This commit is contained in:
parent
7d7d310df6
commit
2dc614127e
Notes:
sideshowbarker
2024-07-18 05:12:28 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/2dc614127e4 Pull-request: https://github.com/SerenityOS/serenity/pull/9623
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ SERENITY_RUN="${SERENITY_RUN:-$1}"
|
|||
|
||||
if [ -z "$SERENITY_QEMU_BIN" ]; then
|
||||
if command -v wslpath >/dev/null; then
|
||||
# Some Windows systems don't have reg.exe's directory on the PATH by default.
|
||||
PATH=$PATH:/mnt/c/Windows/System32
|
||||
QEMU_INSTALL_DIR=$(reg.exe query 'HKLM\Software\QEMU' /v Install_Dir /t REG_SZ | grep '^ Install_Dir' | sed 's/ / /g' | cut -f4- -d' ')
|
||||
if [ -z "$QEMU_INSTALL_DIR" ]; then
|
||||
if [ "$KVM_SUPPORT" -eq "0" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue