mate-desktop / atril

A document viewer for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
203 stars 62 forks source link

I can't create bookmarks in Atril #559

Open subado opened 2 years ago

subado commented 2 years ago

Expected behaviour

I can create bookmarks in Atril

Actual behaviour

I can't create bookmarks in Atril

Steps to reproduce the behaviour

Open Atril and try to create a bookmark in the document. Also, the "Add bookmark" button is not active. screenshot-31 01 22-07:26:26

Package version

1.26

Linux Distribution

Void

rbuj commented 2 years ago

The bookmarks work properly.

Test:

Captura de pantalla 2022-01-31 a les 10 10 52
subado commented 2 years ago

2022-01-31-18-21-42

rbuj commented 2 years ago
$ wget https://www.x.org/docs/X11/xlib.pdf
$ LANG=C atril xlib.pdf

I couldn't reproduce your issue on Fedora 35 up to date. Add button is active on the screenshot below.

Captura de pantalla a 2022-01-31 15-53-26

Please, can you add the information needed to reproduce the issue? Please, can you attach any useful log for finding where the problem is coming from? Thank you so much.

subado commented 2 years ago

I do not know what logs can help, so could you tell me what exactly to provide me?

Uroc327 commented 2 years ago

Same problem here. Void Linux, Atril 1.26.0 with SyncTex (null) and poppler/cairo 21.07.0. The Add button in the bookmark sidemenu as well as in the top bar is greyed out. No error messages are visible in the command line.

Possibly some packaging mistake. Is there a missing library or configuration that could cause this?

rbuj commented 2 years ago

The bookmarks depends on gio-metadata:

$ LANG=C gio set xlib.pdf metadata::atril::bookmarks "[(14, 'Page 15'), (15, 'Page 16'), (17, 'Page 18')]"
$ LANG=C gio info --attributes=metadata::atril::bookmarks xlib.pdf 
uri: file:///home/robert/Baixades/xlib.pdf
local path: /home/robert/Baixades/xlib.pdf
unix mount: /dev/sda2[/home] /home btrfs rw,relatime,seclabel,compress=zstd:1,ssd,space_cache,subvolid=256,subvol=/home
attributes:
  metadata::atril::bookmarks: [(14, 'Page 15'), (15, 'Page 16'), (17, 'Page 18')]
