Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As the image below shows, I've a few applications which I keep open on my main desktop and I've another space/Desktop for applications like Twitter for Mac, Stickies, etc.

Spaces setup on my Macbook Pro

Now, the problem is that when I restart the system (I use the setting - "Reopen Windows when logging back in"), all the application windows which are opened on the Desktop 2 come up on the Desktop 1, instead of Desktop 2 where they were present originally. Is there a way to preserve their location after the restart?

share|improve this question
up vote 3 down vote accepted

Ok, I found a solution that's working for me, and now my application windows doesn't switch Desktop randomly on restart.

For the two desktop setup as in the question, first I go to the desktop where I want to stick an application window. Say, we want to stick web browser to desktop 1, we

  1. go to desktop 1,
  2. open the application on this desktop,
  3. right click on the application icon on the dock, then Options > Assign to > This desktop
  4. similarly, stick applications on desktop 2

Now, after system restart, the applications are starting where they were sticked!

share|improve this answer
this does not work if I want to stick two windows of the same application in different spaces – emaillenin Jun 16 '14 at 14:05

Have you considered using Divvy to keep all your windows in check ?

share|improve this answer
I am not positive but I think Divvy was breaking my "Assign to Desktop" feature. – hangtwenty May 27 at 17:04

That is a bug that needs to be fixed by Apple. What also happens that switching between applications on different desktops would switch to that desktop and the application's menu would be displayed, but none of the application's windows would be coming to the front. To add to that, also the Finder wouldn't stick to the option of "All Desktops" at random times as far as my poor attention to what caused it goes.

If Divvy is free maybe you should give it a try until that bug is fixed.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.