GithubHelp home page GithubHelp logo

Comments (17)

indaleto avatar indaleto commented on August 27, 2024 1

It's working here too. Thanks...

from gnome-shell-extension-gsconnect.

andyholmes avatar andyholmes commented on August 27, 2024 1

No problem :) In future it will just be installed automatically since it's just a < 1KB file. I guess at the time it made sense to make it a switch and put the links there.

from gnome-shell-extension-gsconnect.

andyholmes avatar andyholmes commented on August 27, 2024

It's currently only possible to run the WebExtension in one (running) browser at a time since the native messaging host (connector between Shell and Browser) is currently restricted to a single instance. If only Firefox or Chrome is running when the extension is loaded it should be able to connect, but both can't connect at the same time.

This is a restriction I might lift in future releases of the Gnome Shell extension, but I haven't investigated the consequences of what might happen if two native messaging hosts are running at the same time or if one fails to exit when the browser closes.

You can leave this bug open though, and I'll come back to it when I get a chance.

from gnome-shell-extension-gsconnect.

nneto avatar nneto commented on August 27, 2024

But even before installing the addon on Firefox, it wasn't working on Chrome, and while Firefox isn't running, it still doesn't work here on Chrome.

from gnome-shell-extension-gsconnect.

andyholmes avatar andyholmes commented on August 27, 2024

Could you open chrome://extensions/ then enable "Developer mode" at the top and click "Inspect views: background.html" to see if there are any errors related to connecting to the native messaging host?

screenshot from 2017-12-17 00-58-46

from gnome-shell-extension-gsconnect.

indaleto avatar indaleto commented on August 27, 2024

I have this problem with 65.0 chrome version. The message I've found is:
Disconnected from native host: Specified native messaging host not found. onDisconnect @ background.js:266

from gnome-shell-extension-gsconnect.

andyholmes avatar andyholmes commented on August 27, 2024

Okay, apparently the native messaging host manifest needs to be installed in different directories for chromium, chrome-stable, chrome-beta and chrome-unstable. I'll have to clean this up later, but this zip should work for you (the WebExtension itself works as-is):

[email protected]

from gnome-shell-extension-gsconnect.

indaleto avatar indaleto commented on August 27, 2024

Thanks for your reply but
Nop, now it gives multiple errors:
Error in event handler for runtime.onMessage: TypeError: Cannot read property 'postMessage' of null at postMessage (<URL>) at onMessage (<URL>) at <URL> background.html:1 Error in event handler for runtime.onMessage: TypeError: Cannot read property 'postMessage' of null at postMessage (chrome-extension://jfnifeihccihocjbfcfhicmmgpjicaec/js/background.js:47:10) at onMessage (chrome-extension://jfnifeihccihocjbfcfhicmmgpjicaec/js/background.js:67:9) at chrome-extension://jfnifeihccihocjbfcfhicmmgpjicaec/js/browser-polyfill.min.js:1:6026

background.js:266 Disconnected from native host: Specified native messaging host not found. onDisconnect @ background.js:266 background.js:64 REQUEST: {"type":"devices"} background.js:42 SEND: {"type":"devices"}

Missing message parameters postMessage @ background.js:45 background.js:64 REQUEST: {"type":"devices"} background.js:42 SEND: {"type":"devices"}

Disconnected from native host: Specified native messaging host not found. onDisconnect @ background.js:266 2background.js:266 Disconnected from native host: Specified native messaging host not found. onDisconnect @ background.js:266 EventImpl.dispatchToListener @ extensions::event_bindings:403 publicClassPrototype.(anonymous function) @ extensions::utils:138 EventImpl.dispatch_ @ extensions::event_bindings:387 EventImpl.dispatch @ extensions::event_bindings:409 publicClassPrototype.(anonymous function) @ extensions::utils:138 dispatchOnDisconnect @ extensions::messaging:378 background.js:64 REQUEST: {"type":"devices"} background.js:42 SEND: {"type":"devices"}

from gnome-shell-extension-gsconnect.

andyholmes avatar andyholmes commented on August 27, 2024

Seems to be the same error, could you confirm the native messaging host manifest was installed correctly?

$ ls ~/.config/google-chrome-unstable/NativeMessagingHosts/
org.gnome.shell.extensions.gsconnect.json

If so try to disable then re-enable the WebExtension

from gnome-shell-extension-gsconnect.

nneto avatar nneto commented on August 27, 2024

I just had to copy the content from the zip and it's working now without errors here.

edit: just to make clear, the problem was the same @indaleto reported: "Disconnected from native host: Specified native messaging host not found. onDisconnect @ background.js:266". After using the zip, I didn't have other problems. I confirmed the native messaging host manifest was installed correctly.

from gnome-shell-extension-gsconnect.

andyholmes avatar andyholmes commented on August 27, 2024

That's great, I'll wait for @indaleto to confirm its fixed with that zip then close the bug. Thanks for testing.

from gnome-shell-extension-gsconnect.

nneto avatar nneto commented on August 27, 2024

One question: now that the extension is working in both Chrome Unstable and Firefox, and I can send links from both of them while both are open, I don't get what you meant with "If only Firefox or Chrome is running when the extension is loaded it should be able to connect, but both can't connect at the same time".

from gnome-shell-extension-gsconnect.

andyholmes avatar andyholmes commented on August 27, 2024

Yep, that was fixed in v8+, now it can run as many instances as necessary. It will exit whenever the browser exits, so there's no danger in running multiple instances or zombie processes.

You could run it in firefox, chrome, chrome beta and chrome unstable at the same time if you wanted.

from gnome-shell-extension-gsconnect.

andyholmes avatar andyholmes commented on August 27, 2024

I'm closing this as I'm confident it's been fixed in git.

from gnome-shell-extension-gsconnect.

alcarraz avatar alcarraz commented on August 27, 2024

I'm having this problem for a while I don't have the ~/.config/google-chrome/NativeMessagingHosts/ folder even though I tried uninstalling and reinstalling the chrome extension.

from gnome-shell-extension-gsconnect.

andyholmes avatar andyholmes commented on August 27, 2024

Have you enabled Web Browser Integration in the preferences?

from gnome-shell-extension-gsconnect.

alcarraz avatar alcarraz commented on August 27, 2024

oups didn't remember that step, I feel so ashamed , sadly googling for the message didn't provide that.

from gnome-shell-extension-gsconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.