$ G_MESSAGES_DEBUG=all atril xlib.pdf 
(atril:88544): GLib-GIO-DEBUG: 15:37:57.506: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
(atril:88544): GLib-DEBUG: 15:37:57.597: unsetenv() is not thread-safe and should not be used after threads are created
(atril:88544): Gtk-DEBUG: 15:37:57.597: Connecting to session manager
(atril:88544): GLib-GIO-DEBUG: 15:37:57.769: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
(atril:88544): dconf-DEBUG: 15:37:57.769: watch_fast: "/org/mate/desktop/interface/" (establishing: 0, active: 0)
(atril:88544): dconf-DEBUG: 15:37:57.774: watch_established: "/org/mate/desktop/interface/" (establishing: 1)
(atril:88544): dconf-DEBUG: 15:37:57.854: watch_fast: "/org/mate/atril/" (establishing: 0, active: 0)
(atril:88544): dconf-DEBUG: 15:37:57.856: watch_established: "/org/mate/atril/" (establishing: 1)
(atril:88544): dconf-DEBUG: 15:37:57.878: watch_fast: "/org/mate/atril/default/" (establishing: 0, active: 0)
(atril:88544): dconf-DEBUG: 15:37:57.885: watch_established: "/org/mate/atril/default/" (establishing: 1)
(atril:88544): dconf-DEBUG: 15:37:58.740: watch_fast: "/org/mate/desktop/lockdown/" (establishing: 0, active: 0)
(atril:88544): dconf-DEBUG: 15:37:58.742: watch_established: "/org/mate/desktop/lockdown/" (establishing: 1)
(atril:88544): dconf-DEBUG: 15:38:01.148: unwatch_fast: "/org/mate/desktop/lockdown/" (active: 1, establishing: 0)
(atril:88544): dconf-DEBUG: 15:38:01.149: unwatch_fast: "/org/mate/desktop/interface/" (active: 1, establishing: 0)
(atril:88544): dconf-DEBUG: 15:38:01.150: unwatch_fast: "/org/mate/atril/" (active: 1, establishing: 0)
(atril:88544): dconf-DEBUG: 15:38:01.150: unwatch_fast: "/org/mate/atril/default/" (active: 1, establishing: 0)
(atril:88544): dconf-DEBUG: 15:38:01.283: sync
subado commented 2 years ago
$ LANG=C gio set xlib.pdf metadata::atril::bookmarks "[(14, 'Page 15'), (15, 'Page 16'), (17, 'Page 18')]"
gio: Setting attribute metadata::atril::bookmarks not supported
$ LANG=C gio info --attributes=metadata::atril::bookmarks xlib.pdf
uri: file:///home/subado/Downloads/xlib.pdf
local path: /home/subado/Downloads/xlib.pdf
unix mount: /dev/sda4 /home btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/
attributes:
$ G_MESSAGES_DEBUG=all atril xlib.pdf
(atril:11489): GLib-GIO-DEBUG: 13:40:22.061: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
(atril:11489): GLib-DEBUG: 13:40:22.087: unsetenv() is not thread-safe and should not be used after threads are created
(atril:11489): Gtk-DEBUG: 13:40:22.087: Connecting to session manager
(atril:11489): Gtk-DEBUG: 13:40:22.087: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned
(atril:11489): Gtk-DEBUG: 13:40:22.087: Failed to get the Xfce session proxy: The name org.xfce.SessionManager is not owned
(atril:11489): GLib-GIO-DEBUG: 13:40:22.111: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
(atril:11489): dconf-DEBUG: 13:40:22.111: watch_fast: "/org/mate/desktop/interface/" (establishing: 0, active: 0)
(atril:11489): dconf-DEBUG: 13:40:22.111: watch_established: "/org/mate/desktop/interface/" (establishing: 1)
(atril:11489): dconf-DEBUG: 13:40:22.117: watch_fast: "/org/mate/atril/" (establishing: 0, active: 0)
(atril:11489): dconf-DEBUG: 13:40:22.117: watch_established: "/org/mate/atril/" (establishing: 1)
(atril:11489): dconf-DEBUG: 13:40:22.120: watch_fast: "/org/mate/atril/default/" (establishing: 0, active: 0)
(atril:11489): dconf-DEBUG: 13:40:22.121: watch_established: "/org/mate/atril/default/" (establishing: 1)
(atril:11489): dconf-DEBUG: 13:40:22.145: watch_fast: "/org/mate/desktop/lockdown/" (establishing: 0, active: 0)
(atril:11489): dconf-DEBUG: 13:40:22.146: watch_established: "/org/mate/desktop/lockdown/" (establishing: 1)
(atril:11489): dconf-DEBUG: 13:40:24.251: unwatch_fast: "/org/mate/desktop/lockdown/" (active: 1, establishing: 0)
(atril:11489): dconf-DEBUG: 13:40:24.251: unwatch_fast: "/org/mate/desktop/interface/" (active: 1, establishing: 0)
(atril:11489): dconf-DEBUG: 13:40:24.251: unwatch_fast: "/org/mate/atril/" (active: 1, establishing: 0)
(atril:11489): dconf-DEBUG: 13:40:24.251: unwatch_fast: "/org/mate/atril/default/" (active: 1, establishing: 0)
(atril:11489): dconf-DEBUG: 13:40:24.259: sync
nivit commented 1 year ago

Hi, I don't know if that can help, but I had the same issue under FreeBSD, but only if MATE was not installed. I solved the issue by installing gvfs.