com-entonos / Desktop-Icon-Manager

12 stars 0 forks source link

Restore icons after sleep #1

Open Rigido71 opened 1 month ago

Rigido71 commented 1 month ago

Hi, starting with Sonoma (I'm pretty sure) my external disk icons started moving from the rightmost side of the only attached screen somewhere else on the desktop. I didn't understand WHEN this happen but it would be great if DIM could restore icons on wake-up. BEFORE AFTER

entonos commented 1 month ago

First I've heard of this.

One could add an observer for screen wake notification. Something like: NSWorkspace.shared.notificationCenter.addObserver(forName: NSWorkspace.screensDidWakeNotification, object: nil, queue: .main, using: {_ in self.restore(currentName) })