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

Support for Zen Browser #247

Open
CarsonBurke opened this issue Dec 18, 2024 · 1 comment
Open

Support for Zen Browser #247

CarsonBurke opened this issue Dec 18, 2024 · 1 comment

Comments

@CarsonBurke
Copy link

CarsonBurke commented Dec 18, 2024

I don't believe coapp has support for Zen Browser. It would be lovely if it did :). Below are my logs; it doesn't seem to search for or write to Zen Browser's file location.

I have tried the latest extension version from Firefox Extensions and this release https://github.com/aclap-dev/vdhcoapp/releases/tag/v2.0.20

install logs:

Installing…
Flatpak is installed. Making the coapp available from browser sandboxes:
Linked coapp within org.mozilla.firefox.
Linked coapp within com.brave.Browser.
Linked coapp within com.google.Chrome.
Linked coapp within com.google.ChromeDev.
Linked coapp within org.chromium.Chromium.
Linked coapp within com.github.Eloston.UngoogledChromium.
Linked coapp within com.microsoft.Edge.
Linked coapp within com.microsoft.EdgeDev.
Writing /home/marvin/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
Writing /home/marvin/.var/app/org.mozilla.firefox/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
Writing /home/marvin/.config/google-chrome/NativeMessagingHosts/net.downloadhelper.coapp.json
Writing /home/marvin/.config/chromium/NativeMessagingHosts/net.downloadhelper.coapp.json
Writing /home/marvin/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/net.downloadhelper.coapp.json
Writing /home/marvin/.var/app/com.brave.Browser/config/BraveSoftware/Brave-Browser/NativeMessagingHosts/net.downloadhelper.coapp.json
VdhCoApp : VdhCoApp is ready to be used
@Steven0054
Copy link

Steven0054 commented Dec 19, 2024

I have had the same issue with Zen browser:

$ curl -sSLf https://github.com/aclap-dev/vdhcoapp/releases/latest/download/install.sh | bash
Downloading: https://github.com/aclap-dev/vdhcoapp/releases/latest/download/vdhcoapp-linux-x86_64.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 52.8M  100 52.8M    0     0  33.4M      0  0:00:01  0:00:01 --:--:-- 58.9M
Extracting tarball…
/tmp/vdhcoapp-Gyd6H8: bzip2 compressed data, block size = 900k
Registering CoApp
Installing…
Flatpak is installed. Making the coapp available from browser sandboxes:
Linked coapp within org.mozilla.firefox.
Linked coapp within com.brave.Browser.
Linked coapp within com.google.Chrome.
Linked coapp within com.google.ChromeDev.
Linked coapp within org.chromium.Chromium.
Linked coapp within com.github.Eloston.UngoogledChromium.
Linked coapp within com.microsoft.Edge.
Linked coapp within com.microsoft.EdgeDev.
Writing /home/user/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
Writing /home/user/.var/app/org.mozilla.firefox/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
Writing /home/user/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/net.downloadhelper.coapp.json
VdhCoApp : VdhCoApp is ready to be used
CoApp successfuly installed under '~/.local/share/vdhcoapp'.
To uninstall, run '~/.local/share/vdhcoapp/vdhcoapp uninstall' and remove '~/.local/share/vdhcoapp'.
Re-run that script to update the coapp.

I have done the following but the add-on still states CoApp is not installed and rechecking is unsuccessful:

$ flatpak override --user --filesystem=~/.local/share/vdhcoapp io.github.zen_browser.zen
$ flatpak override --user --filesystem=/home/user/dwhelper io.github.zen_browser.zen
$ flatpak permission-set webextensions net.downloadhelper.coapp io.github.zen_browser.zen yes
$ flatpak info --show-permissions io.github.zen_browser.zen
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;fallback-x11;pcsc;cups;
devices=all;
filesystems=xdg-download;/home/user/flatpak-shared;/home/user/dwhelper;~/.local/share/vdhcoapp;
persistent=.zen;

[Session Bus Policy]
org.mpris.MediaPlayer2.firefox.*=own
org.freedesktop.ScreenSaver=talk
org.a11y.Bus=talk
org.mozilla.zen.*=own
org.freedesktop.FileManager1=talk

[System Bus Policy]
org.freedesktop.NetworkManager=talk

[Environment]
GTK_PATH=/app/lib/gtkmodules
MESA_SHADER_CACHE_DIR=$XDG_RUNTIME_DIR/app/$FLATPAK_ID/cache/mesa_shader_cache_db

$ mkdir -p ~/.var/app/io.github.zen_browser.zen/.mozilla/native-messaging-hosts
$ cp /home/user/.var/app/org.mozilla.firefox/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json ~/.var/app/io.github.zen_browser.zen/.mozilla/native-messaging-hosts/
$ ls -la ~/.var/app/io.github.zen_browser.zen/.mozilla/native-messaging-hosts/
total 4
drwxrwxr-x 1 user user  58 Dec 18 19:22 .
drwxrwxr-x 1 user user  44 Dec 18 19:15 ..
-rw-rw-r-- 1 user user 331 Dec 18 19:18 net.downloadhelper.coapp.json

$ cat ~/.var/app/io.github.zen_browser.zen/.mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
{
  "type": "stdio",
  "allowed_extensions": [
    "weh-native-test@downloadhelper.net",
    "video-downloadhelper-dev@aclap.com",
    "{b9db16a4-6edc-47ec-a1f4-b86292ed211d}"
  ],
  "name": "net.downloadhelper.coapp",
  "description": "Video DownloadHelper companion app",
  "path": "/home/user/.local/share/vdhcoapp/vdhcoapp"

$ flatpak run --command=sh io.github.zen_browser.zen
[📦 io.github.zen_browser.zen ~]$ /home/user/.local/share/vdhcoapp/vdhcoapp test
vdhcoapp is running successfully. This is not intended to be used directly from the command line. You should press Ctrl+C to exit. If your browser is unable to detect the coapp, run: "vdhcoapp install".

The most confusing part to me is that from the shell instance of Zen vdhcoapp is clearly shown to run successfully. I feel there is probably something I have overlooked with my aforementioned troubleshooting steps. Any advice would be greatly appreciated.

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

No branches or pull requests

2 participants