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! ![]()
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.