Disable Desktop Switching in Mac OSX

April 7, 2016 — 2 Comments

Backstory

On Mac OSX, it would annoy me whenever I wanted to open a new Chrome browser on a 2nd workspace, and it would autoswitch to the first instance on the 1st workspace. We can disable it by desktop spaces auto-switching by entering a terminal command.

How to Disable Desktop Autoswitching

Open terminal and enter this command:

defaults write com.apple.dock workspaces-auto-swoosh -bool NO

Then restart the Dock by entering this command in terminal:

killall Dock

Enable Desktop Autoswitching

Open terminal and enter these two commands:

 defaults write com.apple.dock workspaces-auto-swoosh -bool YES
 killall Dock

Mike

Posts Twitter Facebook

My name is Michael Le, and I am a web developer.

2 responses to Disable Desktop Switching in Mac OSX

  1. I wanted to enable this feature i.e. set it to default behavior. For this, I used the following command –

    defaults write com.apple.Dock workspaces-auto-swoosh -bool NO
    killall Dock

    I checked the values just to make sure that the command worked using

    defaults read com.apple.Dock workspaces-auto-swoosh

    and it shows the value to be 1. But the thing is it does not enable the default behavior.

    After this, I opened my Guest account and there this feature was working properly. I again checked the value using the read command and this time it showed that the value does not exist (or something similar). Thus, I tried to delete this value using

    defaults delete com.apple.Dock workspaces-auto-swoosh
    and when I looked the value using read command, the result was similar to my guest account. But this still does not enable the default behavior.

    Has anyone tried this?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.