Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
everyx opened this issue Apr 26, 2024 · 4 comments
Closed

Comments

@everyx
Copy link

everyx commented Apr 26, 2024

联系方式

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

应该是和 flameshot-org/flameshot#1910 的情况类似
解决方案可以参考 flameshot-org/flameshot#2035

运行平台

Linux

软件版本

2.9 Beta

@everyx everyx changed the title GNOME 41+ Wayland DBus call to screenshot failed: Screenshot is not allowed GNOME 46 + Wayland DBus call to screenshot failed: Screenshot is not allowed Apr 26, 2024
@liulex
Copy link
Member

liulex commented Apr 26, 2024

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

$ echo $XDG_CURRENT_DESKTOP
$ cat /usr/share/gnome/gnome-version.xml

@everyx
Copy link
Author

everyx commented Apr 26, 2024

@liulex

echo $XDG_CURRENT_DESKTOP
GNOMEcat /usr/share/gnome/gnome-version.xml
cat: /usr/share/gnome/gnome-version.xml: No such file or directorygnome-shell --version
GNOME Shell 46.1

@liulex
Copy link
Member

liulex commented Apr 27, 2024

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

@everyx
Copy link
Author

everyx commented Apr 27, 2024

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

可以了 👍

@everyx everyx closed this as completed Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants