Skip to content
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

macOS Ventura clean install Maccy doesn't paste #482

Closed
kim0019 opened this issue Oct 26, 2022 · 74 comments
Closed

macOS Ventura clean install Maccy doesn't paste #482

kim0019 opened this issue Oct 26, 2022 · 74 comments
Labels
bug Something isn't working needs triaging Further information is requested

Comments

@kim0019
Copy link

kim0019 commented Oct 26, 2022

Hi, just installed Ventura, so Maccy also new install. Paste with Maccy however doesn't work. Already tried Privacy & Sec settings -> Accessibility: add Maccy, remove aand add again, reinstall several times, restarted Maccy and Mac.
Hope this can be resolved. I use the downloaded version of Maccy.

@Leev1s
Copy link

Leev1s commented Oct 26, 2022

I have the same issue!
I cant use "Auto Paste".It just move to my instant clipboard not the place I want to paste.

@Leev1s
Copy link

Leev1s commented Oct 26, 2022

Just installed Ventura

@KillianDhe
Copy link

yes i'm having the same issue !
reinstalled, restared etc but still the same issue since i installed ventura.

When i copy something it doesn't show up in maccy anymore, and pasting thing i already have in my history doesn't work anymore :(

@hallojs
Copy link

hallojs commented Oct 27, 2022

I have the same issue.

@p0deje
Copy link
Owner

p0deje commented Oct 27, 2022

Just upgraded to the release of Ventura and cannot reproduce it. Will try installing different versions of Maccy to see if there is any correlation.

@p0deje p0deje added bug Something isn't working needs triaging Further information is requested labels Oct 27, 2022
@p0deje
Copy link
Owner

p0deje commented Oct 27, 2022

Tried installing the latest release and both copy and paste work perfectly fine. Can anyone record a video showing what happens when trying to copy/paste?

@ghost
Copy link

ghost commented Oct 29, 2022

I'm on 0.24.0 and installed Ventura (M1 Pro chip) and everything is working perfectly.

For people having an issue - try adding Maccy to a list of Developer tools applications.
System settings -> Privacy & Security -> Developer tools / press + and add Maccy.

Althoguh I don't have this issue, I did have an issue with warp terminal and this fixed it

@zoulhh
Copy link

zoulhh commented Oct 30, 2022

Works fine in Ventura but not in Microsoft Remote Desktop App.

@hallojs
Copy link

hallojs commented Oct 30, 2022

@p0deje sure, just nothing happens.
https://user-images.githubusercontent.com/6607733/198874138-38040cb1-91bf-4bc9-b6fa-65ba2f53f3a0.mov

Another question. Is there a way to delete pins? Or better to hide them if you don't need them?

@p0deje
Copy link
Owner

p0deje commented Oct 30, 2022

works fine in Ventura but not in Microsoft Remote Desktop App.

@zoulhh Please see #365

sure, just nothing happens.

@hallojs

  1. Is it in all the apps?
  2. Do you have Paste automatically enabled?
  3. Have you tried removing Maccy from System Settings / Security & Privacy / Accessibility?

Another question. Is there a way to delete pins? Or better to hide them if you don't need them?

You can remove everything by pressing Clear with Shift pressed.

@hallojs
Copy link

hallojs commented Oct 30, 2022

@p0deje

  1. Yes!
  2. Automatically at boot-time? Yes!
  3. Yes!

Thank you, that works fine! :)

@p0deje
Copy link
Owner

p0deje commented Oct 30, 2022

@hallojs So, does it work now?

@hallojs
Copy link

hallojs commented Oct 30, 2022

@p0deje no, just removing the pins worked.

@p0deje
Copy link
Owner

p0deje commented Oct 30, 2022

@hallojs Can I ask you to try removing Maccy completely and re-installing? This means you'd need to:

  1. remove the app from /Applications
  2. remove ~/Library/Containers/org.p0deje.Maccy/ folder
  3. remove ~Preferences/org.p0deje.Maccy.plist
  4. remove Application Scripts/org.p0deje.Maccy-LaunchAtLoginHelper/
  5. remove Application Scripts/org.p0deje.Maccy
  6. install once again

