Bug 2272902

Summary: ibus-pinyin preferences window fails to open
Product: [Fedora] Fedora Reporter: David Lunn <dlunn>
Component: ibus-pinyinAssignee: Peng Wu <pwu>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: i18n-bugs, pwu, shawn.p.huang, tfujiwar
Target Milestone: ---Keywords: Desktop
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: ibus-pinyin-1.5.1-1.fc39 ibus-pinyin-1.5.1-1.fc40 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-17 02:19:01 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 David Lunn 2024-04-03 07:25:40 UTC
By running ibus-setup from a terminal, I am able to diagnose the origin of this issue with this output: 
```Traceback (most recent call last):
  File "/usr/share/ibus-pinyin/setup/main.py", line 31, in <module>
    from xdg import BaseDirectory
ModuleNotFoundError: No module named 'xdg'
```

The module 'xdg' has been deprecated in favour of 'xdg-base-dirs'. It would be possible to rewrite the code to use 'xdg-base-dirs', however upstream has simply removed that line of code in this [commit](https://github.com/ibus/ibus-pinyin/commit/616770084991de0f36bea7b5861ef1b1657c9a31#diff-be8f20178455c0f31580ba5c7360a832cc2baf0dab1b6c0cfe5a88525fec94d2)

Reproducible: Always

Steps to Reproduce:
1. Open "Preferences" for ibus-pinyin from the keyboard layout switcher in GNOME top bar
Actual Results:  
Nothing happens.

Expected Results:  
The preferences window for ibus-pinyin should open.

I notice that Debian considers ibus-pinyin deprecated. I’d like some clarification if possible on Fedora’s stance on continuing to maintain the ibus-pinyin package, as the aforementioned commit didn't seem to find its way into the Fedora package, either when it was committed or in the 6 years since then.

Comment 1 Fedora Update System 2024-04-09 08:41:32 UTC
FEDORA-2024-6afedad036 (ibus-pinyin-1.5.1-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-6afedad036

Comment 2 Fedora Update System 2024-04-09 08:41:33 UTC
FEDORA-2024-10a3c4d940 (ibus-pinyin-1.5.1-1.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-10a3c4d940

Comment 3 Fedora Update System 2024-04-09 18:16:26 UTC
FEDORA-2024-10a3c4d940 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-10a3c4d940`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-10a3c4d940

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

Comment 4 Fedora Update System 2024-04-09 18:22:40 UTC
FEDORA-2024-6afedad036 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-6afedad036`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-6afedad036

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

Comment 5 Fedora Update System 2024-04-17 02:19:01 UTC
FEDORA-2024-10a3c4d940 (ibus-pinyin-1.5.1-1.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2024-04-19 21:32:50 UTC
FEDORA-2024-6afedad036 (ibus-pinyin-1.5.1-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.