Assistance Needed with GNOME Browser Connector Integration
Hello everyone,
I am trying to integrate the GNOME browser connector application. After reading the guide on GitHub, everything seems to be in order. I checked if the JSON files are in the correct location, and they appear to be fine.
$ git clone https://gitlab.gnome.org/GNOME/gnome-browser-connector.git
Cloning into 'gnome-browser-connector'...
remote: Enumerating objects: 4008, done.
remote: Counting objects: 100% (73/73), done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 4008 (delta 28), reused 48 (delta 17), pack-reused 3935 (from 1)
Receiving objects: 100% (4008/4008), 945.73 KiB | 1.70 MiB/s, done.
Resolving deltas: 100% (2722/2722), done.
assistenza@PT-IT02~ $ cd gnome-browser-connector
assistenza@PT-IT02~/gnome-browser-connector (master) $ meson --prefix=/usr builddir
The Meson build system
Version: 1.7.0
Source dir: /home/assistenza/gnome-browser-connector
Build dir: /home/assistenza/gnome-browser-connector/builddir
Build type: native build
Project name: gnome-browser-connector
Project version: 42.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 (gi) found: YES (/usr/bin/python3) modules: gi
meson.build:24: WARNING: Project does not target a minimum version but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead
Configuring gnome-browser-connector using configuration
Configuring gnome-browser-connector-host using configuration
Configuring org.gnome.browser_connector.json using configuration
meson.build:55: WARNING: Project does not target a minimum version but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead
Configuring org.gnome.chrome_gnome_shell.json with command
meson.build:79: WARNING: Project does not target a minimum version but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead
Configuring firefox-org.gnome.browser_connector.json with command
meson.build:93: WARNING: Project does not target a minimum version but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead
Configuring firefox-org.gnome.chrome_gnome_shell.json with command
Configuring org.gnome.BrowserConnector.service using configuration
Configuring org.gnome.BrowserConnector.desktop using configuration
Build targets in project: 0
WARNING: Deprecated features used:
* 0.55.0: {'ExternalProgram.path'}
gnome-browser-connector 42.1
User defined options
prefix: /usr
Found ninja-1.12.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
~/gnome-browser-connector (master) $ cd builddir
~/gnome-browser-connector/builddir (master) $ meson install
ninja: Entering directory `/home/assistenza/gnome-browser-connector/builddir'
ninja: no work to do.
Installing subdir /home/assistenza/gnome-browser-connector/gnome_browser_connector to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/base.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installation failed due to insufficient permissions.
Attempt to use /usr/bin/sudo to gain elevated privileges? [y/n] y
Password:
Installing subdir /home/assistenza/gnome-browser-connector/gnome_browser_connector to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/base.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/logs.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/version.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/connector.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/main.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/constants.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/application.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/service.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/helpers.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/__init__.py to /usr/lib/python3.13/site-packages/gnome_browser_connector
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/__pycache__/version.cpython-313.pyc to /usr/lib/python3.13/site-packages/gnome_browser_connector/__pycache__
Installing /home/assistenza/gnome-browser-connector/gnome_browser_connector/__pycache__/__init__.cpython-313.pyc to /usr/lib/python3.13/site-packages/gnome_browser_connector/__pycache__
Installing /home/assistenza/gnome-browser-connector/builddir/gnome-browser-connector to /usr/bin
Installing /home/assistenza/gnome-browser-connector/builddir/gnome-browser-connector-host to /usr/bin
Installing /home/assistenza/gnome-browser-connector/builddir/org.gnome.browser_connector.json to /etc/chromium/native-messaging-hosts
Installing /home/assistenza/gnome-browser-connector/builddir/org.gnome.chrome_gnome_shell.json to /etc/chromium/native-messaging-hosts
Installing /home/assistenza/gnome-browser-connector/builddir/org.gnome.browser_connector.json to /etc/opt/chrome/native-messaging-hosts
Installing /home/assistenza/gnome-browser-connector/builddir/org.gnome.chrome_gnome_shell.json to /etc/opt/chrome/native-messaging-hosts
Installing /home/assistenza/gnome-browser-connector/builddir/firefox-org.gnome.browser_connector.json to /usr/lib64/mozilla/native-messaging-hosts
Installing /home/assistenza/gnome-browser-connector/builddir/firefox-org.gnome.chrome_gnome_shell.json to /usr/lib64/mozilla/native-messaging-hosts
Installing /home/assistenza/gnome-browser-connector/builddir/org.gnome.BrowserConnector.service to /usr/share/dbus-1/services
Installing /home/assistenza/gnome-browser-connector/builddir/org.gnome.BrowserConnector.desktop to /usr/share/applications
Installing /home/assistenza/gnome-browser-connector/contrib/icons/GnomeLogo-16.png to /usr/share/icons/hicolor/16x16/apps
Installing /home/assistenza/gnome-browser-connector/contrib/icons/GnomeLogo-48.png to /usr/share/icons/hicolor/48x48/apps
Installing /home/assistenza/gnome-browser-connector/contrib/icons/GnomeLogo-128.png to /usr/share/icons/hicolor/128x128/apps
Running custom install script '/usr/bin/python3 /home/assistenza/gnome-browser-connector/builddir/meson-private/pycompile.py python-3.13-installed.json 0'
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/base.py'...
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/logs.py'...
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/version.py'...
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/connector.py'...
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/main.py'...
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/constants.py'...
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/application.py'...
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/service.py'...
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/helpers.py'...
Compiling '/usr/lib/python3.13/site-packages/gnome_browser_connector/__init__.py'...
However, the results are as follows:
On Firefox 136, I get: No such native application org.gnome.chrome_gnome_shell
On Chrome via Flatpak, I get: Although GNOME Shell integration extension is running, native host connector is not detected. Refer to the documentation for instructions about installing the connector.
What am I doing wrong? My goal is to get it working on Firefox.
$ cat /etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
{
"name": "org.gnome.chrome_gnome_shell",
"description": "OS-native connector counterpart for GNOME Shell browser extension",
"path": "/usr/bin/gnome-browser-connector-host",
"type": "stdio",
"allowed_origins": [
"chrome-extension://gphhapmejobijbbhgpjhcjognlahblep/"
]
}
$ ls/usr/lib64/mozilla/native-messaging-hosts//
org.gnome.browser_connector.json org.gnome.chrome_gnome_shell.json
$ cat /usr/lib64/mozilla/native-messaging-hosts/firefox-org.gnome.browser_connector.json
cat: /usr/lib64/mozilla/native-messaging-hosts/firefox-org.gnome.browser_connector.json: No such file or directory
Thank you in advance for your help!
Looks like something that we should be adding to this distro at least so you don't need to install it yourself. I'm unsure about how to configure it though unfortunately so I'm not going to be much help there.
Hrm well actually this last released two years ago so I'm less sure about adding it now and also not so sure if it would be working due to potentially missing needed changes.
Hrm well actually this last released two years ago so I'm less sure about adding it now and also not so sure if it would be working due to potentially missing needed changes.
Hi Willian, Please keep me updated on any developments. The reason for my request is that I’ve recently been experimenting with Arch Linux, and in this case, the browser connector is necessary for adding missing functionalities in GNOME.
For instance, I’ve added dimming for secondary (unused) windows, which helps me stay more focused on the main window. The first time I saw this feature was as a customization by Asus on a ZenBook OLED running Windows.