FS#22182 - [ibus-sunpinyin] The sunpinyin "Preference" panel can not be loaded

Attached to Project: Community Packages
Opened by Liberty (helloworld1) - Wednesday, 22 December 2010, 03:36 GMT
Last edited by Thomas Dziedzic (tomd123) - Wednesday, 22 December 2010, 23:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Dan Griffiths (Ghost1227)
Thomas Dziedzic (tomd123)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The sunpinyin preference panel can not be loaded.



Additional info:
* 2.0.1
* config and/or log files etc.


Steps to reproduce:
1. Switch to sunpinyin
2. Press "Preference" or the gear icon

Nothing happens.

Expected result:
1. Open a preference to set the fuzzy pinyin or something like that.
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Wednesday, 22 December 2010, 23:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  pkgrel 2
Comment by Thomas Dziedzic (tomd123) - Wednesday, 22 December 2010, 17:31 GMT
upgraded to 2.0.2, please try again.
Comment by Liberty (helloworld1) - Wednesday, 22 December 2010, 18:32 GMT
Sunpinyin 2.0.2 is working well but this problem is not fixed.

It is because python2
Look at this file
/usr/lib/ibus-sunpinyin/ibus-setup-sunpinyin

line:
exec python /usr/share/ibus-sunpinyin/setup/main.py $@

It should be python2

changing to python2 it will work
Comment by Thomas Dziedzic (tomd123) - Wednesday, 22 December 2010, 21:28 GMT
For future reference, add this to PKGBUILD package()

sed -i 's/python/python2/' ${pkgdir}/usr/lib/ibus-sunpinyin/ibus-setup-sunpinyin

Loading...