-
-
Notifications
You must be signed in to change notification settings - Fork 38
[FEATURE] Implements a -s
option to make Archey take a screenshot
#75
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
Conversation
Also does not stop trying to take a screenshot on one program's failure, and keeps error messages from printing until a screenshot has been taken.
That's very clean 👍 |
Rationale: Before, sometimes the screenshot would be taken before Archey's output was visible in the terminal. This delay ensures that the terminal has had the chance to display the output before we take any screenshot. Additionally, this commit adds a success message detailing the screenshot program used.
I noticed on my system (with ImageMagick), sometimes the screenshot was being taken before the output from Archey had appeared, so I've added a fixed delay with a countdown before it's taken. Unfortunately I've tried solutions like forcing the |
Other implementations also play with delay features offered by some programs (all of them ?), so I guess that makes sense. |
Woops, sorry about my previous message : I didn't get your commit well. I took the liberty to remove one of your |
Ah yes, sorry, that sneaked in my last commit while I was figuring out what was taking the screenshot on my system -- For some reason in VS Code under XWayland, some of the environment variables are set wrong (I think it was As you say, I'm sure we'll be refining this implementation in future regardless 😃 |
Well that's indeed weird, good luck with the investigation 😮 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I'll get around to opening an upstream issue for vs-code's behaviour sooner or later, since it affects running gnome-screenshot
directly from its inbuilt terminal... not our problem, if you will 😅.
> Fixes a bug introduced in #75, released in v4.8.0 [skip ci]
Title should be self-explanatory 😄
Description
New CLI option/argument.
Implemented logic wants to be EAFP, handling many different cases in a "best-effort" fashion.
One may want to add its specific (omitted ?) program to the supported list (really easy).
Thanks 🙇
Reason and / or context
Well, ScreenFetch supports it, and even some other Archey forks.
So I guess such a feature was definitely missing here (?).
How has this been tested ?
Locally, with
flameshot
,scrot
,import
(ImageMagick) &gnome-screenshot
.Types of changes :
Checklist :