Linux: 'Open in External Viewer' in FF opens default file manager rather than PDF tool

Hi,
Using Kubuntu 13.10 with Dolphin and Okular as default file manager and PDF reader, resp.
When clicking a ref. in zotero in FF the file opens with FF built in reader but when clicking 'Open in External Viewer' I get the file manager popping instead. Same occurs using 'View PDF' in stand alone.

I googled the problem and found several posts but non helped me.
I've made sure that in: /usr/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list the default pdf reader is: application/pdf=kde4-okularApplication_pdf.desktop

Any further suggestions?

Thanks in advance,
Roey
  • you have also tried
    application/pdf=kde-okularApplication_pdf.desktop
    ?
  • edited January 2, 2014
    Thanks.
    I changed kde4-okular to kde-okular in all cases in both files but no help. I should also mention that no other application has problem opening pdfs using okular.
  • where the documentation says to put the info is:
    ~/.local/share/applications/defaults.list
    (i.e. a mix of the two locations you've been using)

    http://www.zotero.org/support/kb/file_handling_issues#pdfs_opening_in_wrong_application_on_gnulinux_systems

    I'd try creating the file there, see if that works.
  • ~/.local/share/applications/defaults.list also exists and contained the line: application/pdf=kde4-okularApplication_pdf.desktop.
    Unfortunately, changing it to kde-okular didn't help either.
  • Also, deleting mimeTypes.rdf in ~/.zotero/zotero/... didn't help and neither deleting the entire ~/.zotero dir/
  • I have nothing then - you could look at your log to figure out what Zotero is doing: http://www.zotero.org/support/debug_output
  • I disabled all add-ons and collected debug output. I cannot find anything unusual. This is what I got:




    version => 4.0.17, platform => Linux x86_64, oscpu => Linux x86_64, locale => en-US, appName => Zotero, appVersion => 4.0.17

    =========================================================

    (3)(+0004601): Viewing item in pane 0

    (3)(+0000000): Refreshing item box

    (3)(+0000010): DATE: retrieved with algorithms: {"order":"mdy","month":0,"day":1,"year":2014}

    (5)(+0000012): SELECT creatorID, creatorTypeID, orderIndex FROM itemCreators WHERE itemID=? ORDER BY orderIndex

    (5)(+0000000): Binding parameter 1 of type int: 1228

    (5)(+0000000): SELECT COUNT(*) FROM creators WHERE creatorID=?

    (5)(+0000000): Binding parameter 1 of type int: 3534

    (5)(+0000001): SELECT COUNT(*) FROM creators WHERE creatorID=?

    (5)(+0000000): Binding parameter 1 of type int: 3535

    (5)(+0000000): SELECT COUNT(*) FROM creators WHERE creatorID=?

    (5)(+0000000): Binding parameter 1 of type int: 2125

    (5)(+0000000): SELECT COUNT(*) FROM creators WHERE creatorID=?

    (5)(+0000000): Binding parameter 1 of type int: 2116

    (3)(+0000000): Loading data for creator 3534 in Zotero.Creator.load()

    (5)(+0000000): SELECT C.*, CD.* FROM creators C NATURAL JOIN creatorData CD WHERE creatorID=?

    (5)(+0000000): Binding parameter 1 of type int: 3534

    (3)(+0000010): Loading data for creator 3535 in Zotero.Creator.load()

    (5)(+0000001): SELECT C.*, CD.* FROM creators C NATURAL JOIN creatorData CD WHERE creatorID=?

    (5)(+0000000): Binding parameter 1 of type int: 3535

    (3)(+0000007): Loading data for creator 2125 in Zotero.Creator.load()

    (5)(+0000000): SELECT C.*, CD.* FROM creators C NATURAL JOIN creatorData CD WHERE creatorID=?

    (5)(+0000000): Binding parameter 1 of type int: 2125

    (3)(+0000014): Loading data for creator 2116 in Zotero.Creator.load()

    (5)(+0000000): SELECT C.*, CD.* FROM creators C NATURAL JOIN creatorData CD WHERE creatorID=?

    (5)(+0000000): Binding parameter 1 of type int: 2116

    (5)(+0000012): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE sourceItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY mimeType='application/pdf' DESC, value=? DESC, dateAdded ASC

    (5)(+0000000): Binding parameter 1 of type int: 1228

    (5)(+0000000): Binding parameter 2 of type int: 3

    (5)(+0000000): Binding parameter 3 of type string: "http://aem.asm.org/content/80/1/281"

    (5)(+0000000): SELECT mimeType FROM itemAttachments WHERE itemID=?

    (5)(+0000001): Binding parameter 1 of type int: 1229

    (5)(+0000000): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE sourceItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY mimeType='application/pdf' DESC, value=? DESC, dateAdded ASC

    (5)(+0000000): Binding parameter 1 of type int: 1228

    (5)(+0000000): Binding parameter 2 of type int: 3

    (5)(+0000000): Binding parameter 3 of type string: "http://aem.asm.org/content/80/1/281"

    (5)(+0000000): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE sourceItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY mimeType='application/pdf' DESC, value=? DESC, dateAdded ASC

    (5)(+0000000): Binding parameter 1 of type int: 1228

    (5)(+0000001): Binding parameter 2 of type int: 3

    (5)(+0000000): Binding parameter 3 of type string: "http://aem.asm.org/content/80/1/281"

    (5)(+0000001): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE sourceItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY mimeType='application/pdf' DESC, value=? DESC, dateAdded ASC

    (5)(+0000000): Binding parameter 1 of type int: 1228

    (5)(+0000000): Binding parameter 2 of type int: 3

    (5)(+0000000): Binding parameter 3 of type string: "http://aem.asm.org/content/80/1/281"

    (3)(+0000003): MIME type application/pdf cannot be handled internally

    (5)(+0000000): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE sourceItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY mimeType='application/pdf' DESC, value=? DESC, dateAdded ASC

    (5)(+0000000): Binding parameter 1 of type int: 1228

    (5)(+0000000): Binding parameter 2 of type int: 3

    (5)(+0000000): Binding parameter 3 of type string: "http://aem.asm.org/content/80/1/281"

    (5)(+0000117): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE sourceItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY mimeType='application/pdf' DESC, value=? DESC, dateAdded ASC

    (5)(+0000000): Binding parameter 1 of type int: 1228

    (5)(+0000000): Binding parameter 2 of type int: 3

    (5)(+0000000): Binding parameter 3 of type string: "http://aem.asm.org/content/80/1/281"

    (5)(+0001448): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE sourceItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY mimeType='application/pdf' DESC, value=? DESC, dateAdded ASC

    (5)(+0000000): Binding parameter 1 of type int: 1228

    (5)(+0000000): Binding parameter 2 of type int: 3

    (5)(+0000000): Binding parameter 3 of type string: "http://aem.asm.org/content/80/1/281"

    (3)(+0000001): Opening /home/angelr5/Dropbox/Shared/Work/Literature/Zotero/storage/JDP6XGAR/Mirza et al_2014_Appl Environ Microbiol.pdf

    (3)(+0000011): Detected MIME type application/pdf

    (3)(+0000001): Notifier.trigger('open', 'file', [1229]) called [observers: 8]

    (4)(+0000000): Calling notify('open') on observer with hash 'Na'

    (4)(+0000000): Calling notify('open') on observer with hash 'Sp'

    (4)(+0000000): Calling notify('open') on observer with hash '1r'

    (4)(+0000000): Calling notify('open') on observer with hash '8l'

    (3)(+0000000): Cancelling auto-sync timer

    (3)(+0000000): Setting auto-sync timeout to 15 seconds

    (4)(+0000000): Calling notify('open') on observer with hash 'c6'

    (4)(+0000000): Calling notify('open') on observer with hash 'cX'

    (4)(+0000000): Calling notify('open') on observer with hash 'hO'

    (4)(+0000000): Calling notify('open') on observer with hash 'k9'

    (5)(+0000073): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=1) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE sourceItemID=? AND linkMode NOT IN (?) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY mimeType='application/pdf' DESC, value=? DESC, dateAdded ASC

    (5)(+0000000): Binding parameter 1 of type int: 1228

    (5)(+0000000): Binding parameter 2 of type int: 3

    (5)(+0000000): Binding parameter 3 of type string: "http://aem.asm.org/content/80/1/281"
Sign In or Register to comment.