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 10-02-2015, 05:01 AM   #1
kulo73
Junior Member
kulo73 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2015
Device: Sony PRS-T1
[Solved] Opening pdf / containing folder not working

Hi,

I got a problem opening my pdf. When I click on right side's menu I can open the pdf (see picture).
When double clicking on the books in the main windows or using context menu "open containing folder" or clicking on the right side on "Path: Click to open" I get error messages like below.

Any ideas?
Cheers

when clicking open containing folder:
"Die Adresse »file:///home/planb/Calibre-Bibliothek/Karnath,%20Hans%20O_/Neuropsychologie%20(71)« konnte nicht geöffnet werden.

Fehler beim Holen der Informationen für Datei »/home/planb/Calibre-Bibliothek/Karnath,%20Hans%20O_/Neuropsychologie%20(71)«: Datei oder Verzeichnis nicht gefunden."

when doubleclicking:
"Die Adresse »file:///home/planb/Calibre-Bibliothek/Karnath,%20Hans%20O_/Neuropsychologie%20(71)/Neuropsychologie%20-%20Karnath,%20Hans%20O_.pdf« konnte nicht geöffnet werden.

Fehler beim Holen der Informationen für Datei »/home/planb/Calibre-Bibliothek/Karnath,%20Hans%20O_/Neuropsychologie%20(71)/Neuropsychologie%20-%20Karnath,%20Hans%20O_.pdf«: Datei oder Verzeichnis nicht gefunden."
Attached Thumbnails
Click image for larger version

Name:	temp11.png
Views:	202
Size:	38.7 KB
ID:	142510  

Last edited by kulo73; 10-02-2015 at 07:20 AM.
kulo73 is offline   Reply With Quote
Old 10-02-2015, 05:44 AM   #2
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: 44,204
Karma: 23446406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
xdg-open on your system is broken, it is not handling encoded file:// URLs correctly. Fix it and your problems will go away.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-02-2015, 07:19 AM   #3
kulo73
Junior Member
kulo73 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2015
Device: Sony PRS-T1
Quote:
Originally Posted by kovidgoyal View Post
xdg-open on your system is broken, it is not handling encoded file:// URLs correctly. Fix it and your problems will go away.
Thank you for your fast help!

Problem seems XFCE specific (occured on Linix Mint 17.2 xfce 64bit)
Found the bug indeed in /usr/bin/xdg-open - "$' is missing a " ("$"')

If anybody else has the problem change
Code:
elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
to

Code:
elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$"' >/dev/null 2>&1; then DE=xfce;
cheers

Last edited by kulo73; 10-02-2015 at 07:25 AM.
kulo73 is offline   Reply With Quote
Old 10-02-2015, 11:59 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: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Nope, what you have done is disabled detection of xfce4.
As a result, xdg-open uses its own open_generic() fallback (which parses desktop files) instead of open_xfce() which calls in turn on exo-open (part of xfce, and the true cause of the problem).

It's not so much that xdg-open is broken, it's just designed to work with a bunch of broken desktop-specific openers -- half of which are broken, and xdg-open does nothing to fix the problem.
Some desktops work fine with xdg-open, if their branded opener plays nice with encoded file urls.



But hey, that's "fixing" it too -- there must be some reason why drop-in replacements for xdg-open are so popular.
Some people seem to think the founding principle of xdg-open is entirely flawed.

Last edited by eschwartz; 10-02-2015 at 01:24 PM.
eschwartz is offline   Reply With Quote
Old 10-02-2015, 12:12 PM   #5
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: 44,204
Karma: 23446406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC someone recently submitted a fix for exo-open so hopefully, XFCE using people will not suffer from this for too much longer.

EDIT: https://bugzilla.redhat.com/show_bug.cgi?id=1246383

Last edited by kovidgoyal; 10-02-2015 at 12:18 PM.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura Reader not opening PDF ChrisK91 Kobo Reader 4 04-19-2015 04:22 PM
some PDF files not opening Mosqueteir0 enTourage eDGe 5 10-04-2012 06:19 AM
Some PDF files not opening on vox aycn602 Kobo Tablets 3 11-20-2011 05:18 PM
ADE not opening a pdf? echoleaf Reading and Management 0 10-06-2009 06:53 PM
Large pdf opening pthwaite iRex 25 10-19-2008 02:38 PM


All times are GMT -4. The time now is 04:20 PM.


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