desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Plasma Integration not working

Open Vecos opened this issue 2 years ago • 79 comments

What happened?

I'm experiencing issues with Plasma Integration while using the Zen Browser on Debian with KDE The integration does not seem to function as expected. I have also tested Plasma Integration with Firefox and Firefox Nightly, where it works without any issues.

Additional Information:

  • KDE Plasma version: 5.27.11
  • OS: Debian testing
  • Zen Browser version: 1.0.0-a.23 Screenshot_20240820_175820

Reproducible?

  • [X] I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.0.0-a.23

Severity impact

Low

What platform are you seeing the problem on?

Linux

Relevant log output

No response

Vecos avatar Aug 20 '24 16:08 Vecos

Just wanted to say that I'm also experiencing this issue on OpenSuse Tumbleweed, Plasma 6.1.4, using the archive download version 1.0.0-a.33 (64-bit). I'm not using the flatpak version, so I don't think it is a result of lack of native messaging support. I do have the native host installed and working, as I also have vanilla Firefox connecting with no problems.

watermelvin avatar Aug 31 '24 13:08 watermelvin

I am on Fedora 40 and am having the same issue with the Plasma Integration extension.

I was able to fix it by making sure the org.kde.plasma.browser_integration.json file exists in ~/.mozilla/native-messaging-hosts.

Yes, it needs to be inside the .mozilla folder, it won't work if it's in the .zen folder.

The JSON file looks like:

{
  "name": "org.kde.plasma.browser_integration",
  "description": "Native connector for KDE Plasma",
  "path": "/usr/bin/plasma-browser-integration-host",
  "type": "stdio",
  "allowed_extensions": ["[email protected]"]
}

NTICompass avatar Oct 30 '24 17:10 NTICompass

Hi, @Vecos. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • The Plasma Integration add-on was not working on the Zen Browser on Debian with KDE.
  • The issue was also reported by other users on OpenSuse Tumbleweed and Fedora 40.
  • NTICompass suggested a solution involving the placement of a configuration file, which resolved the issue.

Next Steps

  • Please confirm if this issue is still relevant to the latest version of the desktop repository. If so, you can keep the discussion open by commenting here.
  • If there is no further activity, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Dec 04 '24 16:12 dosubot[bot]

This issue is still relevant on my system using version 1.0.1-a.22 as Flatpak. OS: Fedora 40 KDE Plasma 6.2.4

Lord-Vlad avatar Dec 04 '24 16:12 Lord-Vlad

@mauro-balades, the user Lord-Vlad has confirmed that the issue with the Plasma Integration add-on is still relevant on their system using version 1.0.1-a.22 as Flatpak on Fedora 40 KDE Plasma 6.2.4. Could you please assist them with this issue?

dosubot[bot] avatar Dec 04 '24 16:12 dosubot[bot]

This issue is still relevant on my system using version 1.0.1-a.22 as Flatpak. OS: Fedora 40 KDE Plasma 6.2.4

I don't think Native Messaging works in Flatpak.

See: https://github.com/flatpak/xdg-desktop-portal/issues/655

NTICompass avatar Dec 05 '24 16:12 NTICompass

@Vecos are you still getting this issue on b.2?

salamijason avatar Dec 15 '24 08:12 salamijason

While I'm not the original author of this, I can confirm this issue is still a thing in Zen b-2

My OS is Fedora 41, the KDE spin, and I installed Zen Browser through the AppImage (so it's not the flatpak native messaging issue, it's a zen issue). Plasma Integration also works perfectly on Firefox, installed on the same system. The workaround as per described by NTICompass works perfectly, but it would be great if we didn't need to use a workaround.

YouCanTouCan avatar Dec 18 '24 04:12 YouCanTouCan

Im on Fedora 41 KDE Plasma, with latest zen Appimage, I was able to get it to work, by doing the Workaround as well.

looking how native firefox did not create the file, and we had to add it for zen, I guess there should be some kind of discovery protocol?

snoweuph avatar Jan 06 '25 19:01 snoweuph

@YouCanTouCan do you have: /usr/lib64/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json as well? I think Zen as an Appimage is just not discoverying all the important dirs.

snoweuph avatar Jan 06 '25 19:01 snoweuph

