22

Using this guide which is for Ubuntu 20.04 (and worked successfully in that version with GNOME version 3.36.8) what are the installation requirements in 22.04 LTS to avoid the following error message?

Although GNOME Shell integration extension is running, native host connector is not detected. Refer documentation for instructions about installing connector

I have taken the step sudo apt install chrome-gnome-shell but to no avail.

The version of GNOME in 22.04 LTS is v42.0.

Have I missed something vital?

graham
  • 13,061

2 Answers2

51

Use the Extension Manager instead. It has less steps to getting the extensions compared to getting through the GNOME shell add-on integration with Firefox. You can install it by opening a terminal and running:

sudo apt-get update
sudo apt-get upgrade
sudo apt install gnome-shell-extension-manager

Once installed, you can use the GUI and search for extensions compatible with 22.04.

Note: GNOME extensions can no longer be installed via Firefox in Ubuntu 22.04 by default, since Firefox now comes as a snap package.

ManOnTheMoon
  • 1,512
  • 8
  • 21
0

You don't need to rely on GUI, that is time consuming and ineffective. Instead, just run this Unix shell script

#!/usr/bin/env bash
### GNOME extensions ###
# List of extension URLs (replace with more URLs as needed)
urls=(
  'https://extensions.gnome.org/extension/28/gtile/'
  'https://extensions.gnome.org/extension/517/caffeine/'
  'https://extensions.gnome.org/extension/545/hide-top-bar/'
)

Loop through each URL

for url in "${urls[@]}"; do echo "url = ${url}"

get package metadata

id=$(echo "${url}" | cut --delimiter=/ --fields=5) url_pkg_metadata="https://extensions.gnome.org/extension-info/?pk=${id}"

Extract data for each extension

uuid=$(curl -s "$url_pkg_metadata" | jq -r '.uuid' | tr -d '@') latest_extension_version=$(curl -s "$url_pkg_metadata" | jq -r '.shell_version_map | to_entries | max_by(.value.version) | .value.version') latest_shell_version=$(curl -s "$url_pkg_metadata" | jq -r '.shell_version_map | to_entries | max_by(.value.version) | .key')

get package

filename="${uuid}.v${latest_extension_version}.shell-extension.zip" url_pkg="https://extensions.gnome.org/extension-data/${filename}" wget -P /tmp "${url_pkg}"

install package

gnome-extensions install "/tmp/${filename}"

Print the results

echo "For URL: $url" echo "UUID: $uuid" echo "Latest extension version: $latest_extension_version" echo "Latest shell version: $latest_shell_version" echo "--------------------------------------" done

Replace the extension URLs to those you are interested in. For further info, see here.