Enable 'chrome-gnome-shell' in Firefox Nightly

A short guide about slapping your PDF's with a cover-page!

Introduction

The process of installing extensions for your gnome-shell is not as simple as installing addons from your browser store. One has to first install a package by the name of GNOME Shell-integration from the browser store and also chrome-gnome-shell to enable Gnome-extension to install, remove and configure the installed Gnome extensions.

Procedure

To enable the installation of Gnome extension on the Firefox browser installed from nixpkgs we are required to add chrome-gnome-shell to our installed packages in environment.systemPackages and later inform the Firefox wrapper to enable chrome-gnome-shell for our Firefox browser:

1
2
3
4
5
environment.systemPackages = [
  chrome-gnome-shell
];

nixpkgs.config.firefox.enableGnomeExtensions = true;`

This solution does not work for Firefox browsers installed through the Mozilla overlay. Therefore the user ought to link the nix-store generated org.gnome.chrome_gnome_shell.json to ~/.mozilla/native-messaging-hosts/ everytime chrome-gnome-shell it has been updated. Not an ideal solution if not automated and one of the several methods used to automate such process is done through appending the following lines to your home.nix to allow Home-Manager to automate the process for you:

1
2
home.file.".mozilla/native-messaging-hosts/org.gnome.chrome_gnome_shell.json".source = "${pkgs.chrome-gnome-shell}/lib/mozilla/native-messaging-hosts/org.gnome.chrome_gnome_shell.json";
    };

Congratulations

You now have a functional solution which enables you to manage your Gnome-shell extensions! If you have a better solution, please do tell me by either submitting an issue or a PR informing me about it!

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus