Skip to content

Add useGrimAdapter option to the config window#3943

Merged
borgmanJeremy merged 3 commits intoflameshot-org:masterfrom
HarshNarayanJha:configwindow/add-use-grim-adapter
May 21, 2025
Merged

Add useGrimAdapter option to the config window#3943
borgmanJeremy merged 3 commits intoflameshot-org:masterfrom
HarshNarayanJha:configwindow/add-use-grim-adapter

Conversation

@HarshNarayanJha
Copy link
Copy Markdown
Contributor

@HarshNarayanJha HarshNarayanJha commented May 14, 2025

As stated in this issue, #3919 added an option to use grim adapter, but it was not added to the config UI window.

This PR adds this option (useGrimAdapter) to the config UI.

Option name: Use grim to capture screenshots
Description: Grim is a wayland only utility to capture screens based on the screencopy protocol. Generally only enable on minimal wayland window managers like sway, hyprland, etc.

Tested, works!

EDIT: old screenshot, see comments below
image

(PS: screenshot taken with flameshot)

Closes #3941

@HarshNarayanJha
Copy link
Copy Markdown
Contributor Author

I just came to know that flameshot-git apparently works on Hyprland, I rushed to install it, and then saw this issue. I miss Spectacle from KDE. Flameshot is awesome 🔥

@mmahmoudian
Copy link
Copy Markdown
Member

mmahmoudian commented May 18, 2025

The following is the copy of my comment on the code:

I think we need to come up with a better text here. I think for the general user, this is cryptic. Unfortunately I don't have a suggestion though [yet] 😅

What do you think?

Also, should this only be displayed in Wayland?

@HarshNarayanJha
Copy link
Copy Markdown
Contributor Author

HarshNarayanJha commented May 18, 2025

This option is for wayland users, right?

It should not be shown in X11.

@HarshNarayanJha
Copy link
Copy Markdown
Contributor Author

HarshNarayanJha commented May 18, 2025

For the name/description

Use Grim Adapter

Enable this option if you can't take screenshots [On Wayland]

???

@borgmanJeremy
Copy link
Copy Markdown
Collaborator

Maybe based on the description here: https://gitlab.freedesktop.org/emersion/grim/-/blob/master/doc/grim.1.scd?ref_type=heads it can say something like

Grim is a wayland only utility to capture screens based on the screencopy protocol. Generally only enable on minimal wayland window managers like sway, hyprland, etc.

Copy link
Copy Markdown
Collaborator

@borgmanJeremy borgmanJeremy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved and will merge as is. But if you want to adjust the wording based on the conversation I'll wait a day or so. Else I can edit the text later.

@HarshNarayanJha
Copy link
Copy Markdown
Contributor Author

Okay I will push the edit

@HarshNarayanJha
Copy link
Copy Markdown
Contributor Author

image

void GeneralConf::initUseGrimAdapter()
{
#if defined(Q_OS_LINUX)
m_useGrimAdapter = new QCheckBox(tr("Use grim adapter"), this);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to come up with a better text here. I think for the general user, this is cryptic. Unfortunately I don't have a suggestion though [yet] 😅

What do you think?

@borgmanJeremy borgmanJeremy merged commit 76f8067 into flameshot-org:master May 21, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Use Grim to Config UI

3 participants