记录flameshot在gnome上无法使用的问题:
问题描述:
安装flameshot后在显示应用程序当中点击后毫无反应并且在terminal当中启动也是没有半点输出。
问题的初步解决:
到官网上面查看了一些说明文档,里面描述:
Can’t screen anything on Wayland Gnome
Symptom: Launcher (right-click on tray icon, then “Open Launcher”) does not show anything in the preview section (left-side of the window)
You install xdg-desktop-portal-gnome and xdg-desktop-portal.
这里指出需要安装:
xdg-desktop-portal-gnome , xdg-desktop-portal
这两个包。于是:
( 先说明,我使用的是arch系的系统,其他包管理软件见相关文档)
sudo pacman -S xdg-desktop-portal-gnome xdg-desktop-portal
安装完成后点击应用程序当中的flameshot还是没有反应,但是这个时候在terminal当中输入截图命令倒是有了反应。
flameshot gui
这样子怎么说,截图软件总算是能够使用了,为了使用方便,将软件添加到快捷键当中。
在设置当中添加快捷键:
在里面按照上面的命令添加,这里我使用的是 ‘Shift’ + 'PrtSc’按键进行截屏。
这样子就可以正常使用flameshot进行截图使用。
下面附加一些flameshot的指令,方便使用。
Example commands:
- 捕捉屏幕图像,并且使用UI界面:
flameshot gui
- capture with GUI with custom save path:
flameshot gui --path ~/myStuff/captures
- open GUI with a delay of 2 seconds:
flameshot gui --delay 2000
- fullscreen capture (asking savepath):
flameshot full
- fullscreen capture with custom save path (no GUI) and delayed:
flameshot full --path ~/myStuff/captures --delay 5000
- fullscreen capture with custom save path copying to clipboard:
flameshot full --clipboard --path ~/myStuff/captures
参考文献:
flameshot 官方文档
Flameshot not launching when using Wayland