Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-02-2015, 06:11 AM   #1
bambuko
Connoisseur
bambuko began at the beginning.
 
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.
and yet when I go into the library and open the file directly with FoxitReader, it is fine.

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?
bambuko is offline   Reply With Quote
Old 04-02-2015, 10:03 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
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.
itimpi is offline   Reply With Quote
Advert
Old 04-02-2015, 10:25 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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.

you can add lines so there is an entry choice for each that you have:

A PDF
B PDF
C PDF
theducks is offline   Reply With Quote
Old 04-02-2015, 11:38 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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.
eschwartz is offline   Reply With Quote
Old 04-03-2015, 04:37 AM   #5
bambuko
Connoisseur
bambuko began at the beginning.
 
Posts: 62
Karma: 10
Join Date: Feb 2014
Device: Kobo mini, Kobo Clara HD
Quote:
Originally Posted by itimpi View Post
Calibre just uses whatever is set as the system default for viewing PDF files - you never specify a specific program...
system default is viewer A and Calibre insists on using B


Quote:
Originally Posted by itimpi View Post
....If it is failing to launch then there is something wrong with the system settings for viewing that sort of file.
Viewer B is launching fine when requested by Calibre, but then fails to open the .pdf file I want to view (and yet, viewer B works fine outside of Cailbre)

Quote:
Originally Posted by theducks View Post
The one that HAS been set (the always use tick box in Open With properties) in the OS....
Well... that exactly the reason for my question. Calibre is opening with viewer B even though the OS always uses A (after I set it as default)

Quote:
Originally Posted by theducks View Post

Double click on a PDF in Explorer... What opens the file, is what Calibre will use....
If I single click (it's Linux) on .pdf in file manage it opens (by default) with viewer A, and yet Calibre will not use viewer A

Quote:
Originally Posted by theducks View Post
...Don't want Calibre to use that one? Get and configure the 'Open With' plugin to choose the one you want.
you can add lines so there is an entry choice for each that you have:
A PDF
B PDF
C PDF
Thank you for that suggestion

Quote:
Originally Posted by eschwartz View Post
The latest version of calibre has its own Open With implementation, right-click on a format link in Book details.
Yes, I am not using the latest version. Might try updating Calibre

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.
bambuko is offline   Reply With Quote
Advert
Old 04-03-2015, 04:55 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 04-03-2015, 05:16 AM   #7
bambuko
Connoisseur
bambuko began at the beginning.
 
Posts: 62
Karma: 10
Join Date: Feb 2014
Device: Kobo mini, Kobo Clara HD
Thanks Kovid!
As usual you are spot on

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

bambuko is offline   Reply With Quote
Old 06-02-2015, 09:54 AM   #8
wlmb
Junior Member
wlmb began at the beginning.
 
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.
wlmb is offline   Reply With Quote
Old 06-02-2015, 11:04 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 06-05-2015, 10:51 AM   #10
wlmb
Junior Member
wlmb began at the beginning.
 
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.
wlmb is offline   Reply With Quote
Old 06-05-2015, 09:54 PM   #11
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
Quote:
Originally Posted by theducks View Post
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.

you can add lines so there is an entry choice for each that you have:

A PDF
B PDF
C PDF
Actually couple times Calibre messed up my viewer settings under Linux (installed it via Debian packages I think). Calibre became my default pdf viewer which was a terrible experience. I could not get rid of it, I tried every possible way under Linux to change it. I ended up wiping Calibre from the sytem and using manual zip method.
loviedovie is offline   Reply With Quote
Old 06-12-2015, 07:25 AM   #12
Future Science
Member
Future Science has a spectacular aura aboutFuture Science has a spectacular aura aboutFuture Science has a spectacular aura aboutFuture Science has a spectacular aura aboutFuture Science has a spectacular aura aboutFuture Science has a spectacular aura aboutFuture Science has a spectacular aura aboutFuture Science has a spectacular aura aboutFuture Science has a spectacular aura aboutFuture Science has a spectacular aura aboutFuture Science has a spectacular aura about
 
Posts: 23
Karma: 4388
Join Date: Jan 2013
Device: Kobo glo
Quote:
Originally Posted by wlmb View Post
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.
I have this same problem after a system update (I guess).

Last edited by Future Science; 07-28-2015 at 06:52 AM.
Future Science is offline   Reply With Quote
Old 09-12-2015, 11:51 AM   #13
bambuko
Connoisseur
bambuko began at the beginning.
 
Posts: 62
Karma: 10
Join Date: Feb 2014
Device: Kobo mini, Kobo Clara HD
Quote:
Originally Posted by kovidgoyal View Post
The version of xdg-open on your system cant parse file:// URLs with percent encoding correctly.
Would this be responsible for the message I get when click to view .pdf file?
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
bambuko is offline   Reply With Quote
Old 09-12-2015, 11:11 PM   #14
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-12-2015, 11:37 PM   #15
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:22 PM.


MobileRead.com is a privately owned, operated and funded community.