@KillianDhe
Copy link

Hi, i did a the clean reinstall but i'm still having the issue that it doesn't register the copy.
However the clean reinstall doesn't seem to be that clean because i still had my previously defined shortcut with the new install.

enregistrement-de-lecran-2022-10-30-a-183327_SkD1q7Lt.mp4

I recorded a short video to show you that i can't copy

@p0deje
Copy link
Owner

p0deje commented Oct 30, 2022

@KillianDhe Note how the Maccy icon is greyed out in the menu bar? It means it's turned off. Please enable it by Option+click on the icon or via Preferences and try.

@KillianDhe
Copy link

KillianDhe commented Oct 30, 2022

My gosh sorry, new mac user here ^^

Indeed it fixed, i can now copy.
And the good news is that the clean reinstall seems to have fixed the paste!

Before doing hard reinstall, i had some pinned history and i couldn't paste it, even with maccy disabled we should be able to it seems.
Now i can, perfect :)

@hallojs
Copy link

hallojs commented Oct 30, 2022

@p0deje sure, but even after the clean reinstall, the behavior didn't change. I checked my Intel-based Mac but can't reproduce the bug there.

@p0deje
Copy link
Owner

p0deje commented Oct 30, 2022

@hallojs Can I ask you to record a fullscreen video showing how paste does not work in macOS native app (e.g. Safari)? Also, can you please share the output of running defaults read org.p0deje.Maccy in Terminal.app?

@hallojs
Copy link

hallojs commented Oct 30, 2022

Sure!

{
    "KeyboardShortcuts_popup" = "{\\"carbonModifiers\\":768,\\"carbonKeyCode\\":9}";
    "NSStatusItem Visible Item-0" = 0;
    "NSWindow Frame SUStatusFrame" = "1080 974 400 134 0 0 2560 1415 ";
    "NSWindow Frame com.sindresorhus.Preferences.FrameAutosaveName" = "1023 516 551 462 0 0 2560 1415 ";
    SUEnableAutomaticChecks = 1;
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2022-10-30 11:21:22 +0000";
    SUUpdateGroupIdentifier = 2177969034;
    enabledPasteboardTypes =     (
        "public.png",
        "public.utf8-plain-text",
        "public.tiff"
    );
    fuzzySearch = 1;
    historySize = 1;
    ignoredPasteboardTypes =     (
        "Pasteboard generator type",
        "de.petermaurer.TransientPasteboardType",
        "com.typeit4me.clipping",
        "com.agilebits.onepassword"
    );
    migrations =     {
        "2020-04-25-allow-custom-ignored-types" = 1;
        "2020-06-19-use-keyboardshortcuts" = 1;
        "2020-09-01-ignore-keeweb" = 1;
        "2021-02-20-allow-to-customize-supported-types" = 1;
        "2021-06-28-add-title-to-history-item" = 1;
        "2021-10-16-remove-dynamic-pasteboard-types" = 1;
        "2022-08-01-rename-suppress-clear-alert" = 1;
    };
    pinTo = bottom;
    popupPosition = center;
    showInStatusBar = 0;
    suppressClearAlert = 1;
}
Bildschirmaufnahme.2022-10-30.um.21.59.49.mov

@p0deje
Copy link
Owner

p0deje commented Oct 30, 2022

@hallojs Ok, I'm out of ideas for now :(

@shawntai
Copy link

I'm still experiencing the same problem. MacBook Pro, M1 chip, just installed Ventura a couple days ago.

@wwwinn1
Copy link

wwwinn1 commented Nov 7, 2022

I work on a stable iMac system, installed Ventura last week and all was well. Purchased ($9.99) and installed Maccy from the Apple Apps site but cannot get it to paste anything. Not right to pay then not be able to perform the most basic function of a clip manager . Hope this is fixed soon or I'll have to request a refund and go back to other clip managers. Thanks in advance for any advice and/or a fix.

@p0deje
Copy link
Owner

p0deje commented Nov 7, 2022

