Commit Graph

2292 Commits

Author SHA1 Message Date
Jeremy Borgman 0d68978b9b fix issue with screen selection in non interactive mode 2026-04-28 19:02:22 -05:00
El Thoro a6694bf45a Updata GH actions (old action versions are using Node.js 20 which will be decrecated June 2026) (#4660) 2026-04-25 10:27:18 +03:00
Vladimir Mitnitsky e497f478dc fix(macos): make fullscreen capture overlay configurable (#4622)
macOS showFullScreen() triggers a native fullscreen space transition
animation when capturing. Replace with show() using FramelessWindowHint,
WindowStaysOnTopHint, and Qt::Tool flags to avoid the animation.

Add a 'useNativeFullscreen' config option (default: off) so users who
prefer the native fullscreen behavior can re-enable it from
Settings > General.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-23 20:33:54 -05:00
Weblate (bot) caf17033f9 Translations update from Hosted Weblate (#4642)
* Translated using Weblate (Estonian)

Currently translated at 72.2% (341 of 472 strings)

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

* Translated using Weblate (Russian)

Currently translated at 100.0% (472 of 472 strings)

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

* Translated using Weblate (Estonian)

Currently translated at 79.0% (373 of 472 strings)

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

---------

Co-authored-by: Priit Jõerüüt <jrthwlate@users.noreply.hosted.weblate.org>
Co-authored-by: Andrei Stepanov <adem4ik@gmail.com>
2026-04-16 09:50:56 +03:00
El Thoro 55c04e8b03 Option to disable tray icon on Windows (#4634) 2026-04-13 07:39:25 -05:00
Vladimir Mitnitsky f5008851c8 feature(macos): show dock icon when any app window is open (#4628)
On macOS with LSUIElement=true, Flameshot runs as an agent app (no dock
icon). This adds a dock icon that appears while any user-facing window
(Settings, About, Launcher, Upload History) is visible and disappears
when the last one is closed or hidden.

Uses QWindow::visibilityChanged signal with a per-window dynamic property
to track visibility state and a reference counter for the activation
policy toggle.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: borgmanJeremy <46930769+borgmanJeremy@users.noreply.github.com>
2026-04-13 07:36:48 -05:00
Vladimir Mitnitsky 016b9197e8 fix(macos): fix clipboard copy failing from tray and GUI (#4629)
The clipboard copy from tray menu and capture GUI was broken on macOS:

1. FlameshotDaemon::copyToClipboard() created a KDSingleApplication
   instance and called isPrimaryInstance(), which always returned false
   (the daemon already holds the socket). This caused a 3-second IPC
   timeout before falling back. Fix: use instance() to check if the
   daemon singleton exists in-process, matching non-macOS behavior.

2. saveToClipboardMime() used setData("image/...") which puts a lazy
   reference on the macOS pasteboard. If the app exits before paste,
   data is lost ("Cannot keep promise"). Fix: use setImageData() for
   native pasteboard persistence, plus setData() for exact format.

3. saveJpegToClipboardMacOS() used osascript with a temp file and
   incorrectly labeled JPEG data as PNG UTI. Removed entirely — the
   fixed saveToClipboardMime() now handles both JPEG and PNG.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-12 08:07:44 -05:00
El Thoro c4db15ccd3 Fix KDE Plasma keyboard shortcut config file (#4637) 2026-04-12 08:06:41 -05:00
Vladimir Mitnitsky ef678de7a1 fix(macos): use proper macos api to get privacy screen recorder access (#4617) 2026-04-12 08:04:37 -05:00
Vladimir Mitnitsky d888a3f16c fix(macos): prevent config tab content from rendering behind tab bar (#4627)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-08 20:03:49 -05:00
Weblate (bot) 526fb82c81 Translations update from Hosted Weblate (#4632)
* Translated using Weblate (Polish)

Currently translated at 83.4% (394 of 472 strings)

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

* Translated using Weblate (Portuguese)

Currently translated at 94.9% (448 of 472 strings)

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

* Translated using Weblate (Russian)

Currently translated at 100.0% (472 of 472 strings)

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

---------

Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
Co-authored-by: João Alves <joao.2003.couto@gmail.com>
Co-authored-by: Andrei Stepanov <adem4ik@gmail.com>
2026-04-07 19:23:23 -05:00
El Thoro e91d83584d Cmake Analyzers (#4613)
* Add Qt deprecation check

* Add Analyzer status message

* Fix cppcheck
2026-04-06 16:15:25 -05:00
El Thoro 9dfdab8c48 Fix pin position on Windows for scaled screen (#4614) 2026-04-06 16:14:25 -05:00
Weblate (bot) d6a70c828f Translations update from Hosted Weblate (#4619)
* Translated using Weblate (Russian)

Currently translated at 100.0% (472 of 472 strings)

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

* Translated using Weblate (Italian)

Currently translated at 100.0% (472 of 472 strings)

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

---------

Co-authored-by: Andrei Stepanov <adem4ik@gmail.com>
Co-authored-by: albanobattistella <albano_battistella@hotmail.com>
2026-04-06 12:07:46 +03:00
Weblate (bot) 0e3bb18240 Translations update from Hosted Weblate (#4612)
* Translated using Weblate (Irish)

Currently translated at 100.0% (472 of 472 strings)

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

* Translated using Weblate (Thai)

Currently translated at 90.4% (427 of 472 strings)

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

* Translated using Weblate (Ukrainian)

Currently translated at 92.3% (436 of 472 strings)

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

---------

Co-authored-by: Aindriú Mac Giolla Eoin <aindriu80@gmail.com>
Co-authored-by: Anucha <camytotoe00@gmail.com>
Co-authored-by: Viktor Varvaruk <viktorvarvaruk@users.noreply.hosted.weblate.org>
2026-04-04 12:43:24 +03:00
borgmanJeremy b89ebc3629 Prepare for v14 beta (#4611) v14.0.rc1 2026-04-03 06:27:21 -05:00
borgmanJeremy 4634c27bed fixing signpath (#4608) 2026-04-01 15:39:36 -05:00
borgmanJeremy f63f8f6dce Merge pull request #4609 from weblate/weblate-flameshot-flameshot 2026-04-01 12:38:21 -05:00
Emanuel Barbera 1c4243acf1 Translated using Weblate (Spanish)
Currently translated at 86.0% (406 of 472 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/es/
2026-04-01 17:11:44 +00:00
borgmanJeremy 8cf641d0da Added dbus capture (#4605) 2026-03-31 09:52:16 -05:00
Weblate (bot) 5a3115211d Translations update from Hosted Weblate (#4606)
* Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (472 of 472 strings)

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

* Translated using Weblate (French)

Currently translated at 100.0% (472 of 472 strings)

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

* Translated using Weblate (German)

Currently translated at 95.9% (453 of 472 strings)

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

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (472 of 472 strings)

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

---------

Co-authored-by: Igor Rückert <igorruckert@yahoo.com.br>
Co-authored-by: Quentium <pro@quentium.fr>
Co-authored-by: El Thoro <elthoro@gmx.de>
Co-authored-by: Zahid Rizky Fakhri <zahidrizkyfakhri@gmail.com>
2026-03-31 09:48:55 -05:00
borgmanJeremy 6e833d94d9 Fixed issue with artifact configuration for signpath (#4601) 2026-03-31 09:48:40 -05:00
borgmanJeremy 66464fa4c1 Refreshed translation files (#4602) 2026-03-30 07:01:51 -05:00
borgmanJeremy 8fab4556f6 Fixed issue with comsic not being full screen (#4596) 2026-03-30 06:29:26 -05:00
borgmanJeremy bdb1eda421 Removing arbitrary delay from desktop actions (#4597) 2026-03-28 16:31:10 -05:00
borgmanJeremy 9803b386c2 Added feature on x11 and windows to capture active monitor (#4594) 2026-03-28 06:05:36 -05:00
Levi 51a55180fb fix: Update KDE Plasma keyboard shortcut config file (#4454) 2026-03-27 19:13:20 +02:00
borgmanJeremy 0ad3357a76 Added x11 fallback (#4588) 2026-03-26 19:14:42 -05:00
El Thoro 6e74dbe189 Code quality: Consistent includes, remove unused includes (#4587)
* Add pragma once

* Consistent includes

* Remove unused includes

* Fix Windows build

* Fix Windows build
2026-03-26 17:39:10 -05:00
Benigno Batista Júnior b26cf40e51 fix: remove duplicate layout parent in SidePanelWidget (#4578)
The widget's layout is set in the member initializer list (line 25)
via m_layout(new QVBoxLayout(this)). Passing 'this' to the QHBoxLayout
constructor at line 84 tries to set a second layout on the same widget,
which Qt rejects with a warning on every capture:

  QLayout: Attempting to add QLayout "" to SidePanelWidget "",
  which already has a layout

The parent argument is unnecessary since the layout is added to
m_layout via addLayout() at line 94.

Co-authored-by: Benigno Batista Júnior <benigno@opus-software.com.br>
2026-03-21 06:35:49 -05:00
borgmanJeremy eebcc1c0f5 Fix X11 crash (#4570) 2026-03-21 06:33:44 -05:00
El Thoro f983251851 Update QtColorWidgets git tag (#4584) 2026-03-21 06:33:24 -05:00
Weblate (bot) f9ea954357 Translations update from Hosted Weblate (#4580)
* Translated using Weblate (Finnish)

Currently translated at 87.3% (406 of 465 strings)

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

* Translated using Weblate (French)

Currently translated at 100.0% (465 of 465 strings)

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

---------

Co-authored-by: Quentium <pro@quentium.fr>
2026-03-19 16:36:53 +02:00
Eric Blanquer 3eb366e038 Hide monitor selection in launcher when only one screen is connected and make launcher UI more compact (#4569) 2026-03-14 14:34:36 -05:00
El Thoro 199ff2586a Windows: Global "take screenshot" shortcut (#4556)
* Enable QHotkey on Windows to define global shortcut for taking screenshot

* Check if Windows forces PrntScr for its snipping tool; provide the option to change corresponding registry key by Flameshot

* Option to register Flameshot as MS-SCREENCLIP application

* clang-format

* Default shortcut

* Minor: Move MsScreenclip initialization to separate function

* Minor: Move MsScreenclip initialization to separate function
2026-03-14 09:59:28 -05:00
Weblate (bot) 5cd6269011 Translations update from Hosted Weblate (#4561)
* Translated using Weblate (Basque)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (French)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (French)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (Greek)

Currently translated at 87.9% (409 of 465 strings)

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

---------

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
Co-authored-by: Mathieu B. <mathieu.bousquet2@gmail.com>
Co-authored-by: Quentium <pro@quentium.fr>
Co-authored-by: Thodoris Kalatzis <teo.kal@hotmail.com>
2026-03-13 16:34:23 +02:00
Weblate (bot) ee80adc1a4 Translated using Weblate (Finnish) (#4559)
Currently translated at 88.3% (411 of 465 strings)

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

Co-authored-by: Jiri Grönroos <jiri.gronroos@iki.fi>
2026-03-11 06:58:10 +02:00
Weblate (bot) 7a67146795 Translations update from Hosted Weblate (#4555)
* Translated using Weblate (Indonesian)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (French)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (French)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (Finnish)

Currently translated at 86.8% (404 of 465 strings)

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

* Translated using Weblate (Polish)

Currently translated at 89.4% (416 of 465 strings)

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

---------

Co-authored-by: Zahid Rizky Fakhri <zahidrizkyfakhri@gmail.com>
Co-authored-by: Quentium <quentin.lienhardt@gmail.com>
Co-authored-by: David Jacquens <david@jacquens.com>
Co-authored-by: Artur <wy66m6xm@anonaddy.me>
2026-03-08 18:43:27 +02:00
Weblate (bot) bb6e504e84 Translations update from Hosted Weblate (#4554)
* 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/

* Translated using Weblate (Vietnamese)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (Bulgarian)

Currently translated at 96.5% (449 of 465 strings)

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

* Translated using Weblate (Vietnamese)

Currently translated at 100.0% (465 of 465 strings)

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

* Translated using Weblate (Bulgarian)

Currently translated at 100.0% (465 of 465 strings)

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

* 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/

* Translated using Weblate (Thai)

Currently translated at 90.1% (419 of 465 strings)

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

* Added translation using Weblate (Khmer (Central))

* Added translation using Weblate (Turkmen)

---------

Co-authored-by: Hugo Carvalho <hugokarvalho@hotmail.com>
Co-authored-by: Loc Huynh <huynhloc.contact@gmail.com>
Co-authored-by: Stephan Paternotte <stephan@paternottes.net>
Co-authored-by: 109247019824 <109247019824@users.noreply.hosted.weblate.org>
Co-authored-by: Andrei Stepanov <adem4ik@gmail.com>
Co-authored-by: Anucha Hlownonkor <tony.chompoo@gmail.com>
Co-authored-by: Manitou Phon <manitouphon.official@gmail.com>
Co-authored-by: Serdar <atadurdyyewserdar@gmail.com>
2026-03-05 17:18:51 -06:00
Jacob Zhong bb267da636 upload new iconset (#4540) 2026-03-05 17:16:13 -06:00
borgmanJeremy d4956a87cd Fixed screen subcommand to fit per screen paradigm (#4544)
* Fixed screen subcommand to fit per screen paradigm

* Full subcommand fix
2026-03-04 18:06:13 -06:00
borgmanJeremy 4a32a7e86a Fix race condition caused by improper dbus hack (#4547) 2026-03-02 18:42:25 -06:00
borgmanJeremy b5224b5de3 When in CLI mode qApp needs to be deleted before exiting or Qt's destructor complains (because of the memory leak that would occur) (#4546) 2026-03-02 18:42:20 -06:00
El Thoro 76d883362f Add option for portable binary (using flameshot.ini in app folder) (#4531)
* Option to build a portable binary, which is using flameshot.ini in application folder.

* Align Qt version

* Fix appveyor

* Fix appveyor

* Fix appveyor
2026-02-24 06:46:32 -06:00
borgmanJeremy 42c462bb97 Fix last region on scaled displays (#4530) 2026-02-23 15:49:57 -06:00
Benigno Batista Júnior c2cae0301b fix: use runtime detection for Wayland clipboard (#4497)
When compiled with USE_WAYLAND_CLIPBOARD, the clipboard now works
correctly on both Wayland and X11 sessions.

Previously, builds with USE_WAYLAND_CLIPBOARD=ON would always use
KSystemClipboard, which doesn't work properly when running under X11
(e.g., via XWayland or QT_QPA_PLATFORM=xcb).

This change adds a runtime check for the platform name:
- 'wayland' -> uses KSystemClipboard (KF6 GuiAddons)
- otherwise -> uses QApplication::clipboard() (standard Qt)

This allows distros to ship a single binary that works on both
display servers without requiring separate builds.

Co-authored-by: Benigno Batista Júnior <benigno@opus-software.com.br>
2026-02-21 07:29:17 -06:00
borgmanJeremy 3ef8f093d3 fix build issue in debug mode and cleanup wording (#4525)
* fix build issue in debug mode and cleanup wording

* clang format
2026-02-19 06:03:53 -06:00
borgmanJeremy 53d4da8fcd Multimonitor fix (#4498)
* Rework capture system to only enter fullscreen widget on one monitor

* Sort monitor previews by screen position instead of Qt index (#4522)

The monitor selection dialog displayed monitors in Qt's default
screen order (by connector name, e.g. DP-1 before DP-2), which
can differ from the physical arrangement configured in the display
settings. This sorts the preview widgets by their X geometry
position so they match the user's actual left-to-right layout.

---------

Co-authored-by: Brian J. Cohen <brianjcohen@gmail.com>
2026-02-18 16:01:37 -06:00
Ofek Lev 739a809557 Add Windows installation instructions for Scoop (#4501)
* Add Windows installation instructions for Scoop

* Apply suggestion from @ofek
2026-02-07 09:39:22 -06:00
Benigno Batista Júnior c4000368c8 fix: check QPainter::isActive() before drawing in Wayland (#4496)
On Wayland, the backing store may not be ready when paintEvent is called,
causing QPainter to fail with 'Paint device returned engine == 0'.

This adds isActive() checks to prevent crashes when the painter
cannot be initialized.

Fixes crashes on KDE Plasma Wayland with Qt 6.
2026-02-03 15:41:30 -06:00