Bug 2223181

Summary: unable to parse default ibus config
Product: [Fedora] Fedora Reporter: tdyq-liu <tiandeyiqingliupeng>
Component: mozcAssignee: Akira TAGOH <tagoh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: i18n-bugs, robinlee.sysu, tagoh, tfujiwar
Target Milestone: ---Keywords: Desktop, EasyFix, Reopened, Upgrades, UserExperience
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://github.com/google/mozc/issues/685
Whiteboard:
Fixed In Version: mozc-2.28.4950.102-7.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-27 01:21:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tdyq-liu 2023-07-16 09:32:03 UTC
unable to parse default ibus config
https://github.com/google/mozc/issues/685


Reproducible: Always

Steps to Reproduce:
1. set active_on_launch: True
2. `ibus write-cache; ibus restart`
Actual Results:  
[libprotobuf ERROR google/protobuf/text_format.cc:335] Error parsing text-format mozc.ibus.Config: 19:22: Expected integer or identifier, got: "HIRAGANA"
[libprotobuf ERROR google/protobuf/text_format.cc:335] Error parsing text-format mozc.ibus.Config: 19:22: Expected integer or identifier, got: "HIRAGANA"

Expected Results:  
fix it

my ibus_config.textproto

# `ibus write-cache; ibus restart` might be necessary to apply changes.
engines {
  name : "mozc-jp"
  longname : "Mozc"
  layout : "default"
  layout_variant : ""
  layout_option : ""
  rank : 80
  symbol : "あ"
}
engines {
  name : "mozc-on"
  longname : "Mozc:あ"
  layout : "default"
  layout_variant : ""
  layout_option : ""
  rank : 99
  symbol : "あ"
  composition_mode : "HIRAGANA"
}
engines {
  name : "mozc-off"
  longname : "Mozc:A_"
  layout : "default"
  layout_variant : ""
  layout_option : ""
  rank : 99
  symbol : "A"
  composition_mode : "DIRECT"
}
active_on_launch: True

Comment 1 Fedora Update System 2023-07-18 13:58:05 UTC
FEDORA-2023-f0aec82b39 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f0aec82b39

Comment 2 tdyq-liu 2023-07-18 14:30:09 UTC
The latest version worked better after I deleted the config file and logged out.

Comment 3 Fedora Update System 2023-07-19 03:07:20 UTC
FEDORA-2023-f0aec82b39 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-f0aec82b39`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f0aec82b39

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Akira TAGOH 2023-07-19 07:01:23 UTC
Please add a karma on the above updates instead of closing a bug. This is supposed to be closed automatically when the updates is pushed to stable.

Comment 5 Fedora Update System 2023-07-27 01:21:51 UTC
FEDORA-2023-f0aec82b39 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.