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 Ubuntu Desktop Bugs, 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2064977/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs