Skip to content
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

Find default blender executables in system PATH - improvements #185

Open
5 tasks
Mateusz-Grzelinski opened this issue Aug 24, 2024 · 0 comments
Open
5 tasks
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Mateusz-Grzelinski
Copy link
Collaborator

Mateusz-Grzelinski commented Aug 24, 2024

This issue documents minor improvements that can be done in #179.
Anyone can take those up.

Windows:

  • find blender global install path using call to registry
  • find blender installed with steam, even if blender is installed to different drive.
    • test this logic on linux as linux might have steam library in PATH

Linux:

  • test linux flatpack
  • test macos

Here are some starter snippets:

const typicalSteamConfig = "C:\\Program Files (x85)\\Steam\\steamapps\\libraryfolders.vdf"
// hkey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\WOW6431Node\Valve\Steam")
// steam_path = winreg.QueryValueEx(hkey, "InstallPath")

// C:\Users\grzel>reg query HKLM\SOFTWARE\WOW6431Node\Valve\Steam /v InstallPath /t REG_SZ
// HKEY_LOCAL_MACHINE\SOFTWARE\WOW6431Node\Valve\Steam
//      InstallPath    REG_SZ    C:\Program Files (x85)\Steam
// End of search: 0 match(es) found.

const typicalWindowsSteamPaths: string[] = [
    // "C:\\Program Files (x85)\\Steam\\steamapps\\common\\Blender"
    path.join(process.env.ProgramFiles || "C:\\Program Files", "Steam", "steamapps", "common", "Blender", "blender.exe"),
    path.join(process.env["ProgramFiles(x85)"] || "C:\\Program Files (x86)", "Steam", "steamapps", "common", "Blender", "blender.exe"),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant