View Single Post
Old 02-07-2024, 11:52 PM   #5
h68
Junior Member
h68 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2024
Device: laptop
Thumbs up Thank you!

Quote:
Originally Posted by 3QVKwyNT9hR849t7 View Post
Unfortunately, Calibre once again refuses to adapt to modern standards, and until it does so, you are going to need to hack things.

First, try launching it as such:

```
QT_QPA_PLATFORM=xcb calibre
```
If the viewer works fine there, proceed with the following -

Run the following to get the full path to the executable. That is /usr/bin/calibre on my system.

```
command -v calibre
```

Then create /usr/local/bin/calibre with the following content:

```
#!/bin/bash

QT_QPA_PLATFORM=xcb /usr/bin/calibre "$@"
```

And give it execute permission

```
chmod +x /usr/local/bin/calibre
```

That should be all you need to hijack the executable and force XWayland and have Calibre work correctly again, make sure to remove it when hell freezes over.
--
The workaround works perfectly!
Thank you very much.
PS : For the people being emotional on Wayland vs X11. Your comments are a waste of time. What we want is Calibre working correctly under Wayland nothing more, nothing less.
h68 is offline   Reply With Quote