ThinBridge / Chronos

Chromiumベースの業務ブラウザ
Other
5 stars 3 forks source link

Make cache path unique per instances #197

Closed HashidaTKS closed 2 weeks ago

HashidaTKS commented 1 month ago

Since CEF120, we should specify unique CefSettings.root_cache_path per instances.

https://magpcss.org/ceforum/viewtopic.php?f=6&t=19677&p=54689&hilit=OnAlreadyRunningAppRelaunch#p54689

Also, just in case, we need to implement CefBrowserProcessHandler::OnAlreadyRunningAppRelaunch, for the case the multiple instances uses the same path for CefSettings.root_cache_path. (If CefSettings.root_cache_path is unique, CefBrowserProcessHandler::OnAlreadyRunningAppRelaunch will be never called, so this is "just in case".)

Because of this, if we use CEF 120+ for the current Chronos and execute multiple Chronos instances, Chronos instances after the second one don't work fine, the windows of them are never rendered.

HashidaTKS commented 2 weeks ago

Resolved.