Screenshot on COSMIC not working

Hello everyone!

So I decided to give another try at the COSMIC DE on my EndeavourOS install and everything is working fine except when it comes to the cosmic screenshot. I got this response from the Terminal when I try to use it via the CLI:

thread ‘main’ (16062) panicked at src/main.rs:74:10:
failed to send screenshot request: PortalNotFound(OwnedInterfaceName(“org.freedesktop.portal.Screenshot”))
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Aborted (core dumped) cosmic-screenshot

I tried to fix the problem by looking at the xdg desktop portal setup that Pop-OS use with their DE and add the portals but the problem is still there. I also tried to check the status and enable the service but I was only able to discover that the connection to the portal 1497 is not working. I also tried to reinstall the cosmic-screenshot packageand be sure it is on the latest version. Any ideas how can I find the solution to this and if anyone using COSMIC as a DE as the same problem as me? Thanks in advance! :slight_smile:

systemctl status --user xdg-desktop-portal

● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
Active: active (running) since Thu 2026-01-29 10:35:04 EST; 2h 21min ago
Invocation: abc89f2105b5469ab520f70b2dcaeafb
Main PID: 1497 (xdg-desktop-por)
Tasks: 5 (limit: 18803)
Memory: 3M (peak: 3.6M)
CPU: 198ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
└─1497 /usr/lib/xdg-desktop-portal

Jan 29 10:35:04 guiohm-SwayXCarbon systemd[1044]: Starting Portal service…
Jan 29 10:35:04 guiohm-SwayXCarbon /usr/lib/xdg-desktop-portal[1497]: Error loading /usr/share/xdg-desktop-portal/por>
Jan 29 10:35:04 guiohm-SwayXCarbon /usr/lib/xdg-desktop-portal[1497]: Error loading /usr/share/xdg-desktop-portal/por>
Jan 29 10:35:04 guiohm-SwayXCarbon systemd[1044]: Started Portal service.

How did you install COSMIC? I used the instructions from the EOS Community edition (today, actually): https://github.com/EndeavourOS-Community-Editions/cosmic. What version of cosmic-screenshot is installed?

Screenshot is working fine here.

It is the version 0.1.0 of cosmic-screenshot.

As for the installation, I tried to install it a while back before COSMIC was in Alpha release without any successes so my recent install was by following the Arch wiki and it’s actually a DE install on top of the Community Sway install.

I think I’m due for a clean install but now that you have confirmed me that the Cosmic screenshot works, I will go straight with the EOS Community edition… after I backup my files, obviously :zany_face:

So thanks for the info. After my new install, I will probably report my bug to the Arch wiki or something because the Arch package should normally set up the screenshot service.

Hi again!

I tested a clean install on an older laptop with the proper community COSMIC setup for EndeavourOS. It took me a while because the installation bricked and I was searching everywhere… except at the right place, obviously :laughing: . Turns out that my usb stick had an older version of EndeavourOS and that made the installation incomplete.

Now that it`s done, everything on this testing setup so I might just do the same with this laptop on my lunch break. Thanks again for your message and confirmation that a clean install has the screenshot enabled and ready to use: it saves me a lot of time and a couple of headaches. :+1: