Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2023, 06:38 PM   #1
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,235
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Successfully running calibre 7.x in Flatpack on ChromeOS

This is based on https://shkspr.mobi/blog/2023/01/how...atpak-wayland/

I thought I'd document the steps required to succesfully run the flatpack version of calibre 7.x on a ChromeBook.

Ensure ChromeOS linux environment up to date
  • sudo apt update
  • sudo apt upgrade
Install flatpak
  • sudo apt install flatpak
Add standard flatpak repositoryShutdown and restart Linux environment
Install calibre
  • flatpak install com.calibre_ebook.calibre
Launch calibre
  • flatpak run com.calibre_ebook.calibre
As expected calibre dies with message
  • The Wayland connection broke. Did the Wayland compositor die?
Install flatseal
  • flatpak install com.github.tchx84.Flatseal
Run flatseal
  • flatpak run com.github.tchx84.Flatseal
Select calibre and the Show details button
  • Initial settings
  • Disable the X11 windowing system and Wayland windowing system options

Launch calibre
  • flatpak run com.calibre_ebook.calibre
No wayland errors

Additionally calibre (and flatseal) should be found in the ChromeOS Linux apps folder.

What is not currently known is whether the flatseal edits will need to be redone on each update.
Attached Thumbnails
Click image for larger version

Name:	flatpak_calibre_initial.jpg
Views:	251
Size:	43.5 KB
ID:	204953   Click image for larger version

Name:	flatpak_calibre_after_change.jpg
Views:	245
Size:	42.1 KB
ID:	204954  
PeterT is offline   Reply With Quote
Old 11-27-2023, 10:39 PM   #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: 45,115
Karma: 27110892
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Weird, why would you need to disable both? It must be using either X11 or Wayland. I am guessing the difference between calibre 7 and 6 is that Qt was updated and now uses wayland which is broken on chromebooks.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-27-2023, 11:00 PM   #3
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,235
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
For the non flatpak install I used
sudo apt install libopengl0 libxcb-cursor0 libnss3

followed by the standard Kovid supplied instructions
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin

I then had to set the variable QT_QPA_PLATFORM to xcb
QT_QPA_PLATFORM - On Linux set this to wayland to force calibre to use Wayland and xcb to force use of X11.

so
QT_QPA_PLATFORM=xcb calibre

Please note I've only done limited testing in either case.
PeterT is offline   Reply With Quote
Old 11-27-2023, 11:04 PM   #4
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,235
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by kovidgoyal View Post
Weird, why would you need to disable both? It must be using either X11 or Wayland. I am guessing the difference between calibre 7 and 6 is that Qt was updated and now uses wayland which is broken on chromebooks.
Just tested. Just disabling the wayland setting is sufficient.
PeterT is offline   Reply With Quote
Old 11-27-2023, 11:15 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: 45,115
Karma: 27110892
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Good to know, thanks. So yet another case of Wayland breaking things.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-03-2025, 09:24 PM   #6
ReaderFeeder
Junior Member
ReaderFeeder began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2020
Device: none
Following instructions by PeterT for installing the non-flatpack version of Calibre 7.x I could start it from the Terminal but starting it from the icon in the Chrome OS start menu still failed until I did the following to add the environment variable:

from the Linux Terminal edit the file

/usr/share/applications/calibre-gui.desktop

I used vim, so:

sudo vim /usr/share/applications/calibre-gui.desktop

change the line:
Exec=calibre --detach %U

to read:
Exec=env QT_QPA_PLATFORM=xcb calibre --detach %U

If you haven't used vim or vi before it's a bit of a learning curve. type an i to enter insert mode, a q to quit insert mode and then
:wq
to write and quit vim.
ReaderFeeder is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre for ChromeOS NSILMike Calibre 20 01-04-2025 11:49 PM
Running calibre.exe --shutdown-running-calibre does *NOT* terminate the E-book Viewer MReader67 Calibre 4 06-12-2023 01:53 PM
Linux Flatpack question barrettloganj13 Calibre 6 06-03-2023 06:45 AM
Update Calibre on ChromeOS Patricia1066 Devices 3 07-23-2022 04:46 PM
Touch Python/Pygame successfully running on Kobo Touch KevinShort Kobo Developer's Corner 18 10-24-2012 03:08 PM


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


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