darktrojan / openwith

Open With add-on for Firefox
https://addons.mozilla.org/addon/open-with/
412 stars 70 forks source link

Not working on the newest Snap version of Chromium #275

Open guest73 opened 4 years ago

guest73 commented 4 years ago

Recently Chromium team enforced Snap installation of Chromium browser. I reinstalled my Chromium on Linux and the extension stopped working no matter I did all the regular steps of installation. Can It be fixed somehow?

guest73 commented 3 years ago

Unchecked runtime.lastError: Specified native messaging host not found. Getting this error message.

sebma commented 3 years ago

I, also, have this exact same problem. Installing chromium-browser on ubuntu 20.04 LTS actually installs the chromium snap package :

$ apt-cache show chromium-browser/20.04
Package: chromium-browser
Architecture: amd64
Version: 1:85.0.4183.83-0ubuntu0.20.04.2
Priority: optional
Section: universe/web
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 160
Provides: gnome-www-browser, www-browser, x-www-browser
Pre-Depends: debconf, snapd
Depends: debconf (>= 0.5) | debconf-2.0
Filename: pool/universe/c/chromium-browser/chromium-browser_85.0.4183.83-0ubuntu0.20.04.2_amd64.deb
Size: 48332
MD5sum: 8c904fc6091d53321706e886ae74b1ab
SHA1: 0031b7bb4541e814c7bbaf986f42f6b8c03194d2
SHA256: 905d6e738c576cf798e01c1581df8a6d6b1f4e3feb8434d2fe48b3614cd1d2c1
SHA512: 18b0007e67c5de49c94bf0d4404b37432bc068bc0f461d48bdfcfc49868136504c49e77f40cc825399b7bce448fee6e2554a7c0bc46e7e022b88545170dae2a0
Homepage: https://chromium.googlesource.com/chromium/src/
Description-en: Transitional package - chromium-browser -> chromium snap
 This is a transitional dummy package. It can safely be removed.
 .
 chromium-browser is now replaced by the chromium snap.
Description-md5: 9f69be0b9ae7f70c291004898fbebffb

$ snap list chromium
Name      Version        Rev   Tracking       Publisher   Notes
chromium  92.0.4515.107  1685  latest/stable  canonical✓  -

Debian, however didn't switch to the snap package.

sebma commented 2 years ago

@guest73 I found a little workaround. Create a chromium_snap_start.sh script and type this :

#!/usr/bin/env sh
SNAP=/snap/chromium/current
SNAP=$SNAP bash $SNAP/bin/chromium.launcher &

And then start the chromium snap via that script :

$ chmod u+x chromium_snap_start.sh
$ ./chromium_snap_start.sh

and there the openwith extension works somehow.

sebma commented 2 years ago

@guest73 I just noticed in chrome://version that the profile path is $HOME/.config/chromium/Default instead of $HOME/snap/chromium/common/chromium/Default when chromium is started with bash $SNAP/bin/chromium.launcher &

image

guest73 commented 2 years ago

@semba, thanks for your solution but it seems that this library does not know how to work with snap.

Filbuntu commented 1 year ago

Has anybody found a solution?