Skip to content

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

@yukawa

Description

@yukawa

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 (0488082).

<!--
Write a registry key to launch mozc_server.exe and
mozc_renderer.exe automatically after user logon.
-->
<Component Id='PrelaunchProcesses' Guid='*'>
<RegistryValue Id='RunBroker' Root='HKLM'
Key='Software\Microsoft\Windows\CurrentVersion\Run'
Name='Mozc Prelauncher' Action='write' Type='string'
Value='&quot;[MozcDir]mozc_broker.exe&quot; --mode=prelaunch_processes' />
</Component>

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

6c920a9

Environment

  • OS: Windows 11 22H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions