|  03-15-2012, 03:35 AM | #1 | 
| Junior Member  Posts: 5 Karma: 10 Join Date: Mar 2012 Device: None | 
				
				External viewers, various Linux Desktops
			 
			
			Howdy, all; Having some trouble with Calibre calling external viewers under Linux. If I'm using a KDE interface, I can see external viewers for PDF, ODT, HTML, whatever -- just fine. If I'm using the LXDE interface, nothing is called; I cannot use any external viewer. Each external program is properly set-up and associated with the proper types of files (both by filename and by 'magic number'). This is the same physical machine; just the user interface (KDE/LXDE) is changing. Is this a known issue? Is there a workaround? Thanks! | 
|   |   | 
|  03-15-2012, 04:10 AM | #2 | 
| reader            Posts: 6,977 Karma: 5183568 Join Date: Mar 2006 Location: Mississippi, USA Device: Kindle 3, Kobo Glo HD | 
			
			I assume this can be fixed by getting the filename associations right under LXDE.  Are you using PCManFM to set the file association?  It claims Freedesktop.org interoperability, which is usually all that is needed under Linux for most apps. In any case, a work around would be to use the Open With GUI Plugin. Once installed, by default (I think) it is included in the context menu for the library (right click on an ebook) but you can use Preferences -> Toolbar to change this. You can add any app to any ebook format. This is also a way to use the internal viewer for a format via "View", but have the option for an external viewer via "Open with" Last edited by wallcraft; 03-15-2012 at 04:16 AM. | 
|   |   | 
| Advert | |
|  | 
|  03-15-2012, 10:50 AM | #3 | 
| Junior Member  Posts: 5 Karma: 10 Join Date: Mar 2012 Device: None | 
			
			Hi, Wallcraft; As I described in the OP, all file associations under LXDE work fine -- and this includes using pcmanfm. Is there some .config or .rc file for Calibre that specifies the associated file viewers? | 
|   |   | 
|  03-15-2012, 10:56 AM | #4 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 It is up to the OS if the tick is missing. | |
|   |   | 
|  03-15-2012, 11:30 AM | #5 | 
| Junior Member  Posts: 5 Karma: 10 Join Date: Mar 2012 Device: None | 
			
			post deleted in error
		 Last edited by fionnbharr; 03-15-2012 at 11:37 AM. | 
|   |   | 
| Advert | |
|  | 
|  03-15-2012, 11:32 AM | #6 | |
| Junior Member  Posts: 5 Karma: 10 Join Date: Mar 2012 Device: None | Quote: 
 Let me clarify what I said in the OP: the external viewers do indeed work under Linux. If I use the KDE, start Calibre, and try to view, say, a PDF file from the library, then okular is called and it shows the PDF file just fine. If I use Gnome, start Calibre, and view the PDF, then okular is also called (it's my preference over the Gnome-default evince), and I can view it just dandy. If I use LXDE, start Calibre, and view the PDF, something doesn't work: an Error box with the message "No such file or directory" is displayed. Under LXDE, pcmanfm displays PDFs just fine -- okular is selected as the preferred PDF viewer. This has nothing to do with using the tick-box to choose the internal Calibre viewer or not; it also has nothing to do with the OS, since the OS isn't changing between using KDE or LXDE. The error message "No such file or directory" indicates that Calibre is looking for *something*, but it's misdirected to a nonexistent file or directory. How can I change that behavior? Thanks! | |
|   |   | 
|  03-15-2012, 11:51 AM | #7 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			I don't experience the same behavior running Linux Mint 12 LXDE. As long as calibre isn't configured to view the filetype with its internal viewer, it opens fine in whatever is configured as the default app for the system. ODT, PDF, RTF or whatever. Granted... I only ever use one desktop environment at a time per system, so I don't know what (if any) quirks might arise from switching between multiple DE's on the same system. I just know the issue doesn't seem to be endemic to LXDE itself.
		 | 
|   |   | 
|  03-15-2012, 08:37 PM | #8 | ||
| reader            Posts: 6,977 Karma: 5183568 Join Date: Mar 2006 Location: Mississippi, USA Device: Kindle 3, Kobo Glo HD | Quote: 
 Quote: 
 | ||
|   |   | 
|  03-16-2012, 01:41 AM | #9 | 
| Junior Member  Posts: 5 Karma: 10 Join Date: Mar 2012 Device: None | 
			
			Interesting ... the /usr/share/applications/defaults.list simply isn't present  (where did it go?), and neither is ~/.local/share/applications/defaults.list.   And according to the latest documentation I have, it seems that xdg-open is broken. (I'm using Arch, so see here: https://wiki.archlinux.org/index.php...it_should_work ) I'm sure there's a workaround somewhere. I'm working on it. Last edited by fionnbharr; 03-16-2012 at 01:42 AM. Reason: fix link | 
|   |   | 
|  05-02-2013, 03:00 AM | #10 | 
| Junior Member  Posts: 2 Karma: 10 Join Date: May 2013 Device: Kindle Touch | 
			
			Hi, I am seeing the same problem too: LXDE on Debian, external viewers won't open (in my case pdf documents). Juts wondering if you actually found a workaround - apart from using Calibre's internal viewer which I found to take a very long time to start when loading pdf files. | 
|   |   | 
|  05-02-2013, 04:04 AM | #11 | 
| US Navy, Retired            Posts: 9,897 Karma: 13806776 Join Date: Feb 2009 Location: North Carolina Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen | |
|   |   | 
|  05-03-2013, 01:17 AM | #12 | |
| Junior Member  Posts: 2 Karma: 10 Join Date: May 2013 Device: Kindle Touch | Quote: 
 Cheers. | |
|   |   | 
|  05-03-2013, 01:31 AM | #13 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Since open containing folder is also delegated to your OS and your OS is broken that's hardly surprising. You need to fix xdg-open for your desktop, or switch to a non-broken desktop.
		 | 
|   |   | 
|  05-03-2013, 01:44 AM | #14 | |
| Handy Elephant            Posts: 1,737 Karma: 26785684 Join Date: Dec 2009 Location: Southern Sweden, far out in the quiet woods Device: Samsung Galaxy Tab S8 Ultra | 
			
			See this old thead for more hints: https://www.mobileread.com/forums/showthread.php?t=84767 Also I found this, might be helpful: https://wiki.archlinux.org/index.php/LXDE Quote: 
 Last edited by Adoby; 05-03-2013 at 01:59 AM. | |
|   |   | 
|  12-29-2013, 05:38 PM | #15 | 
| Junior Member  Posts: 1 Karma: 10 Join Date: Jan 2012 Device: prs-350 | 
			
			I found a solution for Ubuntu 13.04. 
 The problem is, that the lxde_open() is quite of buggy. This sub tries to convert an URI that starts with "file://" to an absolute path, but I fails to deal with special chars like %20. So file:///home/lib/Isaac%20Asimov.pdfbecomes /home/lib/Isaac%20Asimov.pdfThis is not a valid file name. So the known "file or directory not found"-window appears. I c&p the above two lines from the "open_generic" subroutine where this is done right. Thanks to Kovod for the hint with xdg-open. "Guten Rutsch" from Germany and a happy new year! Last edited by flups; 01-18-2014 at 04:41 PM. | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Pdf viewers | cindiaugustine | Kobo Tablets | 2 | 11-15-2011 07:38 PM | 
| This really is going to remove the need for desktops | Dopedangel | Android Devices | 1 | 01-06-2011 06:08 AM | 
| 804 viewers of Kindle Forum! | daffy4u | Amazon Kindle | 7 | 12-25-2010 07:52 PM | 
| PRS-600 Linux kernel doesn't detect PRS-600 external memory | sinkpen | Sony Reader | 4 | 10-30-2009 01:50 PM | 
| Poll:Will PDAs be Relevant when Desktops Fit in Your Pocket? | Bob Russell | Alternative Devices | 8 | 06-16-2005 09:57 AM |