Same issue. If you "Open in Terminal" without typing anything, the new terminal always gains focus. But the moment you type anything on one of the terminals, subsequent terminals do not gain focus. Instead, you get a notification at the top saying the terminal "is ready".
In fact, this issue has been around for ages now. Here's one ignored from 23.04, which documents it being around since 22.10 at least: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/2016182 It could be an issue with gnome, however Nemo does not exhibit this behaviour and always opens the terminal in focus, so I suspect it's an issue with Nautilus. One perhaps overkill method is to completely disable Gnome opening stuff in background with `gnome-shell-extension-no-annoyance` (https://extensions.gnome.org/extension/1236/noannoyance/), however 24.04 appears to not be able to enable gnome shell extensions: https://askubuntu.com/questions/1522939/not-possible-to-enable-gnome-shell-extensions-in-ubuntu-24-04 A workaround I used since 21.04 is to run a devilspie2 script that grabs focus of the terminal whenever one is opened. ``` if ( get_application_name() == 'Terminal' and get_window_name() == 'Terminal' ) then focus_window(); end ``` Don't blindly use it tho. Every terminal opened will have focus. It didn't matter to me, but it may affect you in unexpected ways. It's also unnecessary as you are adding automation for something that you can stop using. Most people would just switch to Nemo. Of the alternatives I've tested, the ones that didn't work on 24.04 were: - Dolphin: open in terminal does nothing - Thunar: returns `failed to launch preferred application for category TerminalEmulator` - PCManFM: opens in background, just like Nautilus -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to mutter in Ubuntu. https://bugs.launchpad.net/bugs/2064977 Title: new gnome-terminal instances launched from nautilus fail to receive automatic focus Status in mutter package in Ubuntu: New Bug description: When a first gnome-terminal instance is launched from nautilus (context menu item "Open in Terminal"), it automatically receives focus for keyboard input. When additional instances are launched in the same way, the mechanism breaks down and focus remains with nautilus. If the user immediately starts typing, their input ends up being processed by the nautilus search bar instead of the terminal. Correcting this course of action requires unnecessary clicks or keyboard strokes. That is potentially confusing and certainly annoying. I remember being affected by the same bug in the early days of either Ubuntu 23.04 or 23.10. I have found a bug report related to gentoo that mentions something very much like what I am describing here: https://forums.gentoo.org/viewtopic-p-8790088.html?sid=fe9cfd6188d38eb5e550e3e45fffe19f". It seems to suggest that the bug affects only wayland but I use X11. ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: mutter (not installed) ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1 Uname: Linux 6.8.0-31-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.28.1-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue May 7 03:06:57 2024 InstallationDate: Installed on 2022-03-27 (771 days ago) InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220326) SourcePackage: mutter UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2064977/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp