在Ubuntu16.04中,通过右键单击码头上的屏幕截图应用程序,可以选择“选择选定区域的屏幕快照”。
在Ubuntu18.04中,这个选项消失了。
如何恢复?
org.gnome.Screenshot.desktop文件包含:
[Desktop Entry]
Name[en_GB]=Screenshot
... other translations
Name=Screenshot
Comment[en_GB]=Save images of your screen or individual windows
... other translations
Comment=Save images of your screen or individual windows
Keywords[en_GB]=snapshot;capture;print;screenshot;
... other translations
Keywords=snapshot;capture;print;screenshot;
Exec=gnome-screenshot --interactive
Terminal=false
Type=Application
Icon=applets-screenshooter
StartupNotify=true
Categories=GTK;GNOME;Utility;X-GNOME-Utilities;
NotShowIn=KDE;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-utils
X-GNOME-Bugzilla-Component=screenshot
# Disable broken actions https://pad.lv/1720262
# Actions=screen-shot;window-shot;area-shot
Actions=screen-shot;
DBusActivatable=true
[Desktop Action screen-shot]
Name[en_GB]=Take a Screenshot of the Whole Screen
... other translations
Name=Take a Screenshot of the Whole Screen
Exec=gnome-screenshot
[Desktop Action window-shot]
Name[en_GB]=Take a Screenshot of the Current Window
... other translations
Name=Take a Screenshot of the Current Window
Exec=gnome-screenshot -w
[Desktop Action area-shot]
Name=Take a Screenshot of a Selected Area
Exec=gnome-screenshot -a发布于 2019-05-22 07:41:42
window-shot和area-shot操作在.desktop文件中被禁用。更改
Actions=screen-shot;行到
Actions=screen-shot;window-shot;area-shot;(或者,如果您只想要“选择区域的截图”操作,请避免使用window-shot;部件)。
不建议直接在.desktop中编辑/usr/share/applications/文件。相反,首先将文件复制到~/.local/share/applications/目录,然后编辑复制的文件。
注意:由于臭虫,这些操作是故意禁用的。看来这个bug是(部分的?)现在修好了。如果它仍然不起作用,等待适当的修复发布。
https://askubuntu.com/questions/1145280
复制相似问题