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.29k stars 33 forks source link

True Portable? #51

Closed Nyanpasu1 closed 1 year ago

Nyanpasu1 commented 1 year ago

I am trying to use portable option so i can use it on multiple machine wtihout need to backup registry and userdata on local :

START "" "%cd%\BIN\thorium.exe" --user-data-dir="%~dp0%\USER_DATA" --allow-outdated-plugins --disable-logging --disable-breakpad --enable-experimental-web-platform-features --new-canvas-2d-api --disable-encryption --disable-machine-id

So should i keep run the BAT file on every browser launch? or i just need to run it once and it is remain portable even i pin the browser on taksbar?

gz83 commented 1 year ago

I am very sorry to provide you with incorrect information, please ignore the content of the comment I sent earlier

@Nyanpasu1

Alex313031 commented 1 year ago

@gz83 @Nyanpasu1 NOOOOO. You need to KEEP these flags. Once a user data dir has been made with these flags, if you turn them off, it will screw up your user data and warn you every time that some settings have been reset.

The same thing happens if you start with a regular user profile and then try to use the flags. To portably use thorium, you need to start off using these flags, or make a seperate or new user profile. Once you've used them, any .bat or shortcut you make needs to have these appended to it.

@gz83 These are not "set once and forget". They affect encryption. If they are present, chromium stores stuff unencrypted and untied to the machine's ID. If the user data dir is encrypted, and you use the flag, it wont be able to read some stuff. Conversely, if the user data dir is unencrypted, and then thorium is launched without the flags, blink will think there is a security violation since it is expecting encrypted content. In both cases, to try to fix the user data dir, Chromium will delete and re-write some stuff back to default. The problem is that it won't do this for critical things like browsing history, etc to avoid removing user data, so you will constantly see a warning every time you launch it, and some things might not work right.

Nyanpasu1 commented 1 year ago

i see, so i need to keep run the BAT file on every browser launch which means i cannot set this browser as default browser, automatically open link to this browser by default, or pin to taskbar means it will open new profile without those flags instead and will void all my data.

wish there is easy way to fix this issue...

gz83 commented 1 year ago

I'd prefer this to be fixed upstream (chromium codebase)

@Alex313031 @Nyanpasu1

Nyanpasu1 commented 1 year ago

ok it seems there is no good solution yet beside of running bat file for every launch