我刚刚安装了 Ubuntu 20.04,它的 gnome shell 扩展似乎存在问题:
我能做什么?(有日志可以读取吗?)
编辑:安装扩展时,我可以在 journalctl 中看到:
févr. 08 10:58:46 V21BSJ gnome-shell[1686]: JS ERROR: Extension [email protected]: Error: Requiring GT
op, version none: Typelib file for namespace 'GTop' (any version) not found
@/home/bastiensevajol/.local/share/gnome-shell/extensions/systemMonitor@gnome-shell-extensions.
gcampax.github.com/extension.js:4:14
_callExtensionInit@resource:///org/gnome/shell/ui/extensionSystem.js:425:13
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:346:27
callback@resource:///org/gnome/shell/ui/extensionDownloader.js:234:39
gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13
编辑2,安装后sudo apt install gir1.2-gtop-2.0 libgtop2-dev
,扩展安装失败:
févr. 08 11:06:49 V21BSJ gnome-shell[1686]: JS ERROR: Extension [email protected]: TypeError: Main.messageTray._messageTrayMenuButton is undefined
enable@/home/bastiensevajol/.local/share/gnome-shell/extensions/[email protected]/extension.js:324:19
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:82:27
_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:167:32
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:349:26
callback@resource:///org/gnome/shell/ui/extensionDownloader.js:234:39
gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13
答案1
[email protected]
是一个非常过时的扩展。这就是 javascript 错误的原因。