I am trying to open an application on a different desktop on my MacBook (macOS Sierra Version 10.12.5).
In the screenshot, I assigned Chrome to a different space (Desktop 1). I go to Desktop 2 and when I click on the Chrome icon, I am automatically switched to Desktop 1. How could I stay on Desktop 2?
EDIT
Maybe the logs are helpful. Which process does trigger the desktop switch?
Best Answer
From comments - as this appears to work for the OP, though I couldn't get it to work myself, on El Capitan.
From Keep applications from stealing focus when opening in OS X - by Topher Kessler [so at least it has a good pedigree, but it's from 2011]
One caveat appears to be that the application can not be closed properly, i.e. its process is still present after closing it.