Gnome-Screenshot GUI:哪個指令啟動它?

Gnome-Screenshot GUI:哪個指令啟動它?

我有興趣設定一個鍵盤快捷鍵來啟動 Gnome Screenshot 的圖形使用者介面。但是我無法找到啟動 GUI 的命令。

執行gnome-screenshot只是截圖,這不是我感興趣的。

答案1

您可能會尋找互動模式

man gnome-screenshot

  -i, --interactive
          Interactively set options in a dialog.

使用:

gnome-screenshot -i

更一般地說,要在選單中取得 GUI 啟動器的命令,請尋找其.desktop檔案。例子:

more /usr/share/applications/org.gnome.Screenshot.desktop

我們在哪裡看到:

[Desktop Entry]
Name=Screenshot
Comment=Save images of your screen or individual windows
(...)
Exec=gnome-screenshot --interactive  # <-- here it is!
(...)

或使用自由選單工具。


更新:截至v41(2021 年 11 月),Gnome Screenshot 檔案的路徑已從原始答案中.desktop更改。/usr/share/applications/gnome-screenshot.desktop

答案2

對於不開啟 GUI 的其他螢幕截圖選項:

gnome-screenshot -a 抓取使用者選擇的螢幕區域

gnome-screenshot -w 抓取一個視窗而不是整個螢幕

gnome-screenshot -c 將螢幕擷取直接傳送到剪貼簿


有關其他選項,請在終端機中鍵入命令 -help

gnome-screenshot -help

相關內容