kdeconnect-chrome-extension icon indicating copy to clipboard operation
kdeconnect-chrome-extension copied to clipboard

KDE sees my device but not the Firefox extention...

Open Jiminimonka opened this issue 4 years ago • 25 comments

Manjaro KDE Plasma Kernel 5.6.8

The phone is connected but Firefox KDE icon has a red ! on it.

Jiminimonka avatar May 06 '20 10:05 Jiminimonka

Did you successfully install the native host application per the README in this repository? If you click on the extension icon, what does it say?

pdf avatar May 06 '20 11:05 pdf

I'm seeing this same issue with Firefox 78.0.2 with FreeBSD 12.1. My phone and computer can see each other, but the Firefox extension just has an Orange exclamation mark and if I click on it there are no devices listed. I did compile the kdeconnect-chrome-extension binary and ran kdeconnect-chrome-extension -install making sure to select "Firefox" from the list.

2020-07-22-191509_319x290_scrot

vendion avatar Jul 22 '20 23:07 vendion

This is a different question to the OP @vendion let's continue in #37

pdf avatar Jul 22 '20 23:07 pdf

There is no windows 10 support then?

DefectiveByDesign avatar Jun 04 '21 01:06 DefectiveByDesign

@DefectiveByDesign see #4 #39

pdf avatar Jun 04 '21 02:06 pdf

I have this problem on arch linux, swaywm, vivaldi-snapshot. kdeconnect-indicator shows my device, vivaldi extension says no devices found. I did ' ./kdeconnect-chrome-extension -install' and selected Vivaldi, assuming this would work for vivaldi-snapshot.

HarHarLinks avatar Aug 29 '21 11:08 HarHarLinks

@HarHarLinks if vivaldi-snapshot stores its user data in a different location to standard vivaldi, you'll need to copy ~/.config/vivaldi/NativeMessagingHosts/ to the equivalent config directory. I'm afraid I can't test if that's the case though, and I'm not certain how it's packaged.

pdf avatar Aug 29 '21 13:08 pdf

I did ln -s ~/.config/vivaldi/NativeMessagingHosts ~/.config/vivaldi-snapshot/NativeMessagingHosts and it started working. Perhaps it is possible for you to add snapshot to the install menu or create this symlink etc.


