Amethyst icon indicating copy to clipboard operation
Amethyst copied to clipboard

Building and running locally always requests permission

Open adambossy opened this issue 1 year ago • 4 comments

Describe the bug When building and running the Amethyst project locally, I can't get the app to accept that I've granted it permission.

Applications: Amethyst, Xcode, Mac OS System Settings

To Reproduce Steps to reproduce the behavior:

  1. Build and run locally, either using "fastlane" from the project's root directory on the command-line, or using the Amethyst build in Xcode.
  2. Tap any of the keyboard shortcuts.

Expected behavior The system should ask for permission once and accept my input. Instead, the system asks for permission and never seems to accept that it's been granted.

Screenshots I keep seeing this dialog: Screenshot 2024-11-09 at 1 40 26 PM

The permission is already granted: Screenshot 2024-11-09 at 1 40 32 PM

I'm also seeing the console spew a bunch of "processNotFound" errors each time I tap a keyboard shortcut and the permission isn't recognized.

Screenshot 2024-11-09 at 1 48 39 PM

Versions:

  • macOS: 14.5
  • Amethyst:

Debug Info

$ /Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info [--include-apps]

Note: --include-apps will list your manageable applications, but is optional if you don't want to list that.

Version: 0.21.2 (112)

OS version: Version 14.5 (Build 23F79)

Screens:
	(0.0, 0.0, 5120.0, 1440.0) [(0.0, 0.0, 5120.0, 1440.0)]

Configuration:
follow-space-thrown-windows: 1
mod1: (
    option,
    shift
)
screen-padding-top: 0
float-small-windows: 1
screen-padding-right: 0
ignore-menu-bar: 0
mouse-follows-focus: 0
window-margins: 0
window-margin-size: 0
floating-is-blacklist: 1
new-windows-to-main: 0
enables-layout-hud-on-space-change: 1
window-minimum-width: 0
window-minimum-height: 0
layouts: (
    "middle-wide",
    "centered-resizable-pane-with-cols",
    "4column-left",
    "uniform-columns",
    fullscreen
)
use-canary-build: 0
window-resize-step: 5
floating: (
)
screen-padding-left: 0
focus-follows-mouse: 0
window-max-count: 0
mod2: (
    option,
    shift,
    control
)
enables-layout-hud: 1
screen-padding-bottom: 0
debug-layout-info: 1
restore-layouts-on-launch: 1

Manageable applications:
	iTerm2 (com.googlecode.iterm2)
	Spotify (com.spotify.client)
	Finder (com.apple.finder)
	Notion (notion.id)
	Google Chrome (com.google.Chrome)
	Arc (company.thebrowser.Browser)
	Cursor (com.todesktop.230313mzl4w4u92)
	Reminders (com.apple.reminders)
	Console (com.apple.Console)
	Xcode (com.apple.dt.Xcode)

adambossy avatar Nov 09 '24 18:11 adambossy

@adambossy: I had this happen too! I bought a developer license and then signed the code with a real certificate and it worked.

I'm not sure if Apple has a special case for dev certs or maybe xcode generates a new one each run? I don't know a ton about mac signing.

duncanfinney avatar Nov 16 '24 12:11 duncanfinney

Pretty sure it has to do with signing, yeah. If you don't have a development team, then it's not tied to anything persistent.

ianyh avatar Dec 14 '24 02:12 ianyh

Hmm I ran into this issue out of nowhere as well. Amethyst was working fine yesterday, but today it kept asking for permissions even with the permission already granted. I installed mine via homebrew.

darricheng avatar Jan 03 '25 11:01 darricheng

FWIW: I was jus trying to build/run Amethyst locally and got the same issue. I renamed the project to "Amethyst-Palmer", which seems to have kicked the OSX accessibility dialog in the right way to show an additional instance. I can turn that instance on and my local Amethyst appears to be working.

palmer-dabbelt avatar May 29 '25 23:05 palmer-dabbelt

Hmm I ran into this issue out of nowhere as well. Amethyst was working fine yesterday, but today it kept asking for permissions even with the permission already granted. I installed mine via homebrew.

I think this is an install problem, and this thread is discussing building from source.

ianyh avatar Sep 14 '25 21:09 ianyh

I'm not sure there's much I can do here. It might be possible to have some editable build configuration or something, but I don't think I have the bandwidth for that.

ianyh avatar Sep 14 '25 21:09 ianyh