You are not logged in.
1. Open Foliate
2. From the context menu in header bar, choose 'Library'
3. Click '+' icon to add book
4. From the file picker menu, choose a .epub file
5. Foliate hangs...
Console output:
$ foliate
(com.github.johnfactotum.Foliate:11075): Gjs-WARNING **: 15:50:42.350: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
main@resource:///com/github/johnfactotum/Foliate/js/main.js:478:24
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/usr/bin/foliate:9:17
** (com.github.johnfactotum.Foliate:11075): ERROR **: 15:51:15.813: GDK is not able to create a GL context: The current backend does not support OpenGL.$ pacman -Qi foliate
Name : foliate
Version : 2.6.4-3
Description : A simple and modern GTK eBook reader
Architecture : x86_64
URL : https://johnfactotum.github.io/foliate/
Licenses : GPL3
Groups : None
Provides : None
Depends On : gjs iso-codes webkit2gtk
Optional Deps : dictd: Offline dictionary support
espeak-ng: Text-to-speech support; also voice package needed
festival: Text-to-speech support; also voice package needed
gspell: Spell-checking support [installed]
hyphen: Auto-hyphenation support [installed]
tracker3 [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 4.97 MiB
Packager : Caleb Maclennan <alerque@archlinux.org>
Build Date : Tue Aug 22 00:30:09 2023
Install Date : Sat Oct 21 15:50:19 2023
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.2.1-arch1.2
OpenGL core profile shading language version string: 4.60
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.2.1-arch1.2
OpenGL shading language version string: 4.60
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.2.1-arch1.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix, GDK_BACKEND=x11 foliateLast edited by utkarsh_singh (2023-10-21 10:35:10)
Offline
This sounds like and upstream issue, not working properly with Wayland. I suspect your "workaround" is the only way to run it for now until they fix thing to work on Wayland. I suggest opening an upstream issue with the Foliate project with these details. If it turns out we're not building it with some option or we're missing some dependency I'm happy to fix the package, but at first blush that does not appear to be the case. If the upstream issues report suggests something with our packaging go ahead and open a bug report on the package (find it in packages and use the new bug link there) and I'll look into it.
Offline