bluesnooze icon indicating copy to clipboard operation
bluesnooze copied to clipboard

remembering if bluetooth was on/off prior to sleep/shutdown

Open utkuaydn opened this issue 3 years ago • 6 comments

I love this app. However, the fact that it turns the Bluetooth on every time I wake it up from sleep even though it was off prior to sleep, is very annoying. Also, I do not think the app should turn on Bluetooth when it is launched, but only on the events it is supposed to.

Since there is no issues tab here (no clue why) I thought I could implement the feature and do a pull request. Feel free to change my implementation, it is just an idea.

utkuaydn avatar Mar 24 '22 11:03 utkuaydn

This looks like a great improvement @utkuaydn. Since it is unfortunately looking like this PR hasn't been noticed by the author, is there any chance you can release a binary with this improvement in your forked repo? Thank you!

stefansundin avatar May 31 '22 22:05 stefansundin

@stefansundin unfortunately I do not have an Apple Developer account, and the OS won't run unsigned binaries. You are welcome to try though :)

utkuaydn avatar Jun 01 '22 20:06 utkuaydn

Oh, you can definitely run unsigned binaries, macOS just makes it annoyingly hard. It isn't that hard once you've tried it once.

Here's how:

  • https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unidentified-developer-mh40616/mac
  • https://www.howtogeek.com/205393/gatekeeper-101-why-your-mac-only-allows-apple-approved-software-by-default/

stefansundin avatar Jun 01 '22 23:06 stefansundin

Compilation instructions:

brew install carthage
git clone https://github.com/odlp/bluesnooze
cd bluesnooze
carthage bootstrap

Then open in Xcode and set Code Signing team ID to None. Archive and export the app. Finally, ad-hoc sign while keeping entitlements:

codesign -s - --continue -f --no-strict --preserve-metadata=entitlements Bluesnooze.app

Built: Bluesnooze.app.zip

ViRb3 avatar Aug 12 '22 06:08 ViRb3

@ViRb3 When I attempt to run that I get this warning: Bluesnooze.app is damaged and can't be opened. You should move it to the Trash.

I just opened https://github.com/odlp/bluesnooze/pull/16 which is this change plus another change I did. I also provide a build here: https://github.com/stefansundin/bluesnooze/releases

The build is not signed so there are instructions (with screenshots) on how to bypass Gatekeeper. Enjoy.

stefansundin avatar Aug 14 '22 23:08 stefansundin

My bad, fixed and updated link. It's still self-signed, so Gatekeeper bypass is necessary (for anyone unsure, ask Google).

ViRb3 avatar Aug 15 '22 00:08 ViRb3