@wwwinn1 Can you please manually remove Maccy from System Settings / Privacy & Security / Accessibility and add it once again? Just make sure you add Maccy.app that was installed from the Mac App Store.

@Vincent0009
Copy link

I have the same issue. But then I turned on Paste Automatically. Problem solved.

@ADTC
Copy link

ADTC commented Dec 20, 2022

@p0deje the chance of anyone else on this thread using Dvorak keyboard is very slim. But apparently that's exactly the reason why I have this issue. More specifically it's the "Dvorak - QWERTY ⌘" keyboard. (I'm using Ventura 13.1 macOS version.)

You can reproduce the issue:

  1. In Maccy preferences, set the Hotkey as ⇧⌘V.
  2. Open your System Settings, and add "Dvorak - QWERTY ⌘" as an additional keyboard.
  3. Switch to this keyboard. (You should see the switcher on the menu bar.)
  4. Quit and restart Maccy.
  5. Notice that in Maccy preferences, the hotkey is now shown as ⇧⌘K instead. (K is the actual Dvorak letter in the same position as letter V in QWERTY)
  6. (Note that even though it says ⇧⌘K, in your keyboard you should still press ⇧⌘V.) Test the "Paste automatically" function in Maccy by trying to paste in any app. It doesn't work.
  7. Switch back to the ABC keyboard, US keyboard or whichever layout you normally use, and remove the "Dvorak - QWERTY ⌘" keyboard.
  8. Quit and restart Maccy.
  9. Notice that in Maccy preferences, the hotkey is now back to ⇧⌘V.
  10. Test the "Paste automatically" function in Maccy by trying to paste in any app. It works!

Caveat: The issue is not reproducible with the regular "Dvorak" keyboard, although it also shows the hotkey as ⇧⌘K.

I suspect the issue is how Maccy attempts to paste, by issuing ⌘V but somehow the offending keyboard layout interprets it as ⌘K instead, and that doesn't do anything. Or the confused Maccy is attempting to use ⌘K as the shortcut to paste when we use the "Dvorak - QWERTY ⌘" layout.

I hope this makes sense. For now, if you're a Dvorak user, the only fix is to use the regular "Dvorak" keyboard instead.

@p0deje
Copy link
Owner

p0deje commented Dec 20, 2022

@ADTC Oh, this starts to make more sense. I now wonder if b961656 is going to help with this too. Would you be able to test the most recent build (but please back up ~/Library/Containers/org.p0deje.Maccy/Data/Library/Application Support/Maccy/ before doing it) and let me know if it helps?

Maccy.app.zip

@ADTC
Copy link

ADTC commented Dec 20, 2022

@p0deje Thank you for replying. I tried the version in your ZIP file, but it's still the same. (It doesn't help.)

By any chance, have you reproduced this issue on your end by enabling the "Dvorak - QWERTY ⌘" keyboard layout?

@shawntai
Copy link

shawntai commented Jan 16, 2023

@shawntai @hallojs Can you please confirm you use DVORAK layout and, if yes, which one exactly?

I'm not. I'm using QWERTY on my MacBook Pro. Just tested the latest version and it still doesn't work

Edit: just tried to turn on past automatically (as Vincent0009 suggested) and now it's working

@magneti-cz
Copy link

magneti-cz commented Jan 17, 2023

Maccy does not handle ⌘+1, ⌘+2, ... in any special way - all it does is set NSMenuItem.keyEquivalent to 1, 2, ... so I would assume this is a macOS bug. Can you find any other application except CopyClip 2 where it works correctly? Not necessarily a clipboard manager, it can be any application.

Ok, I did some research and the app works is Shottr for screenshots. Should be open source. When opened you can see on the screenshot that it automatically assign ⇧+⌘+ě instead of numbers while in app setup is still shortcut for ⇧+⌘+2.
So I am just guessing first it takes whatever it is in row1 and assign the value for operations and it doesn't matter if number or char.
Screenshot 2023-01-17 at 13 20 45

@p0deje
Copy link
Owner

p0deje commented Jan 17, 2023

