Skip to content
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

Don't initialize Notifications dbus if disabled #3598

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

insunaa
Copy link

@insunaa insunaa commented May 7, 2024

This PR fixes an issue where Flameshot hangs while it's waiting for the notifications QDBusInterface to initialize.

Some systems don't come with a notifications daemon by default, which causes the QDBusInterface constructor to block for 5-20 seconds, during which flameshot hangs and cannot copy the screenshot into the clipboard buffer.

I tested this on Linux on KDE Plasma 6 with Wayland enabled. CMake flags are cmake .. -GNinja -DUSE_WAYLAND_CLIPBOARD=1

Only might fix, because the assumption is that the issue names are misnomers, and that the true issue is just that the screenshot is copied to clipboard after 5-20 seconds without any hint (except systemd logs)

Edit: Ignore the potentially fixed issues, there are more things afoot with those.

@untainsYD
Copy link

I do vote for this PR, it's essential to fix it!

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.

Hyprland Wayland Copy to Clipboard doesn't work Screenshots aren't copied to the clipboard
2 participants