Thorium-Win icon indicating copy to clipboard operation
Thorium-Win copied to clipboard

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

Open candrapersada opened this issue 9 months ago • 1 comments

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

candrapersada avatar Apr 26 '24 04:04 candrapersada

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.

Unknown78 avatar Apr 27 '24 22:04 Unknown78