Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatically-unhide-macos-hidden-apps-exceptions config option. #1117

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MediosZ
Copy link
Contributor

@MediosZ MediosZ commented Feb 20, 2025

Fix #1041

This PR is still WIP.

I tested both Raycast shortcuts and Discord, and they will not be unhidden automatically with automatically-unhide-macos-hidden-apps-exceptions=['com.github.wez.wezterm', 'com.hnc.Discord']

But there are two bugs remaining:

  1. Apps in exceptions will remember the workspace where they launched. When you reopen the app, it always appears on that workspace and focuses on that workspace.
  2. When hiding the app, aerospace still focuses on it, and this causes the app to be unhidden when switching to the workspace it is in.

Steps to reproduce bugs:

bug 1

  • Hide Wezterm with Raycast on workspace 1.
  • Switch to workspace 2.
  • Unhide Wezterm with Raycast.
  • Wezterm will appear on workspace 1, instead of current workspace 2.

bug 2

  • Hide Wezterm with Raycast on workspace 1.
  • Switch to workpace 2.
  • Switch back to workspace 1.
  • Wezterm will appear automatically (maybe because it is automatically focused) while it shouldn't.

@MediosZ
Copy link
Contributor Author

MediosZ commented Feb 26, 2025

I think these "bugs" are caused by the hidden window being focused automatically. Not sure if we should address them.

@MediosZ MediosZ marked this pull request as ready for review February 26, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add automatically-unhide-macos-hidden-apps-exceptions config option
1 participant