Bug 375029 - decrypting files via GUI can delete files permanently
Summary: decrypting files via GUI can delete files permanently
Status: RESOLVED FIXED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: Rolf Eike Beer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-14 05:32 UTC by Aaron Wolf
Modified: 2017-08-08 15:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 17.08.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Wolf 2017-01-14 05:32:07 UTC
While command line stuff with gpg is fine, using the action menus in dolphin is highly problematic.

* I have a png image encrypted as file.png.gpg
* I use "view file decrypted" in action menu in dolphin
* Kgpg tries to open the file as plain text *and* deletes the encrypted file
* I can close the useless text encoding window that opened and find that the whole thing is gone.
Comment 1 Rettich 2017-03-04 14:35:28 UTC
I have the same problem since the last update.

In addition, "kgpg -s" does not work at all if the kgpg is already running.
Comment 2 Bengt Gorden 2017-05-30 08:30:00 UTC
I've got the same problem. Viewing files actually brings up the editor and removes the file. After that I have get the question if I want to save the file.
Comment 3 Paul 2017-07-28 17:27:56 UTC
As a long time (and frequent) user of Kgpg it is rather unfortunate this bug effectively prevents its use with the Dolphin context menu.

For the moment I've made the change to kleopatra which works without problem.

Hopefully this bug will eventually be fixed.  :)
Comment 4 Rolf Eike Beer 2017-08-08 15:25:20 UTC
Git commit 42672bf1236ec64e1a978c92b82113309cefbf26 by Rolf Eike Beer.
Committed on 08/08/2017 at 15:25.
Pushed by dakon into branch 'Applications/17.08'.

fix decrypting files using the editor

-do not remove local files after decryption
-do not download remote files twice
FIXED-IN:17.08.0

M  +8    -7    editor/kgpgtextedit.cpp

https://commits.kde.org/kgpg/42672bf1236ec64e1a978c92b82113309cefbf26