LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-26-2013, 04:56 AM   #1
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
gpg agent/pinentry gtk/qt and scim not working together in -current


Hello,

Since I upgraded to -current in early October, I haven't been able to make gpg agent/pinentry work when scim is running.

I've updated scim to latest version (scim-1.4.14-i486-4.txz) and I'm running under XFCE.

By default /usr/bin/pinentry is a symlink to /usr/bin/pinentry-gtk-2

When scim is not running, pinentry-gtk-2 works correctly for example if I run:

Code:
gpg --sign foo.txt
the pinentry windows shows up and I can enter the passphrase to sign the file.

When scim is running, the pinentry windows still shows up but It's impossible to enter any character even though the focus is on the input box (cursor is flashing).

This seems like an old problem between pinentry-gtk-2 and scim that hasn't been corrected yet: from 13.1 CHANGES_AND_HINTS.TXT

Quote:
If you are using the pinentry-gtk2 interface (for entering passphrases with
gpg-agent), be aware that there is a bug in the way scim-bridge and the
pinentry-gtk2 interact. The result is that keyboard input does not register
with pinentry-gtk2. For the time being, either change the /usr/bin/pinentry
symlink to use the qt or curses frontend, or don't use scim.
In slackware 14.0, I was able to make it work by changing the pinentry symlink to pinentry-qt4. But in -current pinentry-qt4 seems broken with or without scim running (I've installed all l/ packages but only a few kde/ packages to make kmymoney run)

If I use pinentry-curses and scim, it works for signing a file in a text console but not for opening a file in kmymoney (the only QT application I'm using).

Any clues to make gpg agent/pinentry gtk/qt and scim work together in -current?
 
Old 10-26-2013, 11:41 AM   #2
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
I found a workaround to use scim to input korean characters when needed without impacting passphrase entry for kmymoney (using pinentry-gtk-2).

As I mentioned pinentry-gtk-2 works fine when scim is not running. In fact, the important point is to not set the variable GTK_IM_MODULE.

So I changed back properties of /etc/profile.d/scim.* files to make them unexecutable (this is the default property when scim package is installed).

When I need to enter korean characters, I just manually select "SCIM input method" as the input method. I do this using the right-click menu (ex: when I rename a file in Thunar).

If I cannot change the input method using the right-clik menu, I have to run the application with variable GTK_IM_MODULE set to "scim" just for this application (ex: firefox, libreoffice) using a console:

Code:
$GTK_IM_MODULE="scim" firefox
I guess that I could work the other way around: setup SCIM as my default input method and run kmymoney with GTK_IM_MODULE unset. I haven't tried this yet.

As said, it's just a workaround
 
  


Reply

Tags
pinentry, scim



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent jrtayloriv Linux - Security 9 06-03-2019 10:06 AM
gpg and pinentry WyattOil Linux - Security 7 03-03-2012 03:15 PM
many instances of gpg-agent edgjerp Linux - Software 0 11-16-2006 03:11 AM
gpg-agent on Slackware(-current?) - does it work? Yalla-One Slackware 2 05-15-2006 02:57 PM
gpg-agent cbonar Linux - Security 0 12-13-2004 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration