-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
If available, use scrot on Linux for ImageGrab #7100
Conversation
For the record, when testing I found I had to add the universe repository on Ubuntu before I could install it. |
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
I just tested the installation of |
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
Back when we initially added Ok, so Well, Is the problem just a user trying to ignore |
@HansBug any thoughts? |
Sorry for not responding earlier due to work-related reasons. I have just tested setting |
Ok, I've created PR #7139 to prefer X11 over gnome-screenshot. If no one is aware of a need for scrot, then it doesn't seem necessary to search through the many flavours of Linux trying to find a problem to match this solution. |
PR #7143 has been merged. |
Use scrot when this environment have in
ImageGrab.grab()
.In practical use, although
gnome-screenshot
is widely present in Linux systems, in newer systems such as Ubuntu 20.04, there will be a full-screen animation effect when taking screenshots, and it is not easy to close. This feature may cause inconvenience to users in some tasks. Therefore, it has been changed to detectscrot
. Ifscrot
is present, it will be used directly. There will be no similar problems when taking screenshots withscrot
, and it is very easy to install on Ubuntu and other systems withapt install -y scrot
, and similar packages are available on other systems such as debian and centos.Here are some more records about the annoying flash animation on
gnome-screenshot
@radarhere :