• On GameSpot: So-called 'Halo killer' gets 23 to life
advertisement
Click Here
November 14, 2008 6:30 AM PST

Finder windows changing size and location upon closing and reopening

by CNET staff
  • Font size
  • Print
  • 5 comments

Mac OS X's placement of windows is determined by the .DS_Store files that are located within each folder in the system. When users change window size and location, placement information is stored in the .DS_Store file that is in the current folder being resized. This can be confusing to some users, because, in most view modes, the same window is used to show the contents of the opened folders. As such, if a user changes the size of a window with the "Desktop" being viewed, new windows may be in different locations because they are referencing a different .DS_Store file. Despite this default behavior, users may encounter bizarre window sizing behavior.

Apple Discussions poster Kevin Liu writes:

"I find that randomly, the Finder windows default to the tiny size in the center of the display. This happens randomly and I haven't been able to see a pattern."

This issue is most likely caused by the .DS_Store file in a specific folder becoming either inaccessible or corrupt. To check for accessibility, open the terminal and type "ls -la " (including the space after "-la"). Next, drag the folder that displays the odd window behavior into the Terminal window to enter its full path to the terminal so the command looks like "ls -la /path/to/folder". Next, press enter to execute the command and the first set of characters next to the line that ends with ".DS_Store" should be "-rw-r--r--@". This indicates the file is writable and readable by the owner, and only readable by everyone else. If the file does not have these permissions, then change them with the following command:

  • sudo chmod u=rw,go=r /path/to/folder/.DS_Store

Alternatively, users should be able to delete the problematic .DS_Store file and have the Finder recreate it. To do this, enter the following command into the terminal:

  • sudo rm /path/to/folder/.DS_Store

(In this command the /path/to/folder/ is the same as previously found when users dragged the folder to the Terminal window.)

Resources

  • Kevin Liu
  • More from Late-Breakers
  • Recent posts from MacFixIt
    Manage iCal's automatic e-mail generation for invitations
    CNET TV Apple Byte: Apple faces critics
    Weekly Utilities Update: Net Monitor, MiniUsage, TimeMachineEditor, more...
    Odds and Ends: Essential video codec packs for OS X
    Address Book: Unable to add, view contacts
    Persistent 'Faster Browser Search' overtaking Safari's default search
    Quick tip: Faster Time Machine backups
    MacFixIt Answers
    Add a Comment (Log in or register) (5 Comments)
    • prev
    • next
    by dbstevens November 14, 2008 9:48 AM PST
    On my system (G5 dual core tower) this problem is way more rampant than described here. Since installing Leopard, finder windows change constantly. So far I haven't nailed down 100% what is happening, because much of it seems random...switching between types of views, switching between the toolbar area being collapsed or not, size and placements. This happens frequently during a reboot. Also, the more pageouts a system gets (I use MemoryStick to monitor this), the more problems there are. The one thing that I see occuring frequently is that, when I open a window, change its view settings and position, and then click "Always open in xxx view" OTHER windows take on these attributes (at least partially) when I open them, even though I did NOT set these attributes as default.

    It's very annoying and completely invalidates all efforts to keep consistency between windows. It's very sloppy engineering.
    Reply to this comment
    by Joe6Macs November 15, 2008 12:09 PM PST
    Here's one that happens to me ... after a restart, double clicking on a folder's alias will display a strange double take and open that folder into a generic window. Subsequent double-clicks on the same alias will open the folder to it's normal size and position. This only happens when double-clicking and only the first time after restart, Command-o displays the window correctly the first time. A slightly irritating bug.
    Reply to this comment
    by dbstevens November 17, 2008 10:02 AM PST
    More on this, which I think is related to the "Files in Finders not showing Previews" article today.

    This might be related to a problem I'm experiencing, which doesn't seem to be related to specific .dstore files but to the way in which the system reads ALL .dstore files. I posted in this forum but since then have found some consistent behavior. I find that when I change the view of a window, other windows end up taking on that same view when I open them later (especially parent windows). For instance, I have a folder full of clients which I always view in list view. When I open a customer's folder, all pertinent files are also supposed to be in list view. But individual folders (images, documents, etc.) I prefer to be in icon view. Most of the time, when I open one of those folders, it's reverted to list view. I change it to icon view. Then later, when I open its parent folder, THAT has also changed to icon view. I usually leave the top folder open, but if I close it, then reopen it, it also changes to icon view.

    Most of the time, this affects other folders elsewhere on my disk, in the same way. And when I reboot, almost ALL my folders take on the settings of the last folder I altered. So this is system-wide, not isolated to one particular folder. Basically, it's as though the last settings you apply to ANY folder, end up affecting OTHER folders as well. This happens more often when you select "Always open in xxx view"...which then seems to apply that setting to everything on your computer, as though it was applied to the overall finder preferences.

    This might be a factor in the icon preview problem as well. It's possible that if a user changes a folder setting to one that doesn't have "show preview," selected, that it will affect other folders.

    It's a problem that has been growing since installing Leopard and has become a huge, annoying mess. It wasn't as widespread at first, but it's become progressively worse. None of the solutions I've encountered seem to work, with one minor exception. I've found that if, after you change a folder's settings, you move or modify one of the files in that folder, that folder's settings will persist most of the time. However, they're lost during a logout or reboot.
    Reply to this comment
    by chazzola November 17, 2008 10:02 AM PST
    >
    This is a reply to a previous comment by dbstevens


    I feel your pain. I am in the same boat, big time. It's really not fun.

    What does everyone think about about the various utils for deleting .DS_Store files (either for specific folders, or system-wide)? Would really appreciate feedback.

    Please post any updates you may have on this. Thanks. Alternately you can reach me me directly at: chm [add the number two] at mail dot com

    Thanks!
    Reply to this comment
    by william.dorsey December 1, 2008 9:02 AM PST
    I migrated from a G3 Tower to a Mac Pro a couple of weeks ago and have experienced the same problems already posted. I have noticed that deeper folders tend to retain their settings; those closer to the top level lose theirs on the other side of a boot. There is one other thing I've noticed in the past few days in Leopard: I have iCal as a hidden login item, but if I had it visible when I shut down, it opens and stays visible when I re-boot.
    Reply to this comment
    (5 Comments)
    • prev
    • next
    advertisement
    Click Here

    About MacFixIt

    MacFixIt is CNET's troubleshooting resource for all things Mac. The information here helps you navigate the ins-and-outs of Mac ownership with how-tos, troubleshooting information, news, reviews, and more.

    Add this feed to your online news reader