Konqueror Service Menu - Decrypt Tarball



Hello,

I often create tarballs (.tar.gz) files and encrypt them using gpg. What I
end up with is a .tar.gz.asc file.

To extract the contents of this .asc file, I (using konqueror):
1. Click on the file and enter my passphrase. This creates the .tar.gz file.
2. Right click on the .tar.gz file and use Extract->Extract Here


What I am trying to do is fold these two steps into one by creating a
Konqueror Service Menu. I have successfully created the entry and the
associated mimetype, etc.

I use the following command (which works from the command line):
gpg --decrypt %F | tar zxC %D -f -

What this does is decrypts the file (absolute path via %F) to stdout and
pipes the contents (the .tar.gz) to tar.

My problem is that in my ~/.xsession-errors I get the following error:
gpg: cannot open `/dev/tty': No such device or address


I'm not sure why gpg what /dev/tty, perhaps its for pinentry-qt? If you use
this command in a terminal a pineentry-qt appears so you can enter in your
passphrase.

Anyone know what I can do to make this work?

Thanks,

Alvin
.



Relevant Pages

  • Re: How do I execute dos command without a path
    ... > gpg: no valid OpenPGP data found. ... > I know the command is valid and this variation works also ... > Reading passphrase from file descriptor 0 ...
    (microsoft.public.dotnet.languages.vb)
  • Simple expect script has erratic behavior, why?
    ... I have a simple expect script to decrypt a gpg file when passed the ... passphrase on the command line. ... If I run the gpg command from the command line, ...
    (comp.lang.tcl)
  • Re: How to encrypt and burn to dvdr my home dir?
    ... would you suggest I encrypt the resulting .tar.bz2 file? ... I'd use gpg from the command line. ... passphrase to encrypt the file. ...
    (Fedora)
  • Re: GC and security
    ... comes back at end to encrypt and then app is done. ... gpg is fairly careful about passphrases. ... passphrase in the Python app instead of letting gpg handle it? ...
    (comp.lang.python)
  • Re: Nice GUI/CLI Password Manager for Linux
    ... vim can be configured to automatically use gpg to decrypt *.gpg files ... the command is not available in this version: augroup encrypted ... the command is not available in this version: autocmd ...
    (Debian-User)