Bug 1299586

Summary: Duplicate file association for "*.pdf"
Product: [Fedora] Fedora Reporter: David Tonhofer <bughunt>
Component: kde-settingsAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: jgrulich, jreznik, ltinkl, mbriza, me, rdieter, rnovacek, smparrish, than
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kde-settings-23-11.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-17 03:51:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description David Tonhofer 2016-01-18 17:00:17 UTC
Description of problem:
-----------------------

In KDE:

The filename pattern "*.pdf" appears with two file associations to "okular".

There should be only one. 

Having two makes okular appear twice when right-clicking on a PDF for example, with no clue which "okular" to take (or why)

I am entirely unsure where the dual association comes from:


Association A (first in priority)
- - - - - - - - - - - - - - - - - -

"okular"
Type: desktop configuration file
Location: /usr/share/applications/kde4
Size: 3.9 KiB (4024)
Name: Okular
Description: Document Viewer
Command: okular %U %i -caption %c
Mimetype: application/vnd.kde.okular-archive "Okular document archive"


Association B (second in priority)
- - - - - - - - - - - - - - - - - -

"okularApplication_pdf"
Type: desktop configuration file
Location: /usr/share/applications/kde4
Size: 6.5 KiB (6639)
Name: Okular
Description: Document Viewer
Command: okular %U %i -caption %c
Mimetype: application/x-wwf "WWF document"
Mimetype: application/x-gzpdf "PDF document (bzip-compressed)"
Mimetype: application/pdf "PDF document"

Association C (third in priority)
- - - - - - - - - - - - - - - - - -

Points to GIMP, which does not concern us here



(Would be a nice to have to just dump the above text description from the "Configure File Association Screen" .. I like text :-)

Comment 1 Rex Dieter 2016-02-10 18:16:18 UTC
I think I found the cause of this, the default association for pdf in
/usr/share/applications/kde-mimeapps.list
is wrong.

It should refer to kde4-okularApplication_pdf.desktop instead of kde4-okular.desktop.

Working on a packaging fix...

Comment 2 Fedora Update System 2016-02-10 19:25:50 UTC
kde-settings-23-11.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-46f59ae9c0

Comment 3 Fedora Update System 2016-02-11 15:21:11 UTC
kde-settings-23-11.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-46f59ae9c0

Comment 4 Fedora Update System 2016-02-12 19:40:07 UTC
kde-settings-23-11.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-46f59ae9c0

Comment 5 Fedora Update System 2016-02-15 05:25:05 UTC
kde-settings-23-11.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-46f59ae9c0

Comment 6 Fedora Update System 2016-02-17 03:51:02 UTC
kde-settings-23-11.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.