AutoFocus icon indicating copy to clipboard operation
AutoFocus copied to clipboard

Focus without raising window causes app to crash

Open sawman opened this issue 1 year ago • 12 comments

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?

sawman avatar Mar 22 '24 10:03 sawman

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

JawadAhbab avatar Mar 26 '24 17:03 JawadAhbab

@sawman Could you "Restore Default Settings"?

JawadAhbab avatar Mar 26 '24 17:03 JawadAhbab

@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 avatar Mar 26 '24 17:03 synappser

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.

JawadAhbab avatar Mar 26 '24 17:03 JawadAhbab

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.

synappser avatar Mar 26 '24 18:03 synappser

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!

JawadAhbab avatar Mar 27 '24 08:03 JawadAhbab

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.

RomuloPBenedetti avatar Apr 23 '24 15:04 RomuloPBenedetti

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

sawman avatar Apr 30 '24 07:04 sawman

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

qns7 avatar May 26 '24 11:05 qns7

@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.

sawman avatar May 26 '24 13:05 sawman

@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

qns7 avatar May 26 '24 16:05 qns7

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

FedericoFilippoDiana avatar Jun 04 '24 20:06 FedericoFilippoDiana