[Bug 1000946] New: Changing the file association of *.asc gives error message
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946 Bug ID: 1000946 Summary: Changing the file association of *.asc gives error message Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: KDE Applications Assignee: opensuse-kde-bugs@opensuse.org Reporter: freek@opensuse.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- When clicking on a file with extension .asc, an encrypted file, the file is opened in an editor. Previously this file was decrypted, after asking for the password, so I tried to restore that behavior. I removed the association of *.asc to plain text. That did not help. So I finally did an edit on the details of the KGPG application in the list of applications to process this file. In the command I changed %U in %F and tried to save. I got an error message that $HOME/.local/share/applications/kde4/kgpg.desktop could not be saved. After "mkdir $HOME/.local/share/applications/kde4" I was able to do so. This is the bug. I also made a file association for *.lokalize. That one is stored in $HOME/.local/share/applications/ . So apparently there are two standard locations for storing locally defined .desktop files. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946#c1
Wolfgang Bauer
So apparently there are two standard locations for storing locally defined .desktop files.
Not really. *All* locally defined .desktop files are stored in ~/.local/share/applications/. But kgpg is a KDE4 application, and installs its system-wide .desktop file to /usr/share/applications/kde4/ in the first place. So the modified copy has to go to ~/.local/share/applications/kde4/ to override it. So far there's no bug. But probably ~/.local/share/applications/kde4/ isn't created if it doesn't exist, and then creating the file fails. IOW, a similiar bug as https://bugs.kde.org/show_bug.cgi?id=356237 (though not exactly the same) in a different place. I'll have a look. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946#c2
Wolfgang Bauer
But probably ~/.local/share/applications/kde4/ isn't created if it doesn't exist, and then creating the file fails.
And that was exactly the problem. I investigated and fixed it yesterday. You can try to install kio and kio-core from here, and see if it fixes *your* issue (I may have misunderstood it... ;-) ): http://download.opensuse.org/repositories/home:/wolfi323:/test/openSUSE_Leap... Feedback is welcome. I will of course propose the fix upstream too, but that will have to wait till tomorrow... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946#c3
--- Comment #3 from Freek de Kruijf
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946#c4
--- Comment #4 from Wolfgang Bauer
In Leap 42.2 RC2 the problem is gone about the error.
I very much doubt that, because no fix has been submitted yet. If the directory (~/.local/share/applications/kde4/) does exist there won't be a problem though.
But still the previous behavior that I only needed to click in a .txt.asc file to decrypt it is still not available. I have to right click and choose KGPG to decrypt.
Hm? If KGPG is defined as preferred application, it should be opened in KGPG if you click on it. Only if another application is on the top of the list you would have to right-click and choose "Open With". That's expected behavior though. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946
Emr Rec
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946#c5
--- Comment #5 from Freek de Kruijf
If KGPG is defined as preferred application, it should be opened in KGPG if you click on it.
I did remove *.asc from text/plain, now the application association is to KGPG at the top. To be more precise the command is "kgpg %U". However this command does not do the decryption. I don't see any result of calling that command with the filename as parameter. Only the command "gpg -d <file>" decrypts the file, after asking for the password of the key, however to standard output. Previously the output went to the filename without ".asc". Obviously calling a script which performs that function could be the solution. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946
http://bugzilla.opensuse.org/show_bug.cgi?id=1000946#c11
Wolfgang Bauer
participants (1)
-
bugzilla_noreply@novell.com