p0deje / Maccy

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

Paste stopped working #843

Closed dwt closed 1 month ago

dwt commented 2 months ago

Before Submitting Your Bug Report

Maccy Version (see 'About' window)

1.0.0 (31)

macOS Version

10.16

Maccy Settings

{
    "KeyboardShortcuts_delete" = "{\\"carbonKeyCode\\":51,\\"carbonModifiers\\":2048}";
    "KeyboardShortcuts_pin" = "{\\"carbonKeyCode\\":35,\\"carbonModifiers\\":2048}";
    "KeyboardShortcuts_popup" = "{\\"carbonModifiers\\":768,\\"carbonKeyCode\\":9}";
    "LaunchAtLogin__hasMigrated" = 1;
    NSNavPanelExpandedSizeForOpenMode = "{800, 448}";
    "NSStatusItem Preferred Position Item-0" = 407;
    "NSWindow Frame NSNavPanelAutosaveName" = "356 372 800 448 0 0 1512 944 ";
    "NSWindow Frame SUStatusFrame" = "556 607 400 134 0 0 1512 944 ";
    "NSWindow Frame SUUpdateAlert" = "437 409 638 398 0 0 1512 944 ";
    "NSWindow Frame com.sindresorhus.Settings.FrameAutosaveName" = "950 351 547 452 0 0 1512 944 ";
    SUEnableAutomaticChecks = 1;
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2024-08-16 07:19:21 +0000";
    SUUpdateGroupIdentifier = 1002684822;
    WebKitDefaultFontSize = 13;
    WebKitJavaScriptEnabled = 0;
    WebKitPluginsEnabled = 0;
    WebKitStandardFont = "-apple-system-font";
    WebKitUserStyleSheetEnabledPreferenceKey = 1;
    WebKitUserStyleSheetLocationPreferenceKey = "/Users/dwt/Applications/Utilities/Interface Enhancements/Maccy.app/Contents/Frameworks/Sparkle.framework/Resources/ReleaseNotesColorStyle.css";
    avoidTakingFocus = 0;
    enabledPasteboardTypes =     (
        "public.png",
        "public.rtf",
        "public.file-url",
        "public.utf8-plain-text",
        "public.tiff",
        "public.html"
    );
    ignoreEvents = 0;
    ignoredApps =     (
        "com.apple.keychainaccess"
    );
    ignoredPasteboardTypes =     (
        "org.nspasteboard.AutoGeneratedType",
        "Pasteboard generator type",
        "org.nspasteboardConcealedType",
        "org.nspasteboard.TransientType",
        "de.petermaurer.TransientPasteboardType",
        "net.antelle.keeweb",
        "com.typeit4me.clipping",
        "com.agilebits.onepassword"
    );
    menuIcon = clipboard;
    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;
        "2022-11-14-add-html-rtf-to-supported-types" = 1;
        "2023-01-22-add-regexp-search-mode" = 1;
    };
    pasteByDefault = 1;
    searchMode = fuzzy;
    showRecentCopyInMenuBar = 0;
}

Description

Since the last update Maccy has stopped pasting when clicking an entry in the history of pasteboards, or choosing an entry in there with the keyboard.

Things I have checked:

Not quite sure how I bungled this, but tinkering with the various settings doesn't seem to help. :-(

Steps to Reproduce

  1. Open Maccy via shortcut or menu bar
  2. Choose entry to paste via keyboard or mouse
  3. nothing…
dwt commented 2 months ago

Restart also didn't help.

smao-astro commented 2 months ago

Vote for same issue. Please look into it. Thanks.

lexpoig commented 2 months ago

For me, lack of paste seems to be random. Sometimes it'll work, sometimes it won't.

HerrYu123 commented 2 months ago

Vote for same issue. First time to use Maccy

dwt commented 2 months ago

Workaround: Paste in Maccy, then paste again with . So it seems Maccy is writing to the system clipboard, but is unable to trigger the actual paste action into the Application.

dwt commented 1 month ago

I think I found the fix: Removing and then re-adding Maccy in System Preferences > Privacy > Assistive Devices (not quite sure what this is called in English)

Bildschirmfoto 2024-09-03 um 08 56 58

In Actions:

  1. Select Maccy
  2. Remove it from the List with the Minus-Action
  3. Select the Plus Action to re-Add it (and select it in the file chooser that opens)
  4. Check that permissions are re-enabled.

This allowed Maccy to paste again for me.

@p0deje So it seems that the system somehow garbled the permissions for Maccy. Sadly now I cannot really give you a dump of them as they are now fixed for me, but perhaps one of the other persons here that shares the problem can help you? That could allow creating a detector to find such broken permissions.

At the least, I would like to add this knowledge to the FAQ, so that if everything else seems to be correct this can be another 'try this' step.

What do you think?

p0deje commented 1 month ago

Please try upgrading to 2.0 and see if it helps

dwt commented 1 month ago

I didn't have to read the permissions after the update, so ... seems to have worked?