Ubuntu – Gnome Shell – How to prevent an application from starting behind the application in focus

focus

I'm doing automated testing with Sikuli and it's important that the stuff being tested is visible on the screen. Lately, the apps/windows keep opening in the background, behind whatever is currently in focus, with the notification "[application] is ready". How do I tell Ubuntu to stop doing this?

Best Answer

  • Gnome Shell, which is used by Ubuntu, has the feature that launched applications are opened in the background. While this may be desirable in some workflows, many users will consider this an annoyance. A gnome Shell extension, appropriately named "No Annoyance", changes this behavior, and makes sure a launched application is immediately raised.

    Install the extension with the command sudo apt install gnome-shell-extension-no-annoyance, or using Synaptic Manager (not installed by default) or even using "Software". To enable the extension after installation, you can use "Gnome Tweaks" (not installed by default).