The feature adds a runtime dependency on D29407 Plasma 5.20.
BUG: 414532
BUG: 407489
FIXED-IN: 5.20
No Linters Available |
No Unit Test Coverage |
Buildable 27129 | |
Build 27147: arc lint + arc unit |
Spectacle must have its executable in its desktop entry Exec field.
To manage this, spectacle must use KDBusService::Unique instead of Multiple.
This requires some refactoring.
Why do we introduce the distinction between delayed and immediate? Is there a difference between delayed with 0 seconds and immediate? Also every screenshot triggered by the gui arrives at spectacle core with delay <= 0 because ksmainwindow waits the delay for the taskmanager animation and animating the button.
I need to fix this.
The X-KDE-Wayland-Interfaces is no more.
This will be rebased after dependency :
D29487
This is ready to land except I need either to :
Adding the version check has my preference but I don't know how to add a runtime plasma version check.
Merging separately the line X-KDE-DBUS-Restricted-Interfaces=org_kde_kwin_effect-screenshot is enough to not break current functionality once D29407 has landed, it will already allow to take screenshots without click confirmation.
Separate merge request : https://invent.kde.org/graphics/spectacle/-/merge_requests/3
(and the .arcconfig file will be removed before merging ;) )
.arcconfig | ||
---|---|---|
2 ↗ | (On Diff #83223) | Add to re-add this to post a diff, will remove before merging. |
This adds a dependency on https://invent.kde.org/frameworks/kdbusaddons/-/merge_requests/1/diffs
I am abandonning https://invent.kde.org/frameworks/kdbusaddons/-/merge_requests/1/diffs.
Adding the plasma version check here is not a big deal.
The code is pretty much ready and will land along with D29407 shortly unless I have some feedback.
I think we shouldn't use QDBUsInterface but given that we already do this is probably ok
The alternative is just less documented AFAICT.
IRC the alternative is about adding xml files that generate code.
src/Platforms/PlatformKWinWayland.cpp | ||
---|---|---|
112 | Didn't know about splitRef, what a nice function, that makes split so much more efficient |
Needs https://invent.kde.org/graphics/spectacle/-/merge_requests/5 after latest D29408 changes