@magneti-cz Is it really open source? I cannot seem to find its code.

@rene78
Copy link

rene78 commented Jan 27, 2023

Same problem here. MB Air M1 with Ventura 13.1 and standard keyboard layout plus German QWERTZ. No matter whether "Paste automatically" is selected or not pasting does not work with ⌘+1. Maccy version 0.25.0

Edit: Or do I have a general misunderstanding here? Because if I open Maccy with SHIFT + ⌘ + C and only then press ⌘+1 it works fine. But it would be a lot more convenient to press ⌘+1 right away without the need for the first shortcut.

@ADTC
Copy link

ADTC commented Jan 27, 2023

@p0deje I've been too busy to test that yet. I will try and let you know. Meanwhile, may I suggest updating the title since we now know the issue occurs in alternative keyboard layouts, and the issue is more of the keyboard shortcuts not working as expected?

@p0deje
Copy link
Owner

p0deje commented Jan 27, 2023

@rene78 Do you have "Paste automatically" enabled? I just tried using your keyboard input and it works perfectly fine.

@rene78
Copy link

rene78 commented Jan 28, 2023

Do you have "Paste automatically" enabled?

@p0deje Yes, it is enabled. Yet pasting with ⌘+1 does not work for me.

@p0deje
Copy link
Owner

p0deje commented Jan 28, 2023

@rene78 Can you try to remove and add Maccy in System Settings -> Privacy & Security -> Accessibility?

@rene78
Copy link

rene78 commented Jan 28, 2023

Tried it just now to no avail unfortunately. Still the same issue.

@p0deje
Copy link
Owner

p0deje commented Jan 28, 2023

@rene78

  1. Can you also try selecting with ⌥+1?
  2. What keyboard layout and OS language do you use?
  3. Can you record a small video with QuickTime showing the problem?

@rene78
Copy link

rene78 commented Jan 28, 2023

  1. Can you also try selecting with ⌥+1?

Does not work either. Gives me this symbol on the German and English keyboard layout: ¡

  1. What keyboard layout and OS language do you use?

German QWERTZ and default English QWERTY. OS language is English.

  1. Can you record a small video with QuickTime showing the problem?

Hmm.. there won't be much to see in the video, I'm afraid.

Just now I have deleted the QWERTZ keyboard layout (so only the default English one is left). Still does not work.

@p0deje
Copy link
Owner

p0deje commented Jan 28, 2023

Does not work either. Gives me this symbol on the German and English keyboard layout: ¡

What do you mean by giving you the symbol? Can you show a screenshot or video?

@rene78
Copy link

rene78 commented Jan 28, 2023

When pressing "Option + 1" this symbol is printed on screen: ¡

@p0deje
Copy link
Owner

p0deje commented Jan 28, 2023

@rene78 You need to pop up Maccy to select anything from the history. After that, you can use the Command+1 shortcuts. Just pressing it in other windows won't do anything.

@rene78
Copy link

rene78 commented Jan 28, 2023

That was my misunderstanding then. Thanks!

@ADTC
Copy link

ADTC commented Jan 30, 2023

@ADTC I've just added a workaround for Dvorak - QWERTY ⌘. It seems to work, but could you try downloading this preview and let me know if it's working fine for you?

@p0deje Good news! In the new version you provided for testing, "Paste automatically" works on the Dvorak - QWERTY ⌘ layout, as well as the standard US layout.

I noticed that the shortcut for making Maccy appear is shown with letter K (when I use V key) but still it works fine with the V key as expected. I also noticed that in SteerMouse, when assigning keyboard shortcuts for Copy and Paste to the extra mouse buttons, they are assigned as J and K instead of C and V. Despite this, the Copy and Paste function works fine from the mouse too. It looks like macOS is translating the keypress of J/K to the keyboard shortcut for C/V on the fly when ⌘ is added.

How did you make it work?

@p0deje
Copy link
Owner

p0deje commented Jan 30, 2023

@ADTC I've made a very specific hack that to take QWERTY keycode when this layout is being used:

Maccy/Maccy/Clipboard.swift

