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

Focus without raising window causes app to crash #25

Open
sawman opened this issue Mar 22, 2024 · 12 comments
Open

Focus without raising window causes app to crash #25

sawman opened this issue Mar 22, 2024 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@sawman
Copy link

sawman commented Mar 22, 2024

Describe the bug
Focus without raising window checkbox causes app to crash when it is set.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Settings'
  2. Ensure 'Auto raise window under cursor' is on
  3. Check 'Focus without raising window'
  4. App will crash
  5. Further attempts to restart the app will cause the app to crash

Expected behavior
App should not crash

Desktop (please complete the following information):

  • OS: Sonoma 14.3
  • CPU: M3 Pro
  • Version v0.6.8b

Additional context
The help text says the feature will work when there is a 'required framework'. What is that required framework?

@JawadAhbab
Copy link

Anyone can help me deleting the config file so that I can at least open the app again?

@JawadAhbab
Copy link

@sawman Could you "Restore Default Settings"?

@synappser
Copy link
Owner

@sawman, @JawadAhbab, AutoFocus is getting inconsistent settings from its preferences plist file, so you need to reset it first.

Delete com.mantel.AutoFocus.plist from /Users/your_name/Library/Preferences/ folder.

If that's not enough, click Go > Go to Folder... in Finder's menu bar. Enter /private/var/folders/_d/ in the dialog box field and press Return.

Then open the folder holding the cache files and temporary data. You will recognize it by its long random name (e.g. z4l5.....). There you will find, among others, a folder named "C". Open it and delete the folder named "com.mantel.AutoFocus" that contains AutoFocus's cache data.

You should now be able to start AutoFocus from a blank slate and adjust your settings. If AutoFocus still fails to start, try restarting your computer after removing the files above.

@synappser synappser pinned this issue Mar 26, 2024
@synappser synappser added the bug Something isn't working label Mar 26, 2024
@JawadAhbab
Copy link

JawadAhbab commented Mar 26, 2024

I could not find com.mantel.AutoFocus.plist anywhere in my mac! I was trying to do that before commenting. I think the plist is saved as another name.

@synappser
Copy link
Owner

synappser commented Mar 26, 2024

Preferences property list files get written to ~/Library/Preferences.

What's the output of this command in your Terminal:

ls ~/Library/Preferences/com.mantel.AutoFocus.plist

P.S. - On a new macOS install, the Library folder is usually still hidden so you'd have to make it visible first. Here's an article explaining how to "reveal" it. You can also use some free uninstaller to find the preferences files; AppCleaner is a good one that runs under Sonoma.

@JawadAhbab
Copy link

JawadAhbab commented Mar 27, 2024

Still there is no such directory! Even I tried AppCleaner, but also not working! I also used easyFind and searched this folder in my whole mac OS but could not found anything such. Very strange!

@RomuloPBenedetti
Copy link

Any extra help on how to reset it? Because I removed ~/Library/Preferences/com.mantel.AutoFocus.plist and /private/var/folders don't have a _d folder.

@sawman
Copy link
Author

sawman commented Apr 30, 2024

sorry i've not been watching this issue. I stopped using autofocus for a while but I solved this issue using something like CleanMyMacX to find the dangling plist file. I cannot remember the location now, but it was certainly in ~/Library/**. I will note however that i did manage to find the settings file to delete to restore it to a working state, but checking the settings box would cause it to crash again immediately. Basically, autofocus never worked with that checkbox checked

@qns7
Copy link

qns7 commented May 26, 2024

@sawman Is there an alternative besides the outdated AutoRaise and Yabai you can suggest to us? Best regards Q

@sawman
Copy link
Author

sawman commented May 26, 2024

@sawman Is there an alternative besides the outdated AutoRaise and Yabai you can suggest to us? Best regards Q

Hey for me, Autofocus works fine as long as I don't use this focus without raise feature. Yabai doesn't have this feature either, so if you're OK to not have this feature, I think autofocus is a great solution.

@qns7
Copy link

qns7 commented May 26, 2024

@sawman Is there an alternative besides the outdated AutoRaise and Yabai you can suggest to us? Best regards Q

Hey for me, Autofocus works fine as long as I don't use this focus without raise feature. Yabai doesn't have this feature either, so if you're OK to not have this feature, I think autofocus is a great solution.

Thank you, I used it for weeks now and like it very much. That one feature would be awesome, but I can live without it for now. :) Thank you for replying so quick. Best regards Q

@FedericoFilippoDiana
Copy link

I have the same problem, for me this is crucial, it would be fantastic to have this fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants