I'm a happy long-time Calibre user (thanks!). I'm running calibre on a up to date Lubuntu system. I recently decided to try to set calibre to auto-start on reboot. I created a file cps.service in /etc/systemd/system/ with the contents:
[Unit]
Description=Calibre-Web
[Service]
Type=simple
User=****
ExecStart=/opt/calibre/calibre
[Install]
WantedBy=multi-user.target
I enabled cps.service, started it, then checked status. The process failed to start, and I see:
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. ...
Searching for advice on the web, I saw recommendations to:
sudo apt install libxcb-cursor0
But when I ran that, the system said it was already installed and,
libxcb-cursor0 is already the newest version (0.1.4-1).
I'm at a dead end, based on what advice I can see online.
Like I say, the program runs fine when run from the GUI or as a simple "calibre" command in QTerminal, it's only while I am attempting to start it in systemd that I am getting an error.
Can anyone offer a suggestion? Thanks in advance!