kuba2k2 / firefox-webserial

WebSerial API Polyfill for Mozilla Firefox browser
https://addons.mozilla.org/en-US/firefox/addon/webserial-for-firefox/
MIT License
90 stars 9 forks source link

don't work under linux lubuntu 24.04 lts #12

Open iw2evk opened 1 month ago

iw2evk commented 1 month ago

Hi,

i've installed oin linux lubuntu 24.04 LTS. I've used the compressed version fronm mozilla site because the Snap version bloking the usb ports. I've installed on /home/iw2evk/firefox/native-messaging-hosts the 2 files as you suggested in instructions after restart i tray on https://whosmatt.github.io/uvmod/ (press patch firmware / flash directy) At this point with Chrome a kist od usb adress appear, on firefox only a message regarding not installed extensionb , but it's not true ! In console of browser the error is : ExtensionError: No such native application io.github.kuba2k2.webserial ExtensionUtils.sys.mjs:48:5 ExtensionError resource://gre/modules/ExtensionUtils.sys.mjs:48 startupPromise resource://gre/modules/NativeMessaging.sys.mjs:80 How can i start the webserial service ? Thanks Roberto iw2evk

kuba2k2 commented 1 month ago

This is not the correct path. It should be ".mozilla", not "firefox". Try using the script installation method that is in the README.

iw2evk commented 1 month ago

Make as suggested.. Error parsing native manifest /home/iw2evk/.mozilla/native-messaging-hosts/io.github.kuba2k2.webserial.json: JSON.parse: unexpected end of data at line 3 column 1 of the JSON data NativeManifests.sys.mjs:98 _tryPath resource://gre/modules/NativeManifests.sys.mjs:98 AsyncFunctionThrow self-hosted:811

My io.github.kuba2k2.webserial.json

{ "name": "io.github.kuba2k2.webserial", "description": "WebSerial for Firefox", "path": "/home/iw2evk/mozilla/native-messaging-hosts/firefox-webserial", "type": "stdio", "allowed_extensions": ["webserial@kuba2k2.github.io"] }

My path : /home/iw2evk/mozilla/native-messaging-hosts

Nothing to do .

reedstrm commented 1 week ago

Did you remember to chmod +x firefox-webserial to make it executable? I just installed on 24.01.1 LTS and I missed that. :)