dnf provides /usr/lib64/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json
Updating and loading repositories:
Repositories loaded.
plasma-browser-integration-6.2.5-1.fc41.x86_64 : plasma-browser-integration provides components necessary to integrate browsers into the Plasma Desktop
Repo         : @System
Matched From : 
Filename     : /usr/lib64/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json

plasma-browser-integration-6.2.1-1.fc41.x86_64 : plasma-browser-integration provides components necessary to integrate browsers into the Plasma Desktop
Repo         : fedora
Matched From : 
Filename     : /usr/lib64/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json

plasma-browser-integration-6.2.5-1.fc41.x86_64 : plasma-browser-integration provides components necessary to integrate browsers into the Plasma Desktop
Repo         : updates
Matched From : 
Filename     : /usr/lib64/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json

looking at it, its provided by the Plasma Extension and not Firefox, so it should be good enough to add more mozzila dir discovery to Zen. basicly:

  • /usr/lib/mozilla
  • /usr/lib64/mozilla
  • /etc//mozilla
  • /opt/mozilla

and all Linux distros should be included I think

snoweuph avatar Jan 06 '25 20:01 snoweuph

@YouCanTouCan do you have: /usr/lib64/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json as well? I think Zen as an Appimage is just not discoverying all the important dirs.

I do have a /usr/lib64/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json.

it should be good enough to add more mozzila dir discovery to Zen.

I agree with this, it seems like the issue is just zen not searching the right locations.

Edit: I had gotten different issues muddled in my head, so the initial version of this comment included information about me swapping from the AppImage to the Tarball version of Zen - which has no bearing on this issue... sorry.

YouCanTouCan avatar Jan 06 '25 20:01 YouCanTouCan

@dosubot we tracked down the issue to Zen not looking in all possible mozilla folders, where vaniall fierofx would look into https://github.com/zen-browser/desktop/issues/349#issuecomment-2573828439 has a few more details

snoweuph avatar Jan 06 '25 22:01 snoweuph

Hey @salamijason! I'm here to help you with any bugs, questions, or contributions. Let me know how I can assist while you wait for a human maintainer.

Could you provide more details about the specific steps you've taken to troubleshoot the issue with Plasma Integration on the Zen Browser? Additionally, have you tried any other workarounds or configurations that might have affected the integration?

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

dosubot[bot] avatar Jan 06 '25 22:01 dosubot[bot]

@dosu tell me about the architecture, my goal is to add more dirs to be read by zen besides the .mozilla folder getting enough info would mean that I could possibly create a PR with a fix

snoweuph avatar Jan 06 '25 22:01 snoweuph

Hey @snoweuph - at the moment Dosu only responds to the OP and maintainers to minimize noise on threads.

We are working on ways to "fork" or continue a conversation with Dosu outside the original issue for moments like these.

devstein avatar Jan 06 '25 22:01 devstein

Could anyone try on twilight if this has been fixed? Thanks

mr-cheffy avatar Jan 07 '25 20:01 mr-cheffy

The Zen Browser currently uses the .mozilla directory for native messaging host configurations, as indicated by the workaround shared in the conversation. To add more directories for Zen to search, you would need to modify the directory discovery mechanism to include additional paths like /usr/lib/mozilla, /usr/lib64/mozilla, /etc/mozilla, and /opt/mozilla, which are commonly used by other browsers like Firefox.

Unfortunately, I couldn't find specific details about the current directory discovery mechanism in the Zen Browser codebase. However, you might want to look into the configuration files or environment variables that influence these paths. For instance, the moz.configure file includes an environment variable ZEN_FIREFOX_VERSION and a --with-user-appdir option that sets the default user application directory, which might be relevant to your task [1].

To proceed, you could explore the codebase for any modules or components related to native messaging host discovery and modify them to include the additional directories. Once you have identified the relevant parts of the code, you can implement the changes and test them to ensure they work as expected before creating a pull request.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

dosubot[bot] avatar Jan 07 '25 20:01 dosubot[bot]

Dosu, im going to pull the plug on you man

mr-cheffy avatar Jan 07 '25 20:01 mr-cheffy

@mauro-balades not fixed in latest twilight (the one 6 hours ago)

Ive removed the file in the .mozilla folder for this test

using the 64bit appimage

snoweuph avatar Jan 07 '25 22:01 snoweuph