Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-10-2014, 12:01 AM   #16
wayt
Junior Member
wayt began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2014
Device: Raspberry Pi
This fix works on Raspbian

Quote:
Originally Posted by flups View Post
I found a solution for Ubuntu 13.04.
  1. Open /usr/bin/xdg-open as root
  2. go to the sub routine open_lxde()
  3. After the line
    local file="$(echo "$1" | sed 's%^file://%%')"
    add the following two lines:
    local printf=/usr/bin/printf
    file="$($printf "$(echo "$file" | sed -e 's@%\([a-f0-9A-F]\{2\}\)@\\x\1@g')")"

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.pdf
becomes
/home/lib/Isaac%20Asimov.pdf
This 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!
Thanks, Flups, this fix worked for me on a Raspberry Pi running Raspbian.
wayt is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 09:11 AM.


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