The bundled build installs the library's development files along with
flameshot, so the package ships /usr/include/kdsingleapplication-qt6 and
/usr/lib/libkdsingleapplication-qt6.a. On a system that already has the
kdsingleapplication package, pacman refuses the install:
flameshot-git: /usr/include/kdsingleapplication-qt6/kdsingleapplication.h
exists in filesystem (owned by kdsingleapplication)
The library is linked statically, so those files serve no purpose in the
package. Build against the system copy instead and declare the
dependency; Arch ships the same 1.2.1 the bundled build fetches.
Handle QEvent::Close in the event filter so that closing the
monitor selector window (e.g. via i3 kill) properly quits
the blocking event loop and resets the selection state,
preventing the 'Screenshot already in progress' error on
subsequent screenshot attempts.
On X11 window managers without a Screenshot portal backend (i3, XMonad,
Xfce, openbox), v14 cannot take a screenshot until the user finds the
Legacy X11 option in the settings. v13 handled these systems out of the
box. When the portal reports that it cannot take the capture at all,
take the native X11 grab instead and log an info line (terminal and log
file only) so reports show which path took the capture.
Cancelled portal dialogs and genuine timeouts do not trigger the
fallback, and systems with a working portal never reach it.
Since v14 every capture on Linux goes through the
org.freedesktop.portal.Screenshot D-Bus portal, but flameshot discarded
the reply of the Screenshot call. When no portal backend provides that
interface, the call fails within milliseconds. Flameshot then waited
for a Response signal that could never arrive and reported a misleading
"portal timed out" error, while taking no screenshot at all.
Check the reply of the Screenshot call and fail at once with the real
D-Bus error. The failure now shows up immediately and names the actual
problem, on both Wayland and X11. This does not change which systems
can take screenshots.
Helps diagnose the reports in #4639.
* improve config text
The "Capture active monitor" is exclusive to X11 (as the tooltop also
indicates), so here I add minimum possible number of words to clarify that.
* improve config text
This is continuation/improvement of #4760 to correct the config text and add Windows
---------
Co-authored-by: borgmanJeremy <46930769+borgmanJeremy@users.noreply.github.com>
* docs: add usage guide for minimal X11 window managers
Since v14, screen capture goes through xdg-desktop-portal, including on X11. On minimal X11 window managers (i3, dwm, xmonad, bspwm, ...) the available portal backend often does not implement the Screenshot interface, so capture fails with "Could not locate ... portal.Desktop service" or "Screenshot portal timed out".
Add docs/UsageX11MinimalWM.md describing the symptoms and the fix (enabling the legacy X11 capture via the GUI option or useX11LegacyScreenshot in flameshot.ini), and link the new page from the README.
* docs: update error messages and checkbox label per #4778
PR #4778 merged: timeout message changed to a multi-line message mentioning the Legacy X11 method, and the deprecated qualifier was removed from the checkbox label.
* update the flatpak yaml file to be on-par with flathub repo
* fix the flatpak yaml file
I forgot to comment out the tag and comment in previous commit.
* add the branch back for flameshot repo
* ci: update linux distro build matrix
- add debian 13 amd64/arm64/armhf, drop debian 12
- add fedora 43/44 amd64
- add ubuntu 26.04 amd64/arm64, drop ubuntu 22.04
- add opensuse leap 16.0 amd64
* ci: remove opensuse-leap-16.0
- because there is no official `qt6-svg` package available for openSUSE Leap 16.0, https://software.opensuse.org/package/qt6-svg
* ci: correct qt6-qtsvg package name in fedora
* gui uses choosen color from hex values
* added the label for hex color edit box
* regex updated to accept only RGB values
* fix : updating color in hex input box
* clang-format changes
This was brought to our attention by @geeknik via security advisory report
GHSA-rmr8-cfxx-3757 with adjusted severity of 0.0/10:
`CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N`
giving any value starting with `screen` or `all` cause segfault. Considering
that we have `full` and `screen` subcommands, I believe this part of the code is
no longer needed and can be removed.
Thank you @geeknik for bringing this to our attention.