[SOLVED] Can't type in foreign characters after scim-bridge removal
SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Can't type in foreign characters after scim-bridge removal
So after scim-bridge was removed from -current, I wasn't able to type in foreign characters anymore. Before (when I was helping another user with scim's zh-pinyin option) the update I was able to, but now I cannot.
The scim executable still starts up, but I am unable to change which foreign keys I wish to type in either via manually clicking on the icon or by the Ctrl+Space options.
Because scim-bridge was removed and the ChangeLog.txt said scim-bridge's functionality was added to scim-1.4.14, I attempted to edit /etc/profile.d/scim.csh and /etc/profile.d/scim.sh (only scim.sh is shown here, though):
--- /etc/profile.d/scim.sh 2011-03-19 16:12:44.000000000 -0700
+++ scim-bridge-removal.txt 2013-03-14 17:37:50.535838907 -0700
@@ -18,12 +18,12 @@
export XIM_PROGRAM="/usr/bin/scim -d"
-if [ -x /usr/bin/scim-bridge ]; then
+if [ -x /usr/bin/scim ]; then
# Let GTK applications like Firefox/Thunderbird use scim-bridge as
# default immodule:
- export GTK_IM_MODULE="scim-bridge"
+ export GTK_IM_MODULE="scim"
# Enable Qt4/KDE4 applications to use scim:
- export QT_IM_MODULE="scim-bridge"
+ export QT_IM_MODULE="scim"
# This ensures scim starts when you logon.
I noticed that the environment variables are only passed if scim-bridge is executable, so I thought maybe "scim-bridge" was still correct but it wasn't getting exported because scim-bridge doesn't exist anymore. But regardless of exporting either "scim-bridge" or just "scim", I still couldn't get scim to type in foreign characters.
I was wondering if anybody else was able to get scim working after the scim-bridge removal, or if it was just me that was suffering from this problem?
Well, shoot, there I go again, trying to help but I wind up breaking things
scim is still working for me without scim-bridge. I did edit /etc/profile.d/scim.sh. I put everything inside the first if/fi statement, so it looks like this:
if [ -x /usr/bin/scim ]; then
# Enable legacy X applications to use scim:
## Enable Qt/KDE applications to use scim (not working with kde4):
# Make scim start automatically if the "magic key" Ctrl-Space is pressed:
export XIM_PROGRAM="/usr/bin/scim -d"
But obviously it should be doing the same thing as your edited script.
Have you tried running 'update-gtk-immodules'? You might also have some cache files that are interfering, in /tmp or $USER/.scim
I should note that I'm not running slackware current. I'm using the packages from Slackware 14 (converted to porteus modules).
First of all, I want to say thank you for responding. I really appreciate it. Even if you don't use scim, thank you for helping me test.
line is actually commented out in the first part of the scim.sh and scim.csh scripts where the scripts test if scim is executable. According to the comment on the scripts, apparently they're not working with kde4.
Both of you are correct. I thought that after editing scim.sh and/or scim.csh, I could just source the files again via
Despite the fact that I did so, scim did not work (not sure why, was super sure this is what happens at boot via the /etc/profile script.
Which for reasons unbeknownst to my petite brain, I could not figure out.
So with the scim.sh and scim.csh scripts edited with the variables set to "scim", I rebooted and scim works again. I've sent patches to Pat and mentioned this thread. Hopefully he applies the patches in the next batch of updates.
Out of curiousity, did you try loging out/back in to restart your session, or restarting X without rebooting? That might be worth a try for those who prefer not to reboot (shared systems, servers, etc)