Comments (17)
It's working here too. Thanks...
from gnome-shell-extension-gsconnect.
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.
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.
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.
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?
from gnome-shell-extension-gsconnect.
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.
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):
from gnome-shell-extension-gsconnect.
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.
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.
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.
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.
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.
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.
I'm closing this as I'm confident it's been fixed in git.
from gnome-shell-extension-gsconnect.
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.
Have you enabled Web Browser Integration in the preferences?
from gnome-shell-extension-gsconnect.
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)
- Can't Share multiple files at the same time HOT 1
- Error and not working HOT 1
- Remote Input plugin not working with X11 HOT 1
- Music thumbnail not updating in phone HOT 2
- Gnome shell crashing when trying to lock the screen.
- Still doesn't work with Ubuntu 24.04 and Gnome Shell 46.0 HOT 5
- Extension manager doesnt allow to enable "an error occured while loading this extension" HOT 1
- File system mouting doesn't work at all from 1.31.1 HOT 2
- GSConnect service crashes on startup
- Android mounting doesn't work HOT 1
- cannot mount phone anymore HOT 1
- Backspace key, Enter key not working when using remote input (keyboard) feature HOT 1
- SMS verification code quality-of-life improvements HOT 4
- Implement a banner in gs-connect if OpenSSL or any similar dependency is not detected or encounters an issue HOT 3
- Telephone Audio? HOT 2
- Presentation Control on Wayland unreliable HOT 2
- Customize Notification Action per application
- After reboot, GSConnect re-enables itself despite not being enabled before reboot HOT 1
- Notice Deprecated bluetooth_chooser_button_set_property bluetooth_verify_address HOT 1
- Can't find my device HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-shell-extension-gsconnect.