screenshot: add grim for promptless screenshots in testing#1694
Merged
brianmcgillion merged 1 commit intotiiuae:mainfrom Jan 21, 2026
Merged
screenshot: add grim for promptless screenshots in testing#1694brianmcgillion merged 1 commit intotiiuae:mainfrom
brianmcgillion merged 1 commit intotiiuae:mainfrom
Conversation
Signed-off-by: Kajus Naujokaitis <kajus.naujokaitis@unikie.com>
milva-unikie
approved these changes
Jan 21, 2026
milva-unikie
left a comment
There was a problem hiding this comment.
Thank you!
I tested that grim is working nicely. cosmic-screeshot has caused a lot of trouble for us recently.
Since cosmic-screeshot is still available, this PR can be merged and we will switch in the test-automation once I have time to properly test my PR.
vunnyso
approved these changes
Jan 21, 2026
brianmcgillion
approved these changes
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
The currently used
cosmic-screenshottalks to the XDG Desktop Portal to capture the screen.This works fine for normal user interaction, but can sometimes cause hangups in test automation due to the portal sometimes asking for permission to capture the screen.
We add
grimhere as a CLI alternative, which talks to the Wayland compositor directly to capture the screen.To mimic
cosmic-screenshotscreenshot output as a normal logged in user, one can run:grim "$XDG_PICTURES_DIR/Screenshot_$(date '+%Y-%m-%d_%H_%M_%S').png"Type of Change
Related Issues / Tickets
https://jira.tii.ae/browse/SSRCSP-7876
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify:
N/A