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.
|