Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2019, 07:12 AM   #1
cikasole
Junior Member
cikasole began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2019
Device: none
New ebook-viewer in Linux - problem running as root

Hi,

After updating Calibre to version 4.20, I can not start ebook-viewer any more.

The problem is related to running the program with root privilege. I use Linux as root. I know it's not recommended, but there are reasons for that. Long story.
I can not use sudo or gksu to another users, it's too complicated, all my files are owned by root, don't ask me to explain.

When started directly from CLI, ebook-viewer gives the following:
--------------------------------------------
# ebook-viewer
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[11856:11856:1021/130418.923392:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
--------------------------------------------
Also, when try --no-sandbox switch:
ebook-viewer: error: no such option: --no-sandbox
--------------------------------------------

What can be done regarding this problem?
TIA

cikasole
cikasole is offline   Reply With Quote
Old 10-21-2019, 07:35 AM   #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: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Do not run as root, and if you really insist on it then you need to provide that argument to qt webengine not calibre which you can do via an env var https://doc.qt.io/qt-5/qtwebengine-debugging.html
kovidgoyal is offline   Reply With Quote
Advert
Old 10-21-2019, 08:17 AM   #3
cikasole
Junior Member
cikasole began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2019
Device: none
Thank you on your very quick answer.

I can agree on that it's qt related problem, but wander why it surfaced only after Calibre upgrade? Qt didn't change on my system. And it is GTK based, BTW. Also, as far as I can see, new ebook-viewer is the only program on my system having this sort of problem. Was the old viewer also qt based?

Thank you for the link. I checked it, but I'm afraid I don't understand it well. It mentions --no-sandbox switch, but I don't get how to use it - with what command? Command ebook-viewer does not accept it. Also, the only environment variable mentioned in that text seems to be Chromium (and debugging) related. Doesn't seem very similar to my case.

I'd appreciate if you could be more specific with what you suggested.

TIA agin and best regards,
cikasole is offline   Reply With Quote
Old 10-21-2019, 08:22 AM   #4
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: 44,034
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" ebook-viewer
kovidgoyal is offline   Reply With Quote
Old 10-21-2019, 09:32 AM   #5
cikasole
Junior Member
cikasole began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2019
Device: none
Thank you, I'll try this.
cikasole is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux/Unix signal to tell ebook-viewer to reload currnenly viewed file fedfan Devices 3 03-01-2019 07:51 AM
ebook viewer : problem with mixed pages. Images and text tekkkkkk Calibre 1 12-25-2015 10:26 AM
ebook viewer scrolling problem cvlowe Calibre 6 09-02-2014 01:39 PM
Problem with font & background colors on the Ebook Viewer darthktulu Calibre 3 10-27-2013 11:24 PM
PRS-T1 do you think running the minimal root twice damages? multiprose Sony Reader 1 01-20-2012 07:38 PM


All times are GMT -4. The time now is 04:52 PM.


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