Lines 115 to 120 in 3187db9

// Force QWERTY keycode when keyboard layout switches to
// QWERTY upon pressing ⌘ key (e.g. "Dvorak - QWERTY ⌘").
// See https://github.com/p0deje/Maccy/issues/482 for details.
if KeyboardLayout.current.commandSwitchesToQWERTY && cmdFlag.contains(.maskCommand) {
vCode = KeyChord.pasteKey.QWERTYKeyCode
}

@p0deje
Copy link
Owner

p0deje commented Jan 31, 2023

Ok, I did some research and the app works is Shottr for screenshots. Should be open source. When opened you can see on the screenshot that it automatically assign ⇧+⌘+ě instead of numbers while in app setup is still shortcut for ⇧+⌘+2.
So I am just guessing first it takes whatever it is in row1 and assign the value for operations and it doesn't matter if number or char.

@magneti-cz What behavior would you expect? Should the default ⌘1 be assigned to ⌘ě or ⇧⌘ě?

@ADTC
Copy link

ADTC commented Jan 31, 2023

@p0deje have you considered providing an interface to redefine all the keyboard shortcuts? (including the Paste shortcut for automatic pasting). It could be another tab in the Preferences, with an option to reset them to defaults.

I think the entire section can be disabled at first, with a note that it is only to be used if Maccy doesn't work normally with your keyboard layout.

@magneti-cz
Copy link

magneti-cz commented Jan 31, 2023

Ok, I did some research and the app works is Shottr for screenshots. Should be open source. When opened you can see on the screenshot that it automatically assign ⇧+⌘+ě instead of numbers while in app setup is still shortcut for ⇧+⌘+2.
So I am just guessing first it takes whatever it is in row1 and assign the value for operations and it doesn't matter if number or char.

@magneti-cz What behavior would you expect? Should the default ⌘1 be assigned to ⌘ě or ⇧⌘ě?

@p0deje I would keep the same logic "command"+{first row key} thus ⌘+ for EN ⌘1 . I wouldn't go with extra shift.
(en->cz)
⌘1 -> ⌘+
⌘2 -> ⌘ě
⌘3 -> ⌘š
⌘4 -> ⌘č
⌘5 -> ⌘ř
⌘6 -> ⌘ž
⌘7 -> ⌘ý
⌘8 -> ⌘á
⌘9 -> ⌘í
⌘0 -> ⌘é

thanks.

@ADTC
Copy link

ADTC commented Jan 31, 2023

@p0deje I think the above is best done through an interface to redefine all the keyboard shortcuts (as said in my previous comment). We could have built-in templates to quickly select for certain known keyboard layouts like the one @magneti-cz is using, but also have an option to fully customize when needed.

@p0deje
Copy link
Owner

p0deje commented Jan 31, 2023

@magneti-cz I tracked down the problem to Clipy/Sauce#53, let's see if it can be fixed there.

@p0deje
Copy link
Owner

p0deje commented Jan 31, 2023

@ADTC I think Maccy should handle the keys correctly internally rather than providing an interface to redefine all of them. This would overcomplicate the UI/implementation and users would still complain about default setup.

@p0deje
Copy link
Owner

p0deje commented Feb 17, 2023

Ok, folks, I'd like to close this issue as it has accumulated several different problems and most are already fixed. The only outstanding issue is proper Czech support, but hopefully, it will be fixed in Sauce. Feel free to open new issues for any other problems.

@darylsew
Copy link

for anyone who is still having this issue - I needed to restart after enabling paste automatically, and then it worked!

@Dentrax
Copy link

Dentrax commented Aug 14, 2023

Fresh installed on M1 Ventura and hit this issue.

  • Manually added Accessibility permission
  • Enabled/disabled "Paste automatically"

...but no luck.


This one RESOLVED the issue:

For people having an issue - try adding Maccy to a list of Developer tools applications.
System settings -> Privacy & Security -> Developer tools / press + and add Maccy.

Thanks @sasa-fajkovic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triaging Further information is requested
Projects
None yet
Development

No branches or pull requests