Skip to content

Conversation

@taoky
Copy link
Contributor

@taoky taoky commented Dec 3, 2025

Note: clipsync.py is generated by LLM.

Closes: #218.

@flathubbot
Copy link
Contributor

🚧 Test build enqueued.

@flathubbot
Copy link
Contributor

🚧 Started test build.

@flathubbot
Copy link
Contributor

🚧 Test build enqueued.

@flathubbot
Copy link
Contributor

Test build was cancelled.

Help
  • bot, build - Restart the test build
  • bot, ping admins - Contact Flathub admins

@flathubbot
Copy link
Contributor

🚧 Started test build.

@flathubbot
Copy link
Contributor

Test build succeeded. To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/232953/com.qq.QQ.flatpakref

Built for aarch64 and x86_64 architectures.

⚠️ Linter warnings:

Warnings can be promoted to errors in the future. Please try to resolve them.

  • 'appstream-screenshot-missing-caption' warning found in linter repo check. Details: One or more screenshots are missing captions in the Metainfo file

@flathubbot
Copy link
Contributor

🚧 Test build enqueued.

@flathubbot
Copy link
Contributor

🚧 Started test build.

@flathubbot
Copy link
Contributor

Test build succeeded. To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/233002/com.qq.QQ.flatpakref

Built for aarch64 and x86_64 architectures.

⚠️ Linter warnings:

Warnings can be promoted to errors in the future. Please try to resolve them.

  • 'appstream-screenshot-missing-caption' warning found in linter repo check. Details: One or more screenshots are missing captions in the Metainfo file

@flathubbot
Copy link
Contributor

🚧 Test build enqueued.

@flathubbot
Copy link
Contributor

🚧 Started test build.

@flathubbot
Copy link
Contributor

Test build succeeded. To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/233023/com.qq.QQ.flatpakref

Built for aarch64 and x86_64 architectures.

⚠️ Linter warnings:

Warnings can be promoted to errors in the future. Please try to resolve them.

  • 'appstream-screenshot-missing-caption' warning found in linter repo check. Details: One or more screenshots are missing captions in the Metainfo file

@StarsEnd33A2D17
Copy link

StarsEnd33A2D17 commented Dec 4, 2025

A window titled “wl-clipboard” may appear unexpectedly, which can cause focus issues (see bugaevc/wl-clipboard#268).

for example, in niri v25.11, you need to add the following window-rule as a workaround:
It turns out that copying is not triggered when the window has no focus, so this workaround doesn’t work :(

window-rule {
    match title="wl-clipboard"
    open-focused false
    open-floating true
}

@Integral-Tech
Copy link
Collaborator

Unfortunately, QQ only supports x-special/gnome-copied-files MIME type for copied files:

proc = CompletedProcess(args=['xclip', '-selection', 'clipboard', '-out', '-target', 'TARGETS'], returncode=0, stdout='QQ_Unicode_RichEdit_Format\nx-special/gnome-copied-files\n', stderr='')

@arenekosreal
Copy link
Contributor

arenekosreal commented Dec 4, 2025

Nesting xvfb, clipsync and zypak-wrapper together just for fixing QQ's misbehaving on Wayland, what a horrible thing I think. As for my personal opinion, I prefer doing what we have done in https://github.com/flathub/com.qq.QQ/blob/master/patch/rename.cpp, we inject something in QQ's native code to workaround this problem. But I do not do any research about it, hope we can find correct hook point if we have to do so.

If we need to inject Electron part, there has already been a tool: https://github.com/ShellWen/v8_killer

Using xvfb increases memory usage for about 40MB. It is acceptable here compared to QQ itself's memory usage.

P.S.: If we have no choice, current implementation is also acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

无法将qq内的图片复制到外部的剪贴板

5 participants