|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Novell Archives Archived content from Novell openSUSE support forums |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
|
|||
|
Alvin Beach wrote:
> 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 Of course, 10 seconds after posting this I RTFM and find the answer! The gpg error can be avoided by using the --no-tty options. So the command will look like: gpg --no-tty --decrypt %F | tar zxC %D -f - Now this works wonderfully. I simply right click on any .tar.gz.asc file and Actions->Decrypt and Extract Here Sorry for the noise. Alvin |
|
|||
|
On 05/05/2006 Alvin Beach wrote:
> Sorry for the noise. <G> Thank you for the feedback! Uwe -- Novell Support Connection Volunteer SysOp Please don't send me support related e-mail unless I ask you to do so. |
|
|||
|
Uwe Buckesfeld wrote:
> On 05/05/2006 Alvin Beach wrote: >> Sorry for the noise. > > <G> > Thank you for the feedback! > > Uwe > Your welcome. ![]() I have created an RPM so this service can be easily (re)installed. I have one problem though. For this service to work correctly, I had to create a pgp-tarball.desktop mimelnk file. This mimelnk file contains the filter that decides which files get the "Decrypt and Extract Here" Action context. The problem I am having is that I loose the Kgpg binding with my custom pgp-tarball.desktop file. In other words, when I left-click on the .tar.gz.asc file, I get the dialog box that prompts for the app to use. What should happen is that kgpg should be launched, which is what happens when I click on any other .asc file. I can easily fix this by going into the control center and add kgpg as an app for the pgp-tarball file association. What I would like to do is to do this automagically through the RPM. This way the RPM will be fully complete. My investigations show that I need to edit the kgpg.desktop file and add the application/pgp-tarball to the mime type list. However, I cannot find a command line program that will make the association. A command line program would make this a lot easier, especially for when the RPM is uninstalled. Do you know of a command line program that can edit the mimetypes (rather than using the GUI)? Thanks, Alvin |
|
|||
|
Alvin wrote:
> Do you know of a command line program that can edit the mimetypes (rather > than using the GUI)? I couldn't find anything myself, so I have the RPM editing kgpg.desktop using sed. sed does the trick. It will add application/pgp-tarball when the RPM is installed and remove it when the RPM is uninstalled. This seems to be working well. Alvin |
|
|||
|
Alvin,
your question went way beyond my limited Linux knowledge, but it is kind of fun to sit and watch you solve your problems on your own <G> SCNR Uwe -- Novell Support Connection Volunteer SysOp Please don't send me support related e-mail unless I ask you to do so. |
|
|||
|
Uwe Buckesfeld wrote:
> Alvin, > > your question went way beyond my limited Linux knowledge, but it is kind > of fun to sit and watch you solve your problems on your own <G> > > SCNR > Uwe > I put the RPM for this service menu on kde-apps.org. If anyone is interested in it, you can check it out here: http://www.kde-apps.org/content/show...d8e1767a8b6792 Just in case knode chops the link, here's the tinyurl version: http://tinyurl.com/fkdbf Enjoy, Alvin |
|
|||
|
On 05/07/2006 Alvin wrote:
> I put the RPM for this service menu on kde-apps.org. Alvin, great, thanks! Uwe -- Novell Support Connection Volunteer SysOp Please don't send me support related e-mail unless I ask you to do so. |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|