Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up on chromium in Linux Mint 20 #36

Open
Coolwhipit opened this issue Jul 15, 2020 · 6 comments
Open

Setting up on chromium in Linux Mint 20 #36

Coolwhipit opened this issue Jul 15, 2020 · 6 comments

Comments

@Coolwhipit
Copy link

Describe the bug
Installed chromium with snapd, after re-enabling/installing on Mint 20, to /home/snap directory. Downloaded native host and tried to set up by both pointing to chromium and pointing to custom path "/home/snap/chromium/NativeMessagingHosts". KDE connect extension continues to say "error: Can not connect to native host" "error: No version response recieved from native host"

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: Linux Mint 20
  • Browser Chromium
  • Version [e.g. 22]

Additional context
I have never used the extension with previous linux mint distros, so I am not sure if this is a mint problem in general...or a mint 20/snap problem.

@pdf
Copy link
Owner

pdf commented Jul 15, 2020

This is almost certainly a snap-related problem. IIRC snaps have some sort of isolation by default, where they can only access certain paths. I have no idea where a snap-installed chromium expects to find its native messaging hosts (in a non-snap install, the system path is usually /etc/chromium/native-messaging-hosts/), but if you can work that out, and place the two files there, you will then need to edit the com.0xc0dedbad.kdeconnect_chrome.json file and update the path field to point to the right location. However, I don't know if snaps behave like a chroot - if they do you would have to trim off the snap prefix from the absolute path outside the snap.

@Coolwhipit
Copy link
Author

Coolwhipit commented Jul 16, 2020 via email

@pdf
Copy link
Owner

pdf commented Jul 16, 2020

I already put the files at said location "/home/user/snap/chromium/nativemessaginghosts"

Are you certain that's where chromium expects to find it? I don't know enough about snaps, or where chromium expects to find its configuration data in this particular snap setup, but that directory structure and path being correct would surprise me greatly. Do you have any documentation or anything that says this is where it should be?

what do you mean trim off trim off the snap prefix?

This would only apply if snaps behave like a chroot, I don't know if they do or not.

@Coolwhipit
Copy link
Author

Coolwhipit commented Jul 16, 2020 via email

@Coolwhipit
Copy link
Author

Coolwhipit commented Jul 16, 2020 via email

@toxix
Copy link

toxix commented Sep 20, 2020

Hey,

I got it running with snap on ubuntu. Was getting a similar error than @Coolwhipit .

Looks like the location for chromium needs to be adjusted to install it together with snap?

 $ ./kdeconnect-chrome-extension -install                                                                                                                                                      
Browser Selection
Select browser(s) for native host installation (Space to select, Enter to confirm):
  ◯  Chrome/Opera
  ◯  Chromium
  ◯  Vivaldi
  ◯  Firefox
> ◉  Custom
Enter the destination native messaging hosts path: /home/$HOME/snap/chromium/common/chromium/NativeMessagingHosts/
Done.

While replacing $HOME with your user name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants