jacklandrin / OnlySwitch

⚙️ All-in-One menu bar app, hide 💻MacBook Pro's notch, dark mode, AirPods, Shortcuts
https://jacklandrin.github.io/macos%20app/2021/12/01/onlyswitch.html
MIT License
3.84k stars 185 forks source link

Auto Hides Menu Bar & Dock #89

Open bluecursor opened 1 year ago

bluecursor commented 1 year ago

Describe the bug Auto Hides Menu Bar & Dock don't work, its spins but does nothing and doesn't switch on.

Desktop (please complete the following information):

jacklandrin commented 1 year ago

@bluecursor Thank you for your feedback. These two functionalities are implemented by Apple scripts. Please check if these two scripts can normally run on your laptop(You can test them on Script Editor): Auto Hide Menu Bar:

tell application "System Events"
        tell dock preferences to set autohide menu bar to true
 end tell

Auto Hide Dock:

tell application "System Events" to set the autohide of the dock preferences to true

If you change the boolean value to false, auto-hide will be turned off.

bluecursor commented 1 year ago

In script editor, it works fine, but not in onlyswitch. see video

https://github.com/jacklandrin/OnlySwitch/assets/31462938/5e36a555-099b-4389-99ec-c309f5fd56ce

bluecursor commented 1 year ago

Update: Screen Saver does the same issue.

jacklandrin commented 1 year ago

@bluecursor Please check if System Events of OnlySwitch are allowed here. WeChat633d0dfca850f7cbf01c63b5fd396b8b

bluecursor commented 1 year ago

only switch not found in automation. It never asked for permissions to add to automation

BlueCursor www.imacommodork.com Sent with OSX/iOS Spark! On Jun 23, 2023 at 3:22 AM -0400, jack @.***>, wrote:

@bluecursor Please check if System Events of OnlySwitch are allowed here. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

jacklandrin commented 1 year ago

This is the first time I receive this kind of issue. Have you checked the other Privacy & Security items, such as allowing identified developers? Or perhaps that you installed some security app blocks it. As well as suggest to deeply uninstall app (such as using AppCleaner) and reinstall it. I hope these can help you.

bluecursor commented 1 year ago

On a fresh install of OSX Monterey, Only switch still does not ask for permission to add to automation. Also allow apps from anywhere is turned on. Maybe at your end, try deleting only switch from automations and see if it ask for permission to add back?

jacklandrin commented 1 year ago

Perhaps, you can use tccutil reset AppleEvents command to reset your Automation configuration, at least it works on my side. When I first pressed icon on menu bar, the permission dialog showed. Warning: This command will also reset Automation of other apps.

Screenshot 2023-06-26 at 09 13 04