我的一些 GNOME shell 扩展不允许我配置它们的功能,因为我在尝试打开它们时收到一条错误消息。下图是我尝试打开“ Web Search Dialog ”扩展的配置时看到的:
白框中的消息是这样的:
Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found
Stack trace:
@/home/ramuyko/.local/share/gnome-shell/extensions/web_search_dialog@awamper.gmail.com/utils.js:17:7
@/home/ramuyko/.local/share/gnome-shell/extensions/web_search_dialog@awamper.gmail.com/prefs.js:26:7
_getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:75:13
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90:31
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5
@<main>:1:43
Run Code Online (Sandbox Code Playgroud)
我认为这个错误不是“Web 搜索对话框”扩展的一个孤立问题,因为我在其他扩展中也收到了同样的错误(比如“ HowDoI ”扩展的配置)。有谁知道它为什么会发生,是否有一个简单的解决方法来解决这个问题?
PS1:我使用 Ubuntu 18.04 和 GNOME Shell 3.28.1。
PS2:虽然我无法配置它的功能,但有这种错误的GNOME shell 扩展工作正常。唯一的问题是访问他们的配置。
error-handling clutter javascript gnome-shell-extension 18.04
当我们在Ubuntu(使用Shift+Prt Scr或Ctrl+ Shift+ Prt Scr)上截取选定区域的屏幕截图时,我们总是选择一个矩形区域。所以,我知道我可以在一些软件上编辑图像,比如 Inkscape 来创建一个带有矩形图像的圆圈,但我想知道是否有我可以更改的配置,以便能够选择不同类型的形状(主要是圆形) ) 直接在我截屏时。
是否可以?
scripts programming productivity software-recommendation screenshot
我想用于desktop files在特定页面上打开 pdf 文件,我尝试使用以下语法创建文件:
[Desktop Entry]
Encoding=UTF-8
Name=mypdf.pdf
Type=Link
URL=file:///home/myhomefolder/mypdf.pdf#page=45
Icon=application-pdf
Run Code Online (Sandbox Code Playgroud)
当我打开这个文件时,默认浏览器会在第 1 页打开我的 pdf 文件,就像它被#page=45视为评论一样,即使我将地址file:///home/myhomefolder/mypdf.pdf#page=45直接粘贴到浏览器上,我也会得到预期的结果(pdf 在第 45 页打开)。 .
我意识到,如果我将这种语法用于 Internet 上的 pdf 文件,它会按预期工作,并且会在我预先确定的页面上打开 pdf,问题仅在于本地文件。是否可以使用桌面文件在特定页面上打开本地 pdf 文件?还是它的限制desktop files?
在Ubuntu 16.04我使用以下命令在我的文件夹中插入图标并且它工作正常:
gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"
Run Code Online (Sandbox Code Playgroud)
升级Ubuntu 18.04到此命令后仍然可以正常工作,但现在我收到一条消息,说它是一个已弃用的工具,它建议我gio set改用:
ramuyko@myPC:~$ gvfs-set-attribute -t string folderIWishToInsertIcon metadata::custom-icon "file:///home/myUser/myIcon.png"
This tool has been deprecated, use 'gio set' instead.
See 'gio help set' for more info.
Run Code Online (Sandbox Code Playgroud)
我看过gio的手册页并尝试使用gio set命令在我的文件夹中插入图标,但我没有成功使用正确的参数。有谁知道这是否可能以及如何做到?
使用命令notify-send,可以在屏幕上显示一小段时间的通知。但我想在我的屏幕上有一个不确定的时间的特定通知。我正在创建一个由用户启动和终止的脚本,对我来说,拥有一个激活通知然后在我的脚本完成后将其停用的命令会很有用。伪代码将是这样的:
#!/bin/bash
activatenotification "my text"
# my script commands
deactivatenotification
Run Code Online (Sandbox Code Playgroud)
有可能吗?是否有这样的命令行工具,或者我可以使用 做类似的事情notify-send吗?
18.04 ×2
scripts ×2
.desktop ×1
clutter ×1
command-line ×1
firefox ×1
gvfs ×1
icons ×1
javascript ×1
notification ×1
notify-send ×1
pdf ×1
productivity ×1
programming ×1
screenshot ×1