p0deje / Maccy

Lightweight clipboard manager for macOS
https://maccy.app
MIT License
13.11k stars 551 forks source link

Automatically paste by default doesn't work since version 0.6.0 on macOS 10.14.6 #60

Closed michaelkar closed 4 years ago

michaelkar commented 5 years ago

After updating to version 0.6.0, setting defaults write org.p0deje.Maccy pasteByDefault true # default is false has no effect. Moving back to release 0.5.1 'paste by default' works as expected.

p0deje commented 5 years ago

It seems like there is a problem with how macOS identifies Maccy and its permissions. I need to figure it out, but try the following workaround for now:

  1. Open "Security & Privacy" preferences pane.
  2. Open "Accessibility" tab.
  3. Unlock to make changes.
  4. Remove Maccy from the list.
  5. Restart Maccy.
  6. Paste from Maccy now.

This should ask for permissions once again and it should work without issues since then.

michaelkar commented 5 years ago

@p0deje the proposed flow solved the issue for me. Thank you!

p0deje commented 4 years ago

Should be better in 0.8.0

synox commented 4 years ago

Still happending with 0.8.2 on macos 10.15.2 (19C57) The workaround on top works, but an existing user might never try that.

p0deje commented 4 years ago

@synox Can you show a screenshot of "Security & Privacy" -> "Accessibility" tab?

synox commented 4 years ago

Testing on my second mac: I had 0.7 Past by default did not work. now upgraded to 0.8.2. Paste by default does not work. Accessibility does not list Maccy. Screenshot 2020-01-09 at 15 48 20

(On my first mac, there was a ticked Maccy in Accessibility, but it only worked after removing the entry and pasting something. )

p0deje commented 4 years ago

It might be related to the version upgrade. Let me try installing 0.7 and then 0.8.2.

p0deje commented 4 years ago

Hm, still can't reproduce.

  1. Installed 0.7
  2. Tried pasteByDefault and it asked for accessibility permissions
  3. Denied
  4. Installed 0.8.2
  5. Tried pasteByDefault and it asked for accessibility permissions
  6. Granted
divyanshu013 commented 4 years ago

I faced same issue @p0deje, worked after following your solution here.

whornsby commented 4 years ago

Still present in 0.15.0, but the workaround fixed it