-
Notifications
You must be signed in to change notification settings - Fork 100
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
Crash on startup if no accessibility permissions #342
Comments
I'm not entirely sure if I've found the same crash or not. What I was doing was unchecking/rechecking the option that enables media keys. I can't see it right now because I can't get the app to launch anymore. What preference am I supposed to be changing to give this app the ability to do whatever it needs to do re: accessibility?
|
PS: the key to anyone else who needs to find the setting to enable (allows the app to launch again): System Preferences -> Security & Privacy (not Accessibility like the permission might indicate) -> Privacy -> Accessibility -> Hermes |
On Catalina even the Accessibility settings didn't seem to work for me. If this happens and Hermes continues to crash on launch you can un-set the media keys preference from Terminal as follows:
I do finally have a Catalina Mac (although it is a bit unstable despite being brand new — hopefully will get it stable or exchanged soon!) so at least have a platform I could potentially work on this, but it's unfortunately far down my priority list. |
No worries. If I knew how to fix this I'd submit a patch, but I've written exactly 0 lines of OSX native code :( I'd love to help, but I'm at a loss of what to do. |
Incidentally, turning off the media key binding via the command above did allow Hermes to start. However, that's one of the features I want the most! Likewise, Hermes definitely does have Accessibility permission so something else is going on. :( |
Glad you were able to find a workaround and apologies for the inconvenience. The brief update since November :( is that my 16ʺ MBP did end up being a lemon, Apple replaced it and now I have a reliable one sitting next to me here, but the day job has left me no time for Hermes (or any of my other open source apps). I did implement prompting for accessibility permissions in Shroud and I suspect several other apps would do it, so my plan is to just copy that code over into Hermes. This is a third-party dependency — one of the few in Hermes — so it might be as easy as swapping it out; the media key handling has always been flaky at best particularly when you're running. |
I totally get that. I'm also swamped with my day job and have little time to mess with the things I want to mess with. At least you got the laptop swapped out. That's what happened here - my previous work machine decided that it was going to make the battery swell up nice and fat, which prompted the GPU to begin delaminating from the mainboard. So they replaced it with a new 16" running Catalina. In any case, the work plight resonates with me quite well and I'll simply have to be content waiting until you have a bit of spare time to make the fix. Until then I can probably write an applescript snippet and attach it to a touchbar button to pause/play Hermes on demand. That should get me by. When I have that figured out I'll post instructions here so others can benefit from it in the meantime. Thanks! |
So doing this with an applescript snippet is pretty straightforward. Effective workaround, for now: Open Automator.app and create a new workflow Quick Action. In the left-hand pane in the search bar, enter 'AppleScript' and double-click on the "Run AppleScript" item. Clear out all the crap in the box and replace it with this:
Click the 'Play' button above and make sure it works. Save the item as "Hermes Play/Pause" Open up System Preferences -> Keyboard and choose "customize control strip" under the 'keyboard' tab. Drag the "Quick Actions" item somewhere on your touchbar. Exit System Preferences and press the new Quick Actions item on the touch bar and the new "Hermes Play:Pause" item should be there. Press that and you'll be prompted to allow permission. Do it. Hermes should either start or stop playing. It takes a couple steps instead of just slamming the system media keys, and it only does play/pause, but at least that'll get the most common function re-implemented for now :) |
Hi @nriley ! I'm guessing you haven't had a chance to look at this? I was building the app locally and started to debug this. Thought I'd search the backlog first. I'm not particularly handy with native macOS code, but I could stumble my way through. Unfortunately the other project you linked just makes my eyes glaze over when thinking about trying to extract that to this project. Hoping you have a chance to work your magic on this bug. I'm so tired of the official pandora app, with lack of media key bindings. :( |
Hi @voltechs I would really love to spend time working on Hermes but I've been saying that for years at this point and my life is just not cooperating :( I use Hermes successfully on a 16" M1 MBP; you should be able to grant accessibility permissions to it manually in System Preferences and the media keys do work, at least in simple scenarios like when Music is not running. Hermes also shows up in Control Center in more recent macOS versions (though no album art). |
Dang @nriley, do I ever feel that! I'll give that a shot. Maybe some gracious contributor with some experience could drop off a gift on they're way past this project :) miracles do happen. Off topic, but any idea why/how you/we/this avoids shutdown from Pandora? There were a couple other software offerings in the past (one I really liked a lot) that eventually drew the ire of Pandora and were forced to shutdown (coincidentally I pay for premium... I wish their main app was better) |
Should see if there's a newer version fo SPMediaKeyTap or otherwise patch it to explain what's going on, rather than quitting unexpectedly.
The text was updated successfully, but these errors were encountered: