Bug 396525 - Failed to connect to the native host. Make sure the 'plasma-browser-integration' package is installed.
Summary: Failed to connect to the native host. Make sure the 'plasma-browser-integrati...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: Chrome (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 442443 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-07-15 08:35 UTC by majoballs
Modified: 2022-06-23 06:42 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Plasma integration with Chromium does not work. (37.86 KB, image/png)
2022-06-23 00:39 UTC, Dimitri Bolt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description majoballs 2018-07-15 08:35:56 UTC
When start the browser, the message "Failed to connect to the native host. Make sure the 'plasma-browser-integration' package is installed." appears. The application is of course installed. Lack of any functionality.
Comment 1 Kai Uwe Broulik 2018-07-16 08:36:11 UTC
What distribution is this? Can you check the file /etc/opt/chrome/native-messaging-hosts/org.kde.plasma.browser_integration.json and see whether the application under "path" is actually present.
Comment 2 Fabian Vogt 2018-07-16 08:36:49 UTC
Which files did the plasma-browser-integration package install?

Where is your browser (please provide exact vendor and version) installed?
Comment 3 majoballs 2018-07-16 08:59:18 UTC
Distribution is KaOS.
Chrome 69.0.3486.0
Browser is installed in /opt/google/chrome-unstable/

The path in file is /usr/bin/plasma-browser-integration-host
Comment 4 Fabian Vogt 2018-07-16 09:00:14 UTC
(In reply to majoballs from comment #3)
> Distribution is KaOS.
> Chrome 69.0.3486.0
> Browser is installed in /opt/google/chrome-unstable/
> 
> The path in file is /usr/bin/plasma-browser-integration-host

Copy /etc/opt/chrome/native-messaging-hosts/org.kde.plasma.browser_integration.json to /etc/opt/chrome-unstable/native-messaging-hosts/org.kde.plasma.browser_integration.json and try again. Does it work?
Comment 5 majoballs 2018-07-16 12:09:09 UTC
(In reply to Fabian Vogt from comment #4)
> (In reply to majoballs from comment #3)
> > Distribution is KaOS.
> > Chrome 69.0.3486.0
> > Browser is installed in /opt/google/chrome-unstable/
> > 
> > The path in file is /usr/bin/plasma-browser-integration-host
> 
> Copy
> /etc/opt/chrome/native-messaging-hosts/org.kde.plasma.browser_integration.
> json to
> /etc/opt/chrome-unstable/native-messaging-hosts/org.kde.plasma.
> browser_integration.json and try again. Does it work?

Clarifying the location of paths. I do not have the paths you have given me. There is only one: 
/opt/google/chrome-unstable/native-messaging-hosts/org.kde.plasma.browser_integration.json
And that's it. There is nothing to copy.
Comment 6 Christoph Feck 2018-08-03 15:41:52 UTC
Thanks for the update; changing status.
Comment 7 ignus.gracia+bugs.kde.org 2018-08-29 17:34:37 UTC
I'm having the same issue but with chromium-dev version 69.0.3497.12 as well as chromium version 68.0.3440.106 and plasma-browser-integration version 5.13.4

It does work correctly with firefox 61.0.2 and I think it also worked correctly with chrome.
Comment 8 ignus.gracia+bugs.kde.org 2018-08-29 17:45:33 UTC
(In reply to Ignus G. from comment #7)
> I'm having the same issue but with chromium-dev version 69.0.3497.12 as well
> as chromium version 68.0.3440.106 and plasma-browser-integration version
> 5.13.4
> 
> It does work correctly with firefox 61.0.2 and I think it also worked
> correctly with chrome.

The plasma-browser-integration creates a file /etc/chromium/native-messaging-hosts/org.kde.plasma.browser_integration.json

Tried copying it to where my chromium lives in /usr/lib/chromium-dev/native-messaging-hosts/ but it didn't work
Comment 9 Rik Mills 2018-09-12 17:39:59 UTC
Plasma browser integration works ok with the build of Chrome provided by Google, with plasma-browser-integration allowed to install as intended to:

/etc/opt/chrome/native-messaging-hosts/org.kde.plasma.browser_integration.json

In Kaos it appears that they provide a Chrome package which is basically a repack of the official google-chrome-unstable amd64 .deb package with some extra things added, hence not installed/using the standard stable Chrome paths p-b-i expects.

In addition pkgbuild of their p-b-i package does:

mkdir -p ${pkgdir}/opt/google/chrome-unstable/native-messaging-hosts
mv ${pkgdir}/etc/opt/chrome/native-messaging-hosts/org.kde.plasma.browser_integration.json ${pkgdir}/opt/google/chrome-unstable/native-messaging-hosts/org.kde.plasma.browser_integration.json
rm -r ${pkgdir}/etc/opt

so obviously trying to make p-b-i work with their distro provided Chrome.

So at least for Kaos, I would suspect this is a downstream distro issue in their implementation, and not a KDE bug.
Comment 10 Andrey Shelyapin 2018-12-15 17:37:13 UTC
I have a similar issue with Firefox 64 installed to "/opt/firefox/".
"Plasma integration" addon refuses to start because of lacking "plasma-browser-integration" package.
System default browser with the same version (executable "/usr/bin/firefox", the same user profile) works properly with the addon, so it's likely that the reason of the bug relates to non-standard browser installation path.
Comment 11 Kai Uwe Broulik 2018-12-18 10:41:26 UTC
Closing this now. If it works with official packaging I am not responsible for and do not care about any needless downstream fuzzing with paths.
Comment 12 Kai Uwe Broulik 2021-09-14 18:59:09 UTC
*** Bug 442443 has been marked as a duplicate of this bug. ***
Comment 13 Dimitri Bolt 2022-06-23 00:39:07 UTC
Created attachment 150077 [details]
Plasma integration with Chromium does not work.

Plasma integration with Chromium does not work.
Comment 14 Dimitri Bolt 2022-06-23 00:39:57 UTC
Plasma integration with Chromium does not work.
Comment 15 Fabian Vogt 2022-06-23 06:42:16 UTC
Please open a downstream bug report.