I am using another NativeMessaging plugin (https://github.com/smorks/keepassnatmsg) that resides in the folder you mention and works from there. The rest of it's config is in ~/.config/vivaldi-snapshot/ but there isn't a second NativeMessagingHosts directory in there which reinforces my assumption that it should have worked in the first place?

HarHarLinks avatar Aug 29 '21 16:08 HarHarLinks

I am using another NativeMessaging plugin (https://github.com/smorks/keepassnatmsg) that resides in the folder you mention and works from there.

That's very confusing then. Are you certain you restarted the browser after install?

pdf avatar Aug 29 '21 21:08 pdf

I had the browser extension already installed from chrome webstore. I then closed the browser before running the binary from the release file. When after starting the browser again it wasn't connected, I submitted my first comment here above.

HarHarLinks avatar Aug 30 '21 09:08 HarHarLinks

Then I have no idea why one native host would work, and the other wouldn't. Extremely confusing :confused:

pdf avatar Aug 30 '21 10:08 pdf

Connection through Firefox and Chromium extension fails with

Error: no version response received from native host
No devices found

This used to work. I can send links from Android phone to my desktop just fine, but not the other way around. Sending files from desktop to Android also works.

Ubuntu 22.04, Firefox and Chromium, kdeconnect-chrome-extension installed

ChristianNext avatar Jun 22 '22 13:06 ChristianNext

@ChristianNext please try re-installing the native host from the releases section of this repository.

pdf avatar Jun 22 '22 21:06 pdf

Exactly the same issue in Parabola (Arch-like) with Iceweasel (re-branded firefox). KDE Connect is connected to my Android phone but the extension has the exclamation mark. Tried installing the native host system-wide and per-user but nothing.

Megver83 avatar Jul 17 '22 20:07 Megver83

Exactly the same issue in Parabola (Arch-like) with Iceweasel (re-branded firefox). KDE Connect is connected to my Android phone but the extension has the exclamation mark. Tried installing the native host system-wide and per-user but nothing.

Yiu'll probably need to work out where IceWeasel puts its native hosts and do a custom install.

pdf avatar Jul 17 '22 22:07 pdf

Iceweasel has the same native hosts paths as firefox

Megver83 avatar Jul 17 '22 22:07 Megver83

Iceweasel has the same native hosts paths as firefox

I cannot find Iceweasel in any major distributions to test. Even Debian has removed it, and they created it. Unless you mean the GNU version, but that's been Icecat for many years.

pdf avatar Jul 19 '22 21:07 pdf

Yes, Debian removed it but Parabola continued the branding. Anyways, for some unknown reason now it is working.

Megver83 avatar Jul 20 '22 04:07 Megver83

Having the same problem for some time now, on FireFox 103.0.2 (64-bit) Manjaro Xfce ( kernel Linux 5.15.60-1). Phone is connected to same local network or connected via USB-port on PC KDE-Connect client ( version 22.04.3-1 ) on PC is able to connect to the phone

But in FireFox I get this error-message Error: could not connect to native host Error: no version response received from native host

Any ideas on this issue? Thanks, Ronald

ReCorno66 avatar Oct 05 '22 22:10 ReCorno66

I'm pretty sure it's because firefox-snap in jammy jellyfish doesn't support NativeMessaging protocol, per release notes:

The Firefox snap does not support the NativeMessaging protocol yet but this feature is planned to be added soon. This means for instance that installing GNOME Shell extensions from Firefox won’t work. As a workaround, you can try the gnome-shell-extension-manager app.

More info: https://launchpad.net/bugs/1741074 https://bugzilla.mozilla.org/show_bug.cgi?id=1661935 https://forum.snapcraft.io/t/call-for-testing-native-messaging-support-in-the-firefox-snap/31055/31

HTH, Ben

benyamin-codez avatar Oct 10 '22 22:10 benyamin-codez

Facing same issue on arch with dwm. kde connect notification service works, but browser extension doesn't

  • I found that when i open kde-connect-app it shows Device disconnected, i have to wait 2-3 seconds and it connects to the device automatically. and the browser extension works perfectly fine.
  • I guess your kde-connect-app should be running on the background.

kevin-roan avatar May 25 '23 05:05 kevin-roan

@kevin-roan that behaviour is expected - the browser extension just communicates with the main application, so it has to be running for the extension to work. On KDE for example, it's started automatically by default.

Thanks for noting your experience.

pdf avatar May 25 '23 05:05 pdf

I had this issue. Long story short it looks like the installer might be crashing when it goes to set permissions.

When ran as root creates the files these files in /usr/lib/mozilla

com.0xc0dedbad.kdeconnect_chrome com.0xc0dedbad.kdeconnect_chrome.json

However it fails to set the proper permissions. com.0xc0dedbad.kdeconnect_chrome has execute permissions, but nether file is granted read access to nonroot users.

I fixed my permissions and it error went away, and it's working now. Yay!

I did it from dolphin but I think you could use:

sudo chmod 755 /lib/mozilla/native-messaging-hosts/com.0xc0dedbad.kdeconnect_chrome
sudo chmod 755 /lib/mozilla/native-messaging-hosts/com.0xc0dedbad.kdeconnect_chrome.json

to try to fix it

snetsplit avatar Oct 01 '23 20:10 snetsplit

Nevermind, now it can list my kde connected devices but the send button is grayed out, and it lists all of them even the offline ones

snetsplit avatar Oct 01 '23 20:10 snetsplit

but nether file is granted read access to nonroot users.

I hadn't considered that users might have a restrictive umask in place, which sounds like the case here, we can set perms explicitly for system-wide install I suppose.

Nevermind, now it can list my kde connected devices but the send button is grayed out, and it lists all of them even the offline ones

This is #56 I've done most of the work to fix this for recent KDE Connect versions, but probably won't be able to finish it until next week.

pdf avatar Oct 01 '23 21:10 pdf