Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap: Unable to open epub from file explorer or command line #1153

Closed
LaurentBxl opened this issue Nov 24, 2023 · 0 comments · Fixed by #1187
Closed

Snap: Unable to open epub from file explorer or command line #1153

LaurentBxl opened this issue Nov 24, 2023 · 0 comments · Fixed by #1187
Labels
bug Something isn't working help wanted Extra attention is needed snap

Comments

@LaurentBxl
Copy link

LaurentBxl commented Nov 24, 2023

Describe the bug

When I double click on an EPUB file in the file explorer or use the command "foliate ... .epub", it fails to open the file

Foliate is installed with snap

The error log is:

** (com.github.johnfactotum.Foliate:58466): WARNING **: 18:51:59.997: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied

** (com.github.johnfactotum.Foliate:58466): WARNING **: 18:51:59.997: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied

(process:58624): GLib-GIO-WARNING **: 18:52:00.075: GDBus.Error:org.freedesktop.portal.Error.NotAllowed: This call is not available inside the sandbox

** (process:58632): WARNING **: 18:52:00.298: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied

** (process:58632): WARNING **: 18:52:00.298: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied

** (process:58632): WARNING **: 18:52:00.299: Failed to get atspi registered event listeners: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.48" (uid=1000 pid=58632 comm="/usr/lib/x86_64-linux-gnu/webkitgtk-6.0/WebKitWebP" label="snap.foliate.foliate (enforce)") interface="org.a11y.atspi.Registry" member="GetRegisteredEvents" error name="(unset)" requested_reply="0" destination=":1.3" (uid=1000 pid=2268 comm="/usr/libexec/at-spi2-registryd --use-gnome-session" label="unconfined")

To Reproduce
Steps to reproduce the behavior:

  1. use command line to open a file
  2. See error

Workaround
Installing the snap in --devmode solves the issue

Version:

  • Foliate version: 3.0.1
  • OS/Distribution and version: Ubuntu 22.04.3 LTS
  • Desktop environment: gnome 42.9
  • Installation method: snap
@LaurentBxl LaurentBxl added the bug Something isn't working label Nov 24, 2023
@LaurentBxl LaurentBxl changed the title Unable to open epub from file explorer or command line Unable to open epub from file explorer or command line when snap installed in strict mode Nov 24, 2023
@johnfactotum johnfactotum added the help wanted Extra attention is needed label Dec 6, 2023
@johnfactotum johnfactotum pinned this issue Dec 13, 2023
@johnfactotum johnfactotum changed the title Unable to open epub from file explorer or command line when snap installed in strict mode Snap: Unable to open epub from file explorer or command line Dec 13, 2023
@johnfactotum johnfactotum unpinned this issue Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed snap
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants