google / mozc

Mozc - a Japanese Input Method Editor designed for multi-platform
Other
2.32k stars 330 forks source link

Consider pre-launching `mozc_server` and `mozc_renderer` from `mozc_tool.exe --mode=post_install_dialog` in Windows #845

Closed yukawa closed 7 months ago

yukawa commented 7 months ago

Description

There has been a known limitation that processes like mozc_server and mozc_renderer cannot be launched from sandboxed processes such as SearchHost.exe in Windows. We have worked around this limitation by running mozc_broker.exe --mode=prelaunch_processes when the user logs in since Mozc 2.18.2602.102 (048808221cae6180c7a6ae6623e13c58490f30ed).

https://github.com/google/mozc/blob/6c920a9c2476059607d4c5c3fe3e8f241025850a/src/win32/installer/installer_oss_64bit.wxs#L281-L290

We, however, have not performed this workaround immediately after installing Mozc (and running mozc_tool.exe --mode=post_install_dialog).

As a result, the user may notice that they cannot use Mozc in the search field in the task bar immediately after installing Mozc.

Steps to reproduce

Steps to reproduce the behavior:

  1. Build and install Mozc for Windows
  2. "%ProgramFiles(x86)%\Mozc\mozc_tool.exe" --mode=post_install_dialog
  3. Click the "Search" field in the task bar
  4. Try to enable Mozc

Expected behavior

You can enable Mozc at the step 4.

Actual behavior

You cannot enable Mozc at the step 4.

Version or commit-id

6c920a9c2476059607d4c5c3fe3e8f241025850a

Environment