AeroSpace icon indicating copy to clipboard operation
AeroSpace copied to clipboard

Detect when AeroSpace.app needs to be restarted (after update) and show a red bubble in the tray icon

Open alper opened this issue 1 year ago • 6 comments

I'm not sure what changed here. I think Zed is definitely fiddling around with their rendering, but no idea why Mail.app would suddenly not be caught anymore.

alper avatar Aug 02 '24 09:08 alper

Blind guess: if you try to run aerospace -v in CLI you will see that CLI client and AeroSpace.app versions are different. Which means that you updated aerospace package via brew but didn't do AeroSpace.app restart.

In that case, macOS ax API stops notifying AeroSpace about newly appeared windows 🤷

Related: https://github.com/nikitabobko/AeroSpace/issues/237#issuecomment-2184114928

nikitabobko avatar Aug 02 '24 10:08 nikitabobko

That was indeed the issue.

Can the tray icon pop a red bubble when this happens?

Can it be prevented entirely?

alper avatar Aug 02 '24 11:08 alper

I don't know if it can be reliably detected, but I will think about it

nikitabobko avatar Aug 02 '24 11:08 nikitabobko

@nikitabobko If we could get proper launchd integration working (see #479) you could restart the service when it's executable changes using WatchPaths. There are some docs for WatchPath here, but you'll have to navigate to configuration and scroll to WatchPaths. The site doesn't really have any way to link to things.

Perhaps some work around app lifecycle management could solve a few issues.

jakenvac avatar Aug 30 '24 21:08 jakenvac

@jakenvac do you mean that we could rerun AeroSpace.app if it changes? Well, right now, tiling tree structure and windows workspace assignment is not resistant to AeroSpace.app restarts

nikitabobko avatar Aug 31 '24 22:08 nikitabobko

That's what I meant, yeah. But you raise a good point. I hadn't thought of that.

jakenvac avatar Sep 01 '24 15:09 jakenvac