Snipaste / feedback

Feedback & wiki for Snipaste https://snipaste.com
2.94k stars 193 forks source link

GNOME 46 + Wayland `DBus call to screenshot failed: Screenshot is not allowed` #2922

Closed everyx closed 2 months ago

everyx commented 2 months ago

联系方式

lunt.luo@gmail.com

发生了什么?

看到最新 beta 版本支持截图了,试了一下,在 GNOME 46 Wayland 下,不能正常截图,日志如下:

[2024-04-26 15:47:19.330] [I] Parsing command arguments [2]: (sp, paste)
[2024-04-26 15:47:22.520] [I] Parsing command arguments [2]: (sp, snip)
[2024-04-26 15:47:22.720] [I] Snip request: 0 (dest: 0)
[2024-04-26 15:47:22.720] [I] Snipper: preparing...
[2024-04-26 15:47:22.720] [I] Desktop: QRect(0, 0, 1920 x 2280)
[2024-04-26 15:47:22.720] [I] Screenshot source: org.gnome.Shell.Screenshot
[2024-04-26 15:47:22.723] [W] DBus call to screenshot failed: Screenshot is not allowed
[2024-04-26 15:47:22.723] [W] Null screenshot

应该是和 https://github.com/flameshot-org/flameshot/issues/1910 的情况类似 解决方案可以参考 https://github.com/flameshot-org/flameshot/pull/2035

运行平台

Linux

软件版本

2.9 Beta

liulex commented 2 months ago

麻烦贴一下以下两条命令的输出:

$ echo $XDG_CURRENT_DESKTOP
$ cat /usr/share/gnome/gnome-version.xml
everyx commented 2 months ago

@liulex

❯ echo $XDG_CURRENT_DESKTOP
GNOME

❯ cat /usr/share/gnome/gnome-version.xml
cat: /usr/share/gnome/gnome-version.xml: No such file or directory

❯ gnome-shell --version
GNOME Shell 46.1
liulex commented 2 months ago

@everyx 试一下最新的 2.9 Beta2,应该修复了。

everyx commented 2 months ago

@everyx 试一下最新的 2.9 Beta2,应该修复了。

可以了 👍