How to debug evince's inability to set custom keyboard accelerators?
I've been trying to debug Evince's inability to set
custom keyboard shortcuts, more specifically I would like to set
View Options -> Continuous to be toggled by 'c'.
My DE is XFCE and I have appropriately made this possible
by Settings -> Settings Editor -> xsettings -> Gtk -> CanChangeAccels
(or Settings -> Appearance -> Settings -> Enable editable accelerators).
When after that I've tried to set the keyboard accelerator by hovering
the mouse over that option and pressing another key combination, say
'ctrl-[', as 'c' it's already set to toggle continuous when the
View Options menu is down and that I could change that by locating
the accels file later on and edit, it didn't went as expected.
So, the next step was to launch evince from CLI to see if any output at
all would have been generated there. Nothing.
Then I thought about locating that accels file by:
$ find ~ -iname "*evince*" -iname "*accel*"
which yielded nothing.
I then downloaded debian's source and tried to pass --enable-debug to
the build process by adding it under the DEB_CONFIGURE_EXTRA_FLAGS of
debian/rules file. The package would then not build leading reporting
some inconsistencies between libevdocument3-4 symbol files, for which
I've created a bug report here:
The package would eventually now build but even after that version was
installed no debuggable output was being produced when trying to launch
evince as follows:
$ EV_DEBUG=1 evince qux.djvu
nothing on the console.
So then I've decided to try to see why there were no evince accels file
and following what I've read in the source I have decided to do:
$ mkdir ~/.config/evince
after a usual evince launch I've noticed that it would now contain an
accels file which it's contents are shown here:
Since this is not the first time I'm having trouble with evince, I had
an accels file backed-up to a remote machine from which I've pulled it
and replaced the created accels, which would now contain:
But then after launching evince it would return to the same state again.