# 2021-01-06 #「GNOME 3」- 设置快捷键,来运行应用

问题描述

我们需要设置截图快捷键,以便在按下快捷键时进行截图。

解决方法

在 Settings / Devices / Keyboard 中,我们可以添加快捷键,但是有两种方法运行应用:
1)直接指定应用的运行命令;
2)使用 gtk-launch 命令:gtk-launch xxx.desktop

我们推荐 2)方法,其中:xxx.desktop 可以为任何 .desktop 文件;无需制定路径,会自行搜索;可以省略 .desktop 后缀。

参考文献

K4NZ/设置快捷键,来运行应用
Setting a key shortcut to run an application in GNOME :: Fedora Docs
command line - Running a .desktop file in the terminal - Ask Ubuntu


posted @ 2021-01-06 19:34  研究林纳斯写的  阅读(86)  评论(0编辑  收藏  举报