![]() |
#1 |
Connoisseur
![]() Posts: 62
Karma: 10
Join Date: Feb 2014
Device: Kobo mini, Kobo Clara HD
|
pdf viewer
How does Calibre decide which pdf viewer (of 3 available on my pc) it uses?
There is one viewer (FoxitReader 1.1) that my Calibre seem to default to, which comes back with an error message: Code:
Cannot open the file! The file cannot be found or opened, the file name may be incorrect. Please verify and try again. I have set another reader on my pc as default, and it remains a default reader on my pc, but calibre persist with using the original FoxitReader? Is there somewhere in Calibre, where I can set the default reader it uses? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Calibre just uses whatever is set as the system default for viewing PDF files - you never specify a specific program. If it is failing to launch then there is something wrong with the system settings for viewing that sort of file.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,956
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The one that HAS been set (the always use tick box in Open With properties) in the OS.
![]() Double click on a PDF in Explorer... What opens the file, is what Calibre will use. Don't want Calibre to use that one? Get and configure the 'Open With' plugin to choose the one you want. ![]() ![]() A PDF B PDF C PDF |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
The latest version of calibre has its own Open With implementation, right-click on a format link in Book details.
|
![]() |
![]() |
![]() |
#5 | ||||||
Connoisseur
![]() Posts: 62
Karma: 10
Join Date: Feb 2014
Device: Kobo mini, Kobo Clara HD
|
Quote:
Quote:
Quote:
Quote:
Quote:
![]() Quote:
![]() Thank you all for your suggestions! It's interesting that latest version addreses this: https://bugs.launchpad.net/calibre/+bug/1434990 Last edited by bambuko; 04-03-2015 at 04:42 AM. |
||||||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,259
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Default programs on linux are an utter and absolute mess. calibre uses Qt which in turn uses xdg-open. So you need to set your default PDF viewer in a way that will work with xdg-open. Open a terminal, run
xdg-open file.pdf to test it. How you change the default for xdg-open is completely distro and desktop environment specific. Personally, I gave up on linux's default programs long ago and just wrote my open replacement for xdg-open. |
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 62
Karma: 10
Join Date: Feb 2014
Device: Kobo mini, Kobo Clara HD
|
Thanks Kovid!
As usual ![]() xdg-open file.pdf replicates exactly what happens when I try to .pdf in Calibre (even with the same error message) You've made my day - because I thought I was going Doolally ![]() ![]() |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2015
Device: none
|
I have a similar problem. exo-open and xdg-open do open my pdf's correctly, but just clicking on them in Calibre gieves me the error Failed to open URI "file:/...". I can open it from Calibre using the 'Open with' plugin. A related bug (I think) is that I cannot click open the containing folder from Calibre. I just upgraded to Debian/scratch.
|
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,259
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The version of xdg-open on your system cant parse file:// URLs with percent encoding correctly.
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2015
Device: none
|
exo-open bug
Yes kovidgoyal. I understand xdg-open uses exo-open and I verified that my exo-open gets confused with URL's that have '%' escapes. I already submitted a bug report.
|
![]() |
![]() |
![]() |
#11 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23
Karma: 4388
Join Date: Jan 2013
Device: Kobo glo
|
Quote:
Last edited by Future Science; 07-28-2015 at 06:52 AM. |
|
![]() |
![]() |
![]() |
#13 | |
Connoisseur
![]() Posts: 62
Karma: 10
Join Date: Feb 2014
Device: Kobo mini, Kobo Clara HD
|
Quote:
FoxitReader now opens fine, but I get this: i ![]() and yet, when I open this file directly in the folder (without using Calibre), FoxitReader has absolutely no problems with it ![]() |
|
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,259
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes. You need to fix xdg-open to unencode URLs before passing them to applications. Personally I gave up on xdg-utils (it is one of the worst codebases I have ever seen) a long time ago and wrote my open simple easy to maintain xdg-open. If you search in these forums you will find it.
|
![]() |
![]() |
![]() |
#15 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
As well as several other replacements here: https://wiki.archlinux.org/index.php...n_replacements
Kovid's is here: https://www.mobileread.com/forums/sho...en#post2897570 |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Magazine-like PDF viewer (like the flash magazine viewer on certain sites?)? | Huyggy | Reading and Management | 6 | 12-12-2013 04:35 AM |
Experimental pdf viewer | Iñigo | iRex Developer's Corner | 17 | 07-16-2012 02:33 PM |
[Kindle Touch] No Image viewer and pdf viewer with white margins | MaxPowerITA | Kindle Developer's Corner | 7 | 04-24-2012 05:27 AM |
Android PDF Viewer | alefor | enTourage Archive | 18 | 12-30-2010 09:40 AM |
PDF viewer | guyanonymous | PocketBook | 1 | 07-06-2010 08:28 PM |