Bug 173395 - i cannot choose okular for pdf file association
Summary: i cannot choose okular for pdf file association
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_filetypes (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 22:47 UTC by Dimitrios Glentadakis
Modified: 2009-02-10 00:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitrios Glentadakis 2008-10-23 22:47:47 UTC
Version:            (using KDE 4.1.2)
OS:                Linux
Installed from:    Mandriva RPMs

As it is impossible to print a pdf document inside konqueror http://bugs.kde.org/show_bug.cgi?id=161759 
i would like to change to kpdf but was impossible as okular is implented to konqueror
My problem now is that i cannot choose okular associate with the pdf files type , every time i choose okular in "open with ..." i have the error message "the service okularChm.desktop is bad formated
how can i resolve this problem !!
Comment 1 Dimitrios Glentadakis 2008-10-23 23:07:37 UTC
Εφαρμογή: KEditFileType (keditfiletype), σήμα SIGABRT
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb5dd59a0 (LWP 881)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb6724d90 in raise () from /lib/i686/libc.so.6
#8  0xb67267f8 in abort () from /lib/i686/libc.so.6
#9  0xb7894445 in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb7894535 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb78945e5 in qt_assert () from /usr/lib/libQtCore.so.4
#12 0x080585bc in _start ()
Comment 2 Dimitrios Glentadakis 2008-11-01 09:10:55 UTC
i ve deleted the file ~/.local/share/applications/mimeapps.list and now Okular came back automatically and is the associated application for the pdf files
Comment 3 David Faure 2008-11-05 01:05:34 UTC
Did you keep a copy of that mimeapps.list? I assume it mentionned okularChm.desktop? I see that it's a part, but the desktop file doesn't look invalid to me.

If you don't have mimeapps.list anymore, can you recreate the bug by using "keditfiletype application/pdf" and changing the order of the applications in the first tab, or the order of the components in the second tab?
Comment 4 Dimitrios Glentadakis 2008-11-05 07:18:39 UTC
i can reproduce it any time.
[dimitri@localhost ~]$ cat ~/.local/share/applications/mimeapps.list
[Added Associations]
application/xhtml+xml=kde4-kfmclient_html.desktop;kde4-kwrite.desktop;writer.desktop;firefox.desktop;
text/html=kde4-kfmclient_html.desktop;firefox.desktop;kde4-kwrite.desktop;writer.desktop;
video/x-flv=totem.desktop;kde4-kmplayer.desktop;

[Added KDE Service Associations]
application/pdf=nsplugin.desktop;
application/x-shockwave-flash=kmplayer_part.desktop;nsplugin.desktop;

[Removed Associations]
application/pdf=kde4-okularApplication_pdf.desktop;
[dimitri@localhost ~]$ 
[dimitri@localhost ~]$ systemsettings
[dimitri@localhost ~]$ systemsettings(11365) FileTypesView::save: Entry  "application/pdf"  is dirty. Saving.

[dimitri@localhost ~]$


Comment 5 David Faure 2009-02-10 00:37:37 UTC
I think I fixed this for 4.2 - r914365, on 2009-01-21.
It happened when clicking on Okular in the tree, while typing "okular" would work.