Nicolas Bernaerts 的gnomeshell-extension-manage脚本允许在系统范围内和用户空间中安装和删除GNOME Shell扩展。
安装方法如下:
wget https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/ubuntugnome/gnomeshell-extension-manage
chmod 755 gnomeshell-extension-manage
sudo mv -iv gnomeshell-extension-manage /usr/local/bin/gnome-shell-extension-manage
这使其可用于每个用户:(以及类似的GNOME命令)
$ gnome-shell-extension-manage
Install/remove extension from Gnome Shell Extensions site https://extensions.gnome.org/
Extension ID should be retrieved from https://extensions.gnome.org/extension/<ID>/extension-name/
Version installed will be targeted as the same as Gnome Shell or the next available one
Parameters are :
--install Install extension (default)
--remove Remove extension
--user Installation/remove in user mode (default)
--system Installation/remove in system mode
--version <version> Force Gnome version (use 'latest' to force latest one)
--extension-id <id> Extension ID in Gnome Shell Extension site (compulsory)
该侏儒壳牌-从控制台扩展的管理博客文章中详细介绍了如何使用它。要更新扩展名,您需要添加--version latest
到命令。
从技术上讲,与Ian Brunelli的gnome-shell-extension-installer的两个主要区别是,您可以进行系统范围的安装,wget
而不是curl
下载扩展程序。
cron
工作从/etc/shells
文件中提取shell扩展,并apt-get
为每个值运行更新-只是一个主意。