Running calibre ver 4.23 or ver 5.0.1 in Fossapup64_9.5
Like today's constantly changing web browser requirements, newer calibre software
requires newer support software !
(Note: calibre version 3.x uses the qt4 framework but version 4.x and 5.x
and newer requires qt5.)
It is always a good idea to make a backup copy of your Puppy system (savefile, etc.)
before making changes !
Trying calibre 4.23 to view an ebook from my existing calibre database, gives the error message:
...... Running as root without --no-sandbox is not supported ....
I found I could use a simple script to make calibre version 4.23
and newer work (somewhat like the apulse firefox script technique)
Note: Fossapup64_9.5 Quickpet now installs the latest calibre version: 5.0.1
Trying calibre 5.0.1 ebook-viewer to display an ebook, gives the error message:
...... Failed to connect to DBUS session bus .....
...... Not Supported .... set your DBUS_SESSION_BUS_ADDRESS instead ....
I found an additional line is needed in the simple script to make calibre
version 5.01 work.
These simple script options were suggested by hints here:
https://www.mobileread.com/forums/showt ... p?t=324079
and here: https://stackoverflow.com/questions/476 ... in-booting
I made two scripts, one for calibre and the second for its ebook-viewer and
put the scripts in /opt (rather than /opt/calibre in case future installs of
calibre clear out the /opt/calibre directory.)
no-sandbox-calibre.sh
#!/bin/sh
cd /opt/calibre
export $(dbus-launch)
QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" calibre "$@"
no-sandbox-ebook-viewer.sh
#!/bin/sh
cd /opt/calibre
QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" ebook-viewer "$@"
I dragged each of these scripts from /opt to my ROX pinboard (desktop).
Now, I can drag an individual data file (.txt, .mobi, or .epub) to the
no-sandbox-calibre.sh ROX icon for possible changing the book's cover
picture and/or do an ebook format conversion and/or viewing the
result of the data conversion.
And I can drag an individual data file (.mobi or .epub) to the
no-sandbox-ebook-viewer.sh ROX icon to be able to display and read that ebook.
My use of calibre and its ebook-viewer are simple, so someone else may
find more errors and/or have a better way of making calibre 4.23
and/or calibre 5.0.1 work in Fossapup64_9.5.
Hope this helps someone.