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

Cosmic-screenshot panick #36

Open
wesbluemarine opened this issue Jun 6, 2024 · 4 comments
Open

Cosmic-screenshot panick #36

wesbluemarine opened this issue Jun 6, 2024 · 4 comments

Comments

@wesbluemarine
Copy link

Screenshot tool does not work on cosmic-base (looks like the same issue of cosmic-greeter).

makaba@fedora:~$ sudo setenforce 0 && getenforce
setenforce: SELinux is disabled
makaba@fedora:~$ cosmic-screenshot --interactive=false --modal=false
thread 'main' panicked at src/main.rs:69:10:
failed to send screenshot request: Zbus(MethodError(OwnedErrorName(ErrorName(Str(Owned("org.freedesktop.DBus.Error.UnknownMethod")))), Some("No such interface “org.freedesktop.portal.Screenshot” on object at path /org/freedesktop/portal/desktop"), Msg { type: Error, sender: UniqueName(Str(Borrowed(":1.26"))), reply-serial: 17, body: Signature("s") }))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
makaba@fedora:~$ cosmic-screenshot
thread 'main' panicked at src/main.rs:69:10:
failed to send screenshot request: Zbus(MethodError(OwnedErrorName(ErrorName(Str(Owned("org.freedesktop.DBus.Error.UnknownMethod")))), Some("No such interface “org.freedesktop.portal.Screenshot” on object at path /org/freedesktop/portal/desktop"), Msg { type: Error, sender: UniqueName(Str(Borrowed(":1.26"))), reply-serial: 17, body: Signature("s") }))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
makaba@fedora:~$

@idnovic
Copy link

idnovic commented Aug 17, 2024

It works for me with a newer build.

@nevdelap
Copy link

nevdelap commented Oct 4, 2024

I have this with the latest installed this evening.

I have this. It was working but I removed and reinstalled cosmic, on Arch, by removing cosmic-session-git and its dependencies and reinstalling it.

23:27:48 zen ~ cosmic-screenshot
thread 'main' panicked at src/main.rs:69:10:
failed to send screenshot request: Zbus(MethodError(OwnedErrorName(ErrorName(Str(Owned("org.freedesktop.DBus.Error.UnknownMethod")))), Some("No such interface “org.freedesktop.portal.Screenshot” on object at path /org/freedesktop/portal/desktop"), Msg { type: Error, sender: UniqueName(Str(Borrowed(":1.11"))), reply-serial: 17, body: Signature("s") }))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
23:27:56 zen ~ 101

@ryanabx
Copy link
Member

ryanabx commented Oct 4, 2024

I have this with the latest installed this evening.

I have this. It was working but I removed and reinstalled cosmic, on Arch, by removing cosmic-session-git and its dependencies and reinstalling it.

23:27:48 zen ~ cosmic-screenshot
thread 'main' panicked at src/main.rs:69:10:
failed to send screenshot request: Zbus(MethodError(OwnedErrorName(ErrorName(Str(Owned("org.freedesktop.DBus.Error.UnknownMethod")))), Some("No such interface “org.freedesktop.portal.Screenshot” on object at path /org/freedesktop/portal/desktop"), Msg { type: Error, sender: UniqueName(Str(Borrowed(":1.11"))), reply-serial: 17, body: Signature("s") }))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
23:27:56 zen ~ 101

This is an issue tracker for Fedora, not arch, but I'll try to help here.

The error is telling you there's no screenshot portal available, try installing xdg-desktop-portal-cosmic or the fallback xdg-desktop-portal-gtk

@nevdelap
Copy link

nevdelap commented Oct 5, 2024

Thanks @ryanabx. xdg-desktop-portal-cosmic was already installed and with xdg-desktop-portal-gtk installed it does the same. There's also pop-os/cosmic-epoch#887, hopefully when a solution is found in one it will be the solution in the other too. Thanks again. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants