Commit Graph

2223 Commits

Author SHA1 Message Date
Jeremy Borgman 2d55dbf508 fix compiler warnings 2026-01-19 09:03:26 -06:00
borgmanJeremy e9a8aed8ac Merge pull request #4393 from Quentium-Forks/master 2025-11-28 10:57:11 -06:00
no7076 535032b173 Fix copy failure on GNOME via GUI (#4363)
* Fix copy failure on GNOME
My suspicion is that GNOME and specifically Mutter requires specific trusted context for the QtClipboard (from 'kf.guiaddons: Could not init WaylandClipboard, falling back to QtClipboard.') clipboard operation. This means that a visible window must provide the clipboard data. Since the daemon has no visible window, this is a workaround that makes the 'flameshot gui' window handle the copying with a slight delay using QTimer to ensure that GNOME has requested the clipboard data and saved it.

This seems like a better solution #4355 as no helper windows are needed, since we already have the 'flameshot gui' window and can use it. I've limited it to GNOME only as I cannot easily test in other environments.

Fixes #4116, #4298

* Keep capture window alive until GNOME fetches clipboard data

* Move the GNOME clipboard workaround in screenshotsaver.cpp

* Log GNOME clipboard timeout and restore success notification

* Apply linter fixes
2025-11-28 10:43:41 -06:00
El Thoro d54096e76c Force PNG clipboard on Windows (#4413) 2025-11-28 10:35:24 -06:00
Quentium 6360fa9f4f Update Flathub badge and GCC version requirement 2025-11-25 09:11:14 +01:00
doprz 1e29613cc0 feat(nix): add comprehensive Nix flake (#4403)
chore(nix): add flake.lock
2025-11-24 18:59:03 -06:00
QuentiumYT ee477ae141 Drop support of Ubuntu focal & bump dependencies 2025-11-19 14:47:31 +01:00
Sam Coulter 0f37bf0997 Add support for logging to a log file in the $XDG_STATE_DIR/flameshot (#4371)
(or equivelent directories on windows/mac-os)

By default logging to file is enabled for all log messages.

Filtering log messages written to disk by level severity and choosing a
different path to save the log files is configurable via the config menu.

There is also a shortcut on the about menu popup to open the configured
logging directory. This shortcut is disabled if logging to file is
disabled

The log file implements a simple roller that saves only the two most
recent sets of logs generated by flameshot. This should stop log
messages from eating users' disk.

We use cmake to check the version of QT6. If greater than or equal to
6.7, we set the default log directory to the standard App State
directory. If not, we use the app local data directory
2025-11-18 19:33:18 -06:00
Quentium 4a091a4909 No need Rules-Requires-Root
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-18 20:34:32 +01:00
Quentium 59468f0bf9 Clearer comment for shlibs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-18 20:27:21 +01:00
QuentiumYT 806ccb2d77 Explicit depends to fix t64 packaging in Ubuntu >noble (#4390) 2025-11-18 09:44:49 +01:00
QuentiumYT 40e57f4492 CMake 3.16 minimum for compatibility 2025-11-18 09:32:53 +01:00
Weblate (bot) 37f3f7f948 Translations update from Hosted Weblate (#4383)
* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Spanish)

Currently translated at 92.9% (432 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/es/

* Translated using Weblate (Bulgarian)

Currently translated at 95.2% (443 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Korean)

Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ko/

* Translated using Weblate (Bulgarian)

Currently translated at 95.6% (445 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

---------

Co-authored-by: 109247019824 <109247019824@users.noreply.hosted.weblate.org>
Co-authored-by: Belatz <belatz.arcega@gmail.com>
Co-authored-by: VenusGirl <VenusGirl@outlook.com>
2025-11-16 08:28:39 -06:00
borgmanJeremy 555d7231ef bump CI to see if that picks up newer Qt in appimage (#4381) 2025-11-15 18:03:55 -06:00
Sam Coulter 805f9d78f1 Fix hang caused by no Notifications service registered in DBus (#4357)
Issue #4353

Add a check when looking up the `org.freedesktop.Notifications` service
to see if the it actually exists before trying to fetch it

Add a check on QDBus service lookup in screengrabber freedesktop
2025-11-10 16:53:11 -06:00
Weblate (bot) 1d74602916 Translations update from Hosted Weblate (#4380)
* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Spanish)

Currently translated at 92.9% (432 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/es/

* Translated using Weblate (Bulgarian)

Currently translated at 95.2% (443 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

---------

Co-authored-by: 109247019824 <109247019824@users.noreply.hosted.weblate.org>
Co-authored-by: Belatz <belatz.arcega@gmail.com>
2025-11-10 16:46:22 -06:00
Weblate (bot) f913d46fcc Translations update from Hosted Weblate (#4379)
* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Spanish)

Currently translated at 92.9% (432 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/es/

* Translated using Weblate (Bulgarian)

Currently translated at 95.2% (443 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

---------

Co-authored-by: 109247019824 <109247019824@users.noreply.hosted.weblate.org>
Co-authored-by: Belatz <belatz.arcega@gmail.com>
Co-authored-by: borgmanJeremy <46930769+borgmanJeremy@users.noreply.github.com>
2025-11-10 16:45:16 -06:00
Weblate (bot) 7a7988e219 Translations update from Hosted Weblate (#4378)
* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Spanish)

Currently translated at 92.9% (432 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/es/

* Translated using Weblate (Bulgarian)

Currently translated at 95.2% (443 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

---------

Co-authored-by: 109247019824 <109247019824@users.noreply.hosted.weblate.org>
Co-authored-by: Belatz <belatz.arcega@gmail.com>
Co-authored-by: borgmanJeremy <46930769+borgmanJeremy@users.noreply.github.com>
2025-11-10 16:43:40 -06:00
Weblate (bot) 8da05f605b Translations update from Hosted Weblate (#4330)
* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Spanish)

Currently translated at 92.9% (432 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/es/

* Translated using Weblate (Bulgarian)

Currently translated at 95.2% (443 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

---------

Co-authored-by: 109247019824 <109247019824@users.noreply.hosted.weblate.org>
Co-authored-by: Belatz <belatz.arcega@gmail.com>
Co-authored-by: borgmanJeremy <46930769+borgmanJeremy@users.noreply.github.com>
2025-11-10 16:42:11 -06:00
borgmanJeremy 88c951e771 Bump for v13.3.0 (#4333) v13.3.0 2025-10-28 16:09:46 -05:00
borgmanJeremy bba3d1d57b link to qtdbus on macos (#4325) 2025-10-28 15:42:33 -05:00
Weblate (bot) 9fe596b409 Translations update from Hosted Weblate (#4321)
* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

* Translated using Weblate (Bulgarian)

Currently translated at 87.3% (406 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/

---------

Co-authored-by: 109247019824 <109247019824@users.noreply.hosted.weblate.org>
2025-10-27 22:26:47 +02:00
Avineet Singh 3602d0a793 Fix multiple memory leaks in Region::process() function (#4284)
* Fix multiple memory leaks in Region::process() function

- Add proper cleanup for allocated QApplication object
- Add proper cleanup for allocated char** argv array
- Add proper cleanup for allocated int* argc pointer
- Ensure all return paths properly clean up allocated memory
- Prevents memory leaks when Region::process() is called

Fixes multiple memory leaks identified in codebase analysis.

* Apply clang-format to fix code style compliance

- Remove trailing whitespace
- Normalize line endings
- Ensure compliance with project's clang-format rules

Fixes CI test-clang-format workflow failure.

* Refactor cleanup logic in Region::process

Introduced a cleanup lambda to handle memory deallocation in Region::process, replacing repeated code with a single reusable function for better maintainability and readability.

* Format cleanup lambda for readability

Reformatted the cleanup lambda in Region::process for improved readability by expanding it to multiple lines.

* Refactor Region::process to use smart pointers

Replaces manual memory management with std::unique_ptr for temporary QApplication and argument variables. Removes redundant cleanup logic for improved safety and readability.
2025-10-26 20:13:40 -05:00
Weblate (bot) 5b0ee2f300 Translations update from Hosted Weblate (#4315)
* Translated using Weblate (Chinese (Simplified Han script))

Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/zh_Hans/

* Translated using Weblate (Portuguese)

Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/pt/

---------

Co-authored-by: Web <e379nn53o@mozmail.com>
Co-authored-by: Hugo Carvalho <hugokarvalho@hotmail.com>
2025-10-26 20:12:58 -05:00
borgmanJeremy 217fac2fc5 Bump for v13.2.0 (#4310) v13.2.0 2025-10-24 19:38:22 -05:00
Weblate (bot) 18c19e380d Translated using Weblate (Catalan) (#4309)
Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ca/

Co-authored-by: Xean <xeanhort007@gmail.com>
2025-10-24 12:50:39 +01:00
SASHAKT1290 b4c78e80e3 added libkf6guiaddons-dev as a debain dependency (#4304) 2025-10-22 21:49:39 +01:00
Weblate (bot) 8510d66c5a Translated using Weblate (Catalan) (#4305)
Currently translated at 82.1% (382 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ca/

Co-authored-by: Xean <xeanhort007@gmail.com>
2025-10-22 21:47:43 +01:00
Avineet Singh f8ab6a6751 Fix memory leak in guiMutexLock() function (#4277)
- Add proper cleanup when QSharedMemory::create() fails
- Prevents memory leak when mutex creation fails on GUI capture attempts
- Ensures allocated QSharedMemory object is deleted before returning nullptr

Fixes potential memory leak identified in codebase analysis.
2025-10-06 19:29:38 -05:00
Aman Chaturvedi d5acafff05 chore: fix typo in comment in GlobalShortcutFilter (#4274)
* chore: fix typo in comment in GlobalShortcutFilter

* chore: fix typos in comments and function names

- Fix 'temporal workwrround' to 'temporary workaround' in GlobalShortcutFilter
- Fix 'habdler' to 'handler' in ButtonHandler comment
- Fix 'the the' to 'to the' in ButtonHandler comment
- Fix 'minimun' to 'minimum' in ButtonHandler function name

---------

Co-authored-by: Aman Chaturvedi <aman.chaturvedi@kpit.com>
2025-10-03 19:22:30 -05:00
Weblate (bot) 4eba111769 Translated using Weblate (Czech) (#4275)
Currently translated at 79.5% (370 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/cs/

Co-authored-by: Pavel Borecki <pavel.borecki@gmail.com>
2025-10-04 00:32:36 +03:00
Weblate (bot) 5be16b2ede Added translation using Weblate (Arabic) (#4266)
Co-authored-by: jonnysemon <jonnysemon@users.noreply.hosted.weblate.org>
2025-09-30 07:11:03 +03:00
artptr c5f7398a80 Show keyboard shortcut in the tray icon menu (#4258)
* Show keyboard shortcut in the tray icon menu

* add the guard for macOS-specific shortcut
2025-09-26 19:04:23 -05:00
yychi d76013fdbe Introduce some exit codes (#3321) (#4121)
* Reuse FlameshotDaemon::call in copyToClipboard

* Introduce some exit codes (#3321)
2025-09-26 17:43:03 -05:00
artptr c2d60c2046 Add masked icon for macOS with dynamic wallpapers (#4257) 2025-09-26 16:50:14 -05:00
Weblate (bot) b2f3ef519f Translated using Weblate (Slovak) (#4262)
Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/sk/

Co-authored-by: Jose Riha <jose1711@gmail.com>
2025-09-26 16:38:27 -05:00
El Thoro 652ad9f133 Add UI language selection (#4249)
* Add UI language config option

* Clang format
2025-09-23 19:32:32 -05:00
Weblate (bot) f7995dda34 Translated using Weblate (Basque) (#4256)
Currently translated at 98.4% (458 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/eu/

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
2025-09-23 19:23:46 -05:00
Weblate (bot) 095dcba94f Translated using Weblate (Irish) (#4250)
Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ga/

Co-authored-by: Aindriú Mac Giolla Eoin <aindriu80@gmail.com>
2025-09-22 08:50:01 +03:00
borgmanJeremy 03c398d9c2 refreshed translation files (#4248) 2025-09-19 16:01:11 -05:00
borgmanJeremy eeb9fe391c Add missing translation files (#4244) 2025-09-19 13:23:43 -05:00
borgmanJeremy aea75fb956 fix appveyor (#4245) 2025-09-17 19:47:55 -05:00
borgmanJeremy 1e18288738 Merge pull request #4234 from weblate/weblate-flameshot-flameshot 2025-09-10 05:20:01 -05:00
Andrei Stepanov 80c5db945b Translated using Weblate (Russian)
Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ru/
2025-09-10 01:01:59 +02:00
borgmanJeremy 83506050fd Merge pull request #4229 from weblate/weblate-flameshot-flameshot 2025-09-07 11:43:10 -05:00
albanobattistella 54f7427809 Translated using Weblate (Italian)
Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/it/
2025-09-07 16:03:00 +00:00
borgmanJeremy cd80260a6c remove color set on widget hide (#4226) 2025-09-06 19:44:03 -05:00
borgmanJeremy cffc66abf8 fix ci cmake issue on macos (#4227) 2025-09-06 19:03:23 -05:00
El Thoro ea94c53cbe Windows cli copy (fix for #4118) (#4211)
* Use KDSingleApplication instead of D-Bus on Windows

* Fix MacOS build

* Fix MacOS build

* Fix MacOS build

* Fix MacOS build
2025-09-06 09:53:39 -05:00
Weblate (bot) 357b967d20 Translations update from Hosted Weblate (#4219)
* Translated using Weblate (Hungarian)

Currently translated at 86.6% (403 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/hu/

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/pt_BR/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/sk/

* Translated using Weblate (German)

Currently translated at 100.0% (465 of 465 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/de/

---------

Co-authored-by: Balázs Szücs <bszucs1209@gmail.com>
Co-authored-by: Igor Rückert <igorruckert@yahoo.com.br>
Co-authored-by: Jose Riha <jose1711@gmail.com>
Co-authored-by: Kachelkaiser <kachelkaiser@htpst.de>
2025-09-06 09:44:11 -05:00