Dimillian / IceCubesApp

A SwiftUI Mastodon client
https://apps.apple.com/us/app/ice-cubes-for-mastodon/id6444915884
GNU Affero General Public License v3.0
5.49k stars 532 forks source link

Window Size and Location Not Saved on Exit from App #1777

Open dgiffin opened 10 months ago

dgiffin commented 10 months ago

Environment:

Description

Related Issues

jessewilson commented 10 months ago

I can confirm the same behavior.

OS: MacOS 14.2.1 (23C71) IceCubes: 1.10.6 (2262)

0xDP commented 9 months ago

I second that. This behavior is really annoying.

% sw_vers
ProductName:        macOS
ProductVersion:     14.3
BuildVersion:       23D56
% defaults read /Applications/Ice\ Cubes.app/Contents/Info.plist CFBundleShortVersionString
1.10.28
% defaults read /Applications/Ice\ Cubes.app/Contents/Info.plist CFBundleVersion
2487
nachtbraker commented 9 months ago

Same here. Would be nice if this could be fixed!

sw_vers ProductName: macOS ProductVersion: 14.3 BuildVersion: 23D56 defaults read /Applications/Ice\ Cubes.app/Contents/Info.plist CFBundleShortVersionString 1.10.30 defaults read /Applications/Ice\ Cubes.app/Contents/Info.plist CFBundleVersion 2501

0xDP commented 6 months ago

Until the issue is fixed, one can use the following Apple script to start and/or resize/position Ice Cubes. wPos and wSize must of course be adapted.

-- get name from bundle identifier in case someone has renamed the app
set appID to "com.thomasricouard.IceCubesApp"
set appName to name of application id appID
set wPos to {50, 50}
set wSize to {600, 800}

activate application appName
tell application "System Events" to tell process appName
    -- wait until the window is available to resize it
    repeat until count of windows > 0
        delay 0.1
    end repeat
    set position of windows to wPos
    set size of windows to wSize
end tell