首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >禁用gnome-屏幕截图的“照相机闪光灯”动画

禁用gnome-屏幕截图的“照相机闪光灯”动画
EN

Ask Ubuntu用户
提问于 2016-11-27 23:11:47
回答 1查看 1.8K关注 0票数 17

如何禁用gnome-屏幕截图‘相机闪光灯’动画(从黑色淡出)?我已经用sudo mv /usr/share/sounds/freedesktop/stereo/camera-shutter.oga /usr/share/sounds/freedesktop/stereo/camera-shutter-disabled.oga禁用了相机快门的声音。在Dconf编辑器中(在/org/gnome/gnome-screenshot下)似乎没有这样的设置。

EN

回答 1

Ask Ubuntu用户

发布于 2021-08-09 17:56:45

不幸的是没有办法让这个..。我正在寻找工作工具来抓取Ubuntu焦点的屏幕(以前我使用过scrot,但它停止工作了,现在只有gnome-screenshot仍在将屏幕内容转储到文件中,但使用了恼人的闪光灯)。所以我重新编译了https://github.com/GNOME/gnome-screenshot的源代码

  1. git clone https://github.com/GNOME/gnome-screenshot.git && cd gnome-screenshot
  2. 在文件src/screenshot-backend-shell.c中,用FALSE, /* flash */替换所有出现的TRUE, /* flash */ (可以使用sed命令:sed -i 's#TRUE, /\* flash \*/#FALSE, /\* flash \*/#' src/screenshot-backend-shell.c)
  3. 安装依赖项(在我的示例中是mesonninja-buildlibgtk-3-devlibhandy-1-dev)
  4. 编译项目:
    • meson setup build
    • meson test -C build

  5. 享受您的新gnome-screenshot工具没有闪存:./build/src/gnome-screenshot --file out.jpg
票数 5
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/854350

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档