From the OP, specific to the use case of Geany and Nautilus under Gnome... this is mutter's focus-stealing prevention at work.
I found this still-open issue here as I was searching for a feature request with Geany to implement the XDG Activation protocol.
A nice explanation and discussion of how it all works was recently posted on Gnome Discourse. That reminded me...
...For a long time now, and specifically to solve the use-case noted in the OP, I've been employing a very simple extension to work around this issue, and to immediately focus Geany when opening files from Nautilus file manager.
One key point missing from the OP is that if Geany is not running, the first time a file is opened from Nautilus, a Geany window will open and gain focus. I.E..
Should a new issue be filed specifically to request the XDG Activation protocol implementation in Geany?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.