You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot simply (and safely) override default keymaps by plugins #2584
I'm afraid the fix doesn't work for me. I assigned shortcuts to two plugins (darktable and gimp) and neither is working. Nor did Geeqie warn me that one of them (shift-g) was already assigned to other action (grayscale).
Edit: sorry, apparently problem lies elsewhere: keystroke converter doesn't work correctly for combinations shift-x. It just produces uppercase letter X, instead of <Shift>x. When I changed it by hand, the shortcuts work now fine. The other part of remark is still valid though. Geeqie didn't complain that <Shift>g was already assigned.
Seems to be fine now, thanks. However I notice another problem with preferences window (probably unrelated though): notice weird transparent borders on the windows on the screenshot below, as if window content didn't fit the full window:
It gets worse... trying to reassign duplicate shortcut gives segfault:
Thread 1 "geeqie" received signal SIGSEGV, Segmentation fault.
0x00007ffff7710690 in ?? () from /usr/lib64/libgtk-4.so.1
(gdb) bt
#0 0x00007ffff7710690 in ??? () at /usr/lib64/libgtk-4.so.1
#1 0x00007ffff7710f15 in ??? () at /usr/lib64/libgtk-4.so.1
#2 0x00007ffff76ecf76 in ??? () at /usr/lib64/libgtk-4.so.1
#3 0x00007ffff76ed8ad in ??? () at /usr/lib64/libgtk-4.so.1
#4 0x00007ffff76ed969 in ??? () at /usr/lib64/libgtk-4.so.1
#5 0x00007ffff789d557 in ??? () at /usr/lib64/libgtk-4.so.1
#6 0x00007ffff701d931 in ??? () at /usr/lib64/libgobject-2.0.so.0
#7 0x00007ffff7033fb4 in ??? () at /usr/lib64/libgobject-2.0.so.0
#8 0x00007ffff703ad78 in g_signal_emit_valist () at /usr/lib64/libgobject-2.0.so.0
#9 0x00007ffff703ae4b in g_signal_emit () at /usr/lib64/libgobject-2.0.so.0
#10 0x00007ffff756d5dd in ??? () at /usr/lib64/libgtk-4.so.1
#11 0x00007ffff756bd41 in ??? () at /usr/lib64/libgtk-4.so.1
#12 0x00007ffff76cfef7 in ??? () at /usr/lib64/libgtk-4.so.1
#13 0x00007ffff75e75e3 in ??? () at /usr/lib64/libgtk-4.so.1
#14 0x00007ffff789d557 in ??? () at /usr/lib64/libgtk-4.so.1
#15 0x00007ffff793d5b9 in ??? () at /usr/lib64/libgtk-4.so.1
#16 0x00007ffff701d931 in ??? () at /usr/lib64/libgobject-2.0.so.0
#17 0x00007ffff7033fb4 in ??? () at /usr/lib64/libgobject-2.0.so.0
#18 0x00007ffff703ad78 in g_signal_emit_valist () at /usr/lib64/libgobject-2.0.so.0
#19 0x00007ffff703ae4b in g_signal_emit () at /usr/lib64/libgobject-2.0.so.0
#20 0x00007ffff79412e6 in ??? () at /usr/lib64/libgtk-4.so.1
#21 0x00007ffff78a54f3 in ??? () at /usr/lib64/libgtk-4.so.1
#22 0x00007ffff6f06d95 in ??? () at /usr/lib64/libglib-2.0.so.0
#23 0x00007ffff6f0a757 in ??? () at /usr/lib64/libglib-2.0.so.0
#24 0x00007ffff6f0af10 in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#25 0x00007ffff71615ed in g_application_run () at /usr/lib64/libgio-2.0.so.0
#26 0x00005555555d1e3d in main (argc=1, argv=0x7fffffffd578) at ../src/main.cc:1013
It's enough to try to define a duplicate shortcut and click "replace" in the popup warning about duplicate.
Making the action names selectable would be useful at this moment.
After finding and clearing the default assignment (toggle tree view in this example), the new keystroke works, but the menu does not show the hint, even after restart Geeqie.
Making the action names selectable would be useful at this moment.
I see this as a problem that only happens once - and then the user fixes it. Any other duplicates will be trapped by Geeqie as the user tries to make them.
Please make a separate feature request for this.
After finding and clearing the default assignment (toggle tree view in this example), the new keystroke works, but the menu does not show the hint, even after restart Geeqie.
After finding and clearing the default assignment (toggle tree view in this example), the new keystroke works, but the menu does not show the hint, even after restart Geeqie.
I do not see this problem.
My imprecision: hints appear in the main menu, as opposed to the context menu.
I tried to ask LLM why plugin menu items do not contain shortcut hint since 4c217ab (pointed by git bisect). First it suggested a label modification in plugins_menu_populate, which caused a duplicated hints in main menu items. Then I got the following comment, not sure if worth mention 😉
The accelerator registration that was removed needs to happen for both the editor plugins AND to be preserved across config reloads. The fix should be in ensuring editor_plugin_accel_register() is called at the right times (which the commit actually does via editor_plugin_accels_reload() in preferences.cc).
The keyboard hints should appear automatically through GTK's accelerator system, not by modifying labels. If they're still missing, the problem is that editor_plugin_accel_register() isn't being called early enough or frequently enough.
Activity
Part fix #2584; Cannot simply (and safely) override default keymaps b…
tomaszg7 commentedon Sep 2, 2026
I'm afraid the fix doesn't work for me. I assigned shortcuts to two plugins (darktable and gimp) and neither is working. Nor did Geeqie warn me that one of them (shift-g) was already assigned to other action (grayscale).
Edit: sorry, apparently problem lies elsewhere: keystroke converter doesn't work correctly for combinations shift-x. It just produces uppercase letter
X, instead of<Shift>x. When I changed it by hand, the shortcuts work now fine. The other part of remark is still valid though. Geeqie didn't complain that<Shift>gwas already assigned.Fix #2584: Cannot simply (and safely) override default keymaps by plu…
caclark commentedon Sep 2, 2026
@tomaszg7
Everything should be fixed now, including use of shifted characters in the keystroke converter box.
tomaszg7 commentedon Sep 2, 2026
Seems to be fine now, thanks. However I notice another problem with preferences window (probably unrelated though): notice weird transparent borders on the windows on the screenshot below, as if window content didn't fit the full window:
caclark commentedon Sep 2, 2026
@tomaszg7
Thanks. I now see it. It is another X11 problem :-(
tomaszg7 commentedon Sep 2, 2026
It's not ;) It is on Wayland/Sway.
caclark commentedon Sep 2, 2026
Thanks again. I do not see the problem when using Wayland, but only when I log in on X11.
mañana... traa dy liooar ... etc
tomaszg7 commentedon Sep 2, 2026
It gets worse... trying to reassign duplicate shortcut gives segfault:
It's enough to try to define a duplicate shortcut and click "replace" in the popup warning about duplicate.
przepompownia commentedon Sep 2, 2026
It's helpful even with this minimal form!
Making the action names selectable would be useful at this moment.
After finding and clearing the default assignment (toggle tree view in this example), the new keystroke works, but the menu does not show the hint, even after restart Geeqie.
caclark commentedon Sep 3, 2026
@przepompownia
I see this as a problem that only happens once - and then the user fixes it. Any other duplicates will be trapped by Geeqie as the user tries to make them.
Please make a separate feature request for this.
I do not see this problem.
caclark commentedon Sep 3, 2026
@tomaszg7
I do not see this problem
przepompownia commentedon Sep 3, 2026
My imprecision: hints appear in the main menu, as opposed to the context menu.
3 remaining items
przepompownia commentedon Sep 4, 2026
Thank you!

I tried to ask LLM why plugin menu items do not contain shortcut hint since 4c217ab (pointed by git bisect). First it suggested a label modification in
plugins_menu_populate, which caused a duplicated hints in main menu items. Then I got the following comment, not sure if worth mention 😉przepompownia commentedon Sep 4, 2026
6f53c1c shows that this change could prove helpful also in resolving internal conflicts (i.e. between defaults).
caclark commentedon Sep 4, 2026
@tomaszg7
I do not see this bug. Is it still happening?
caclark commentedon Sep 4, 2026
@przepompownia
Are we looking at the same problem? This is what I see - test1 shortcut is defined in the .desktop file and test2 shortcut is defined within Geeqie:
tomaszg7 commentedon Sep 5, 2026
Yes, it still happens each time I press "replace" for a duplicate shortcut.
I also don't see hints in plugins context menu. I do see them when I go via main menu toolbar.
caclark commentedon Sep 5, 2026
Fixed in commit 0408839
caclark commentedon Sep 5, 2026
@tomaszg7
I still cannot replicate this. Are you compiling with
-Dbuildtype=debug?tomaszg7 commentedon Sep 5, 2026
Right now I have buildtype=release and debug=true, but the same thing happened with debug=false. Should I try to change buildtype?
caclark commentedon Sep 5, 2026
Please try with this style:
rm -rf build; meson setup -Dbuildtype=debug buildprzepompownia commentedon Sep 5, 2026
@caclark I could not respond in the meantime, but now I see shortcuts at the end of plugin labels, apparently since 0408839. Thank you again!
tomaszg7 commentedon Sep 5, 2026
The same result:
caclark commentedon Sep 6, 2026
@tomaszg7
I still cannot replicate this, and I am reluctant to make a blind fix.
I would appreciate it if you would try this patch:
2584-1.diff.gz
gunzip 2584-1.diff.gz
patch -p1 < 2584-1.diff
tomaszg7 commentedon Sep 6, 2026
Yes, it seems to do the trick!
Part fix #2584: Cannot simply (and safely) override default keymaps b…