Alex313031 / Thorium-Win

Chromium fork for Windows named after radioactive element No. 90; Windows builds of https://github.com/Alex313031/Thorium
https://thorium.rocks/
BSD 3-Clause "New" or "Revised" License
1.28k stars 33 forks source link

does THORIUM.BAT have an option to automatically select from Windows version? #207

Open candrapersada opened 2 months ago

candrapersada commented 2 months ago

does THORIUM.BAT have an option to automatically select from a Windows version like this?

@ECHO OFF
for /f "tokens=4-5 delims=. " %%i in ('ver') do set VERSION=%%i.%%j
if "%version%" == "10.0" echo Windows 10+ & START "" "%cd%\thorium\thorium.exe" --user-data-dir="%~dp0%\USER_DATA" --allow-outdated-plugins --disable-logging --disable-breakpad --disable-encryption --disable-machine-id
if "%version%" == "6.2" echo Windows 8. & START "" "%cd%\thorium-legacy\thorium.exe" --user-data-dir="%~dp0%\USER_DATA" --allow-outdated-plugins --disable-logging --disable-breakpad --disable-encryption --disable-machine-id
if "%version%" == "6.1" echo Windows 7. & START "" "%cd%\thorium-legacy\thorium.exe" --user-data-dir="%~dp0%\USER_DATA" --allow-outdated-plugins --disable-logging --disable-breakpad --disable-encryption --disable-machine-id

https://stackoverflow.com/questions/13212033/get-windows-version-in-a-batch-file/13212116#13212116

Unknown78 commented 2 months ago

The default contents of current THORIUM.BAT:

START "" "%cd%\BIN\thorium.exe" --user-data-dir="%~dp0%\USER_DATA" --allow-outdated-plugins --disable-logging --disable-breakpad --disable-encryption --disable-machine-id

So no, it has no automatic detection.


Anyway, I'm not sure mixing user data between legacy and the newer one is safe or not. The Windows XP build is also quite different from the rest, especially the emoji font. Let the experts answers for that.