我试图使用命令" gnome -software -- install =ID“来安装一个名为"blyr”的gnome shell扩展。然而,我似乎无法让cmd做我想做的事。如何使用此cmd通过cmd行安装shell扩展?
外壳扩展可以在gnome-software --> Add-ons --> Shell Extensions中找到。或者,cmd $ gnome-software --search blyr将导致扩展出现在"gnome-software“中。
下面是我得到的错误信息。
$ gnome-software --install=blyr #Nothing happens
$
$ sudo gnome-software --install=blyr
04:40:46:0158 Gs enabled plugins: systemd-updates, packagekit-offline, fwupd, packagekit, packagekit-refine-repos, os-release, desktop-categories, packagekit-upgrade, packagekit-url-to-app, packagekit-proxy, packagekit-local, packagekit-refresh, appstream, desktop-menu-path, hardcoded-blacklist, generic-updates, packagekit-refine, steam, rewrite-resource, odrs, hardcoded-featured, modalias, hardcoded-popular, packagekit-history, provenance, icons, provenance-license, key-colors, key-colors-metadata
04:40:46:0158 Gs disabled plugins: ubuntuone, dummy, dpkg, repos, shell-extensions, epiphany, snap
04:40:46:0856 Gs Need to use a valid unique-id: blyr
#Thereafter, nothing happens and I have to press Ctrl C to escape.
$ sudo gnome-software --install=blyr@yozoon.dev.gmail.com
04:48:55:0162 Gs enabled plugins: systemd-updates, packagekit-offline, fwupd, packagekit, packagekit-refine-repos, os-release, desktop-categories, packagekit-upgrade, packagekit-url-to-app, packagekit-proxy, packagekit-local, packagekit-refresh, appstream, desktop-menu-path, hardcoded-blacklist, generic-updates, packagekit-refine, steam, rewrite-resource, odrs, hardcoded-featured, modalias, hardcoded-popular, packagekit-history, provenance, icons, provenance-license, key-colors, key-colors-metadata
04:48:55:0162 Gs disabled plugins: ubuntuone, dummy, dpkg, repos, shell-extensions, epiphany, snap
04:48:55:0786 Gs Need to use a valid unique-id: blyr@yozoon.dev.gmail.com
#Thereafter, nothing happens and I have to press Ctrl C to escape.我从这里获得了shell扩展uuid。
$ gnome-software --help
Usage:
gnome-software [OPTION…]
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gapplication Show GApplication options
--help-gtk Show GTK+ Options
Application Options:
--mode=MODE Start up mode: either ‘updates’, ‘updated’, ‘installed’ or ‘overview’
--search=SEARCH Search for applications
--details=ID Show application details (using application ID)
--details-pkg=PKGNAME Show application details (using package name)
--install=ID Install the application (using application ID)
--local-filename=FILENAME Open a local package file
--interaction The kind of interaction expected for this action: either ‘none’, ‘notify’, or ‘full’
--verbose Show verbose debugging information
--profile Show profiling information for the service
--quit Quit the running instance
--prefer-local Prefer local file sources to AppStream
--version Show version number
--display=DISPLAY X display to use在--help之后,gnome-software --details=ID是语法。我试过:
$ gnome-software --details=blyr # This works.
$ gnome-software --details=blyr@yozoon.dev.gmail.com # Did not works.这个结果显示了ID应该具有blyr的值。因此,我不理解错误Need to use a valid unique-id: blyr。
发布于 2019-08-27 06:49:11
以下是布莱作者推荐的内容。引用:
git clone git@github.com:yozoon/gnome-shell-extension-blyr.git
cd gnome-shell-extension-blyr/
make local-install然后重新启动Shell并启用扩展。
要删除扩展,只需运行:
make local-uninstall注意:
一些Ubuntu用户报告说,preferences对话框在GNOME微调应用程序打开后没有出现。要解决这个问题,请安装gtk杂波绑定,如下所示
sudo apt install gir1.2-gtkclutter-1.0https://askubuntu.com/questions/1168786
复制相似问题