andy-portmen / native-client

Native Messaging component for Windows, Linux, and Mac OS that is written in NodeJS.
https://add0n.com/open-in.html
Mozilla Public License 2.0
727 stars 474 forks source link

Does not work on ubuntu 22 firefox snap version #125

Open secondstrikerss opened 1 year ago

secondstrikerss commented 1 year ago

I tried this extension, installed client native app successfully, But this is not working. Debugger in console, message is OperationError: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/portal/desktop/session/1_595/firefox_com_add0n_node_2731148420”

Mohammad-gif commented 1 year ago

Ra:/`-′·′one_,-'sorna,.coconut pipe—bronex|°

yoyoma2 commented 6 months ago

Also does not work on up to date ubuntu 24.04 LTS in firefox. Tried linux.zip and linux-bunjs-beta.zip and they install successfully but the "Check Connection" always fails.

55555hedi commented 6 months ago

Have you tried resetting your network system?

Le ven. 24 mai 2024, 05:16, yoyoma2 @.***> a écrit :

Also does not work on up to date ubuntu 24.04 LTS in firefox. Tried linux.zip and linux-bunjs-beta.zip and they install successfully but the "Check Connection" always fails.

— Reply to this email directly, view it on GitHub https://github.com/andy-portmen/native-client/issues/125#issuecomment-2128435282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIH4MAYXMGKDGVWUH2ANI23ZD2WJLAVCNFSM6AAAAAA6OHBANKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRYGQZTKMRYGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

yoyoma2 commented 6 months ago

Rebooted and trying to use the add-on still it brings up the "One Last Step" page even though the ">>> host is ready <<<" appeared after installing the native client. The "Check Connection" button on that page says: "Cannot find the native client. Follow the 3 steps to install the native client". This is a vanilla ubuntu 24.04 and firefox installation.

izderadicka commented 4 months ago

This helps on Ubuntu installed via snap :

ln -s ~/snap/firefox/common/.mozilla/ ~/.mozilla
yoyoma2 commented 4 months ago

This helps on Ubuntu installed via snap :

ln -s ~/snap/firefox/common/.mozilla/ ~/.mozilla

That didn't work for ubuntu 24.04 LTS. That command created a ~/.mozilla/.mozilla symbolic link. Did you mean?

ln -s ~/snap/firefox/common/.mozilla ~

The symlink gives two paths to the com.add0n.node.json installed by install.sh. What are the two paths that work on your system with your symlink?

$ ls ~/.mozilla/native-messaging-hosts/com.add0n.node.json
/home/myuser/.mozilla/native-messaging-hosts/com.add0n.node.json
$ ls ~/snap/firefox/common/.mozilla/native-messaging-hosts/com.add0n.node.json
/home/myuser/snap/firefox/common/.mozilla/native-messaging-hosts/com.add0n.node.json
izderadicka commented 4 months ago

I do have rather new install of Ubuntu 24.04. and it works.

On Ubuntu default FF is installed via snap, so it's config files are not in the directory script expects. This this if fixed by creating symbolic link - script expects in at ~/.mozilla - which is default location if you install FF from .deb.

There is also this issue #119 - you might need to to fix run.sh script accordingly.

yoyoma2 commented 4 months ago

Manually applying the change from issue #119 then re-running install.sh fixed it.

I also kept the .mozilla symbolic link you previously suggested. My ubuntu 24.04 LTS is an upgrade so if a ~/.mozilla folder already exists it needs to be removed and replaced by the symlink.

Thanks for your help @izderadicka!