在 Ubuntu Gnome 14.04 中更改 gnome-screenshot 自动保存目录

在 Ubuntu Gnome 14.04 中更改 gnome-screenshot 自动保存目录

使用dconfgconf按照建议进行配置这个帖子在 Ubuntu Gnome 13.10 上有效(我试过并且成功了)。但在 Ubuntu Gnome 14.04 上无效。

如何在 Ubuntu Gnome 14.04 上auto-save-directory进行更改?gnome-screenshot

答案1

编辑

读完此文后文章和这个问题好像在Ubuntu-Gnome 14.04(gnome 3.10)使用键盘快捷键截屏,例如:Print由 shell 处理(gnome 设置守护进程媒体键)保存文件至〜/图片而不是通过 gnome-screenshot 应用程序。

我已经安装了 Ubuntu Gnome 14.04 来测试它。

1)我将自动保存目录设置为/tmp

  • gsettings set org.gnome.gnome-screenshot auto-save-directory '/tmp'

2)我禁用了键盘快捷键Print,并创建了一个新的来运行gnome 截图Ctrl使用快捷键+ Alt+命令H。然后我按下新的快捷键,屏幕截图出现在/tmp目录。

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

因此,设置自动保存目录值适用于 gnome-screenshot,但要解决这个问题,您可以尝试禁用屏幕截图的默认键盘快捷键,并通过运行 gnome-screenshot 命令创建新的键盘快捷键。

gnome-screenshots 命令示例:

整个屏幕:gnome-screenshot
抓取一个窗口:screen gnome-screenshot -w
抓取一个区域:screen gnome-screenshot -a
将抓取内容发送到剪贴板:gnome-screenshot -c
交互:gnome-screenshot -i


您可以使用以下方式设置目录dconf命令。

命令行

在这个例子中,我将设置我的下载目录。

dconf write /org/gnome/gnome-screenshot auto-save-directory \'/home/youruser/Downloads\'

请输入文件夹的完整路径...我的情况/主页/虚拟/下载

具有dconf-编辑器 安装 dconf-editor

在此处输入图片描述

答案2

只需安装 dconf-editor:

sudo apt-get install dconf-editor

打开 dconf-editor 并编辑auto-save-directory字段(见下图):

  • org> gnome>gnome-screenshot

截屏

相关内容