Commit Graph

222 Commits

Author SHA1 Message Date
Haris Gušić
233c765b1f Reduce dependence on D-Bus (#2003)
* Handle captures without sigslots

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Set {app,organization}Name and version consistently

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Make 'full' dbus-free

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Move CaptureRequest::exportCapture to Controller

We need to wait until the upload widget (or similar widgets) have
finished before exiting. This must be done using a signal. The problem
is that CaptureRequest can't be guaranteed to survive until the widget
has finished what it's doing.

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Use QApplication with the 'full' subcommand

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Do unto 'screen' as we did to 'full'

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add FlameshotDaemon singleton class

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Support clipboard hosting for both pixmaps and text

* Fix upload handling

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Do not show tray icon if not daemon

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Clean up handling of pin task

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove annoying Qt warning messages

The messages were caused by the color wheel.

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix small bug in Controller::exportCapture

* Fix --raw output

* Make 'gui' dbus-independent

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix accept on select bug

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix compile error on Windows

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Make it work on Windows

* Remove obsolete function in main.cpp

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Make 'launcher' work without dbus

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* clang-format, sigh

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Enable CLI parsing on MacOS

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Make 'config' work without dbus

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Small refactor of capture request handling

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove obsolete DBusUtils

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove unused D-Bus sigslots

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove D-Bus methods openConfig, autostartEnabled and trayIconEnabled

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove D-Bus method requestCapture

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove CaptureRequest id mechanism

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix 'launcher' crash

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Handle clipboard notifications properly

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add 'autoCloseIdleDaemon' option

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Document FlameshotDaemon class

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Make 'flameshot gui' run in single-application mode

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add `allowmultipleGuiInstances` config option

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix endless loop with multiple GUI instances

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Move upload confirmation dialog where it belongs

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add the new config options to the GUI as well

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix failing build on Windows

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Handle persistence on MacOS

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* fixed notifications on macos

* Fixed display on macos

* Reformat tests/action_options.sh

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix infinite recursion in tests/action_options.sh

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

Co-authored-by: Dearsh Oberoi <59907159+deo002@users.noreply.github.com>
Co-authored-by: Jeremy Borgman <borgman.jeremy@pm.me>
2021-12-08 22:18:39 +01:00
Weblate (bot)
80cd559bbf Translations update from Hosted Weblate (#2103)
* Translated using Weblate (Slovak)

Currently translated at 100.0% (264 of 264 strings)

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

* Translated using Weblate (Slovak)

Currently translated at 100.0% (264 of 264 strings)

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

Co-authored-by: Tomáš Kukumberg <tomas.kukumberg@centrum.sk>
2021-11-26 15:21:52 -06:00
Weblate (bot)
d253143b8f Translations update from Hosted Weblate (#2089)
* Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (264 of 264 strings)

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

* Translated using Weblate (Finnish)

Currently translated at 63.6% (168 of 264 strings)

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

* Added translation using Weblate (Vietnamese)

* Translated using Weblate (Chinese (Traditional, Hong Kong))

Currently translated at 86.7% (229 of 264 strings)

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

Co-authored-by: João Vicente L. F. Machado <joaovic@gmail.com>
Co-authored-by: Jiri Grönroos <jiri.gronroos@iki.fi>
Co-authored-by: Lưỡng Hồ Duy <hoduyluong2108@gmail.com>
Co-authored-by: Henry Chemistry <opgod1110@gmail.com>
2021-11-20 11:54:02 -06:00
borgmanJeremy
f675123e0a working on monochrome icon (#2071)
* working on monochrome icon

* Update pipeline

* adjusted icns to be monochrome

* Added 1045 monochrome
2021-11-17 14:28:16 -06:00
Weblate (bot)
d7d1115abd Translations update from Hosted Weblate (#2081)
* Translated using Weblate (Hebrew)

Currently translated at 100.0% (264 of 264 strings)

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

* Added translation using Weblate (Finnish)

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
Co-authored-by: Jiri Grönroos <jiri.gronroos@iki.fi>
2021-11-17 13:10:28 -06:00
Mehrad Mahmoudian
00eda448b8 updates the manpage (#2079) 2021-11-17 13:09:27 -06:00
borgmanJeremy
5a0c5c389a Fix KDE Wayland Screenshots (#2045)
* testing wayland

* clang-format
2021-11-05 13:33:58 -05:00
109247019824
2467ee7793 Translated using Weblate (Bulgarian)
Currently translated at 2.6% (7 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/
2021-11-02 00:36:11 +01:00
Gustavo Costa
037fc727eb Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (264 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/pt_BR/
2021-11-02 00:36:11 +01:00
109247019824
a1e6a2f07f Translated using Weblate (Bulgarian)
Currently translated at 1.8% (5 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/bg/
2021-10-29 14:43:07 -05:00
Daniel Napora
d4589243d0 Translated using Weblate (Polish)
Currently translated at 100.0% (264 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/pl/
2021-10-29 14:43:07 -05:00
109247019824
1b12d6460a Added translation using Weblate (Bulgarian) 2021-10-29 14:43:07 -05:00
mondstern
56e2e062c3 Translated using Weblate (Swedish)
Currently translated at 100.0% (264 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/sv/
2021-10-29 14:43:07 -05:00
mondstern
3f95eb5e1e Translated using Weblate (Polish)
Currently translated at 100.0% (264 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/pl/
2021-10-29 14:43:07 -05:00
Delmont Jim
242c89a4d2 Translated using Weblate (French)
Currently translated at 97.3% (257 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/fr/
2021-10-29 14:43:07 -05:00
Weblate (bot)
f88c98b286 Translated using Weblate (German) (#1986)
Currently translated at 100.0% (264 of 264 strings)

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

Co-authored-by: Benjamin Schmid <ben@tolor.de>
2021-10-17 09:44:54 -05:00
Haris Gušić
c59cd049b7 Add icon for accept tool
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2021-10-08 19:11:23 +02:00
Haris Gušić
73e6762e3d Remove redundant DBus methods
NOTE: This breaks KDE shortcuts
2021-10-08 19:11:22 +02:00
Haris Gušić
5ee85ed5c0 Add requestCapture DBus call
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2021-10-08 19:11:22 +02:00
Leandro René Vallejos Puppo
1ba6108474 Translated using Weblate (Spanish)
Currently translated at 100.0% (264 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/es/
2021-10-07 10:39:04 -05:00
borgmanJeremy
0b777c4558 Added text alignment (#1892) 2021-10-06 13:23:54 -05:00
Luna Jernberg
3221e6f025 Translated using Weblate (Swedish)
Currently translated at 98.8% (261 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/sv/
2021-10-06 12:59:03 -05:00
MOUSTAFA ALIOGLOU
a19f0463fc Translated using Weblate (Greek)
Currently translated at 96.9% (256 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/el/
2021-10-06 12:59:03 -05:00
MOUSTAFA ALIOGLOU
010d9797d9 Added translation using Weblate (Greek (Ancient)) 2021-10-06 12:59:03 -05:00
a1346054
b95e096136 Simple maintenance improvements (#1918)
* Use license file from gnu.org

Downloaded from:
https://www.gnu.org/licenses/gpl-3.0.txt

* Add missing final newline

* Fix link

* Fix shellcheck warnings

* Move donation header one level up

* Fix typos

* Stop mixing tabs and spaces

* Trim trailing whitespace
2021-09-27 20:33:45 -05:00
Anonymous
ebc106a492 Translated using Weblate (Galician)
Currently translated at 40.9% (108 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/gl/
2021-09-14 16:57:04 +02:00
Anonymous
e03f7d9471 Translated using Weblate (Indonesian)
Currently translated at 52.6% (139 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/id/
2021-09-14 16:57:04 +02:00
Anonymous
11ddef945c Translated using Weblate (Greek)
Currently translated at 9.4% (25 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/el/
2021-09-14 16:57:04 +02:00
Anonymous
e5ee5d9206 Translated using Weblate (Norwegian Bokmål)
Currently translated at 0.0% (0 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/nb_NO/
2021-09-14 16:57:04 +02:00
Anonymous
b97a1ebd97 Translated using Weblate (Chinese (Traditional))
Currently translated at 77.6% (205 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/zh_Hant/
2021-09-14 16:57:04 +02:00
Anonymous
38b1268389 Translated using Weblate (Chinese (Traditional, Hong Kong))
Currently translated at 55.3% (146 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/zh_Hant_HK/
2021-09-14 16:57:04 +02:00
Anonymous
2037cb3832 Translated using Weblate (Chinese (Simplified))
Currently translated at 99.6% (263 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/zh_Hans/
2021-09-14 16:57:04 +02:00
Anonymous
2528289330 Translated using Weblate (Swedish)
Currently translated at 45.0% (119 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/sv/
2021-09-14 16:57:04 +02:00
Anonymous
25981028cb Translated using Weblate (Serbian (sr_SP))
Currently translated at 44.6% (118 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/sr_SP/
2021-09-14 16:57:04 +02:00
Anonymous
8d1fee00df Translated using Weblate (Slovak)
Currently translated at 95.4% (252 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/sk/
2021-09-14 16:57:04 +02:00
Anonymous
6993fc16c9 Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.6% (263 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/pt_BR/
2021-09-14 16:57:04 +02:00
Anonymous
2f32ad0598 Translated using Weblate (Polish)
Currently translated at 95.0% (251 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/pl/
2021-09-14 16:57:03 +02:00
Anonymous
17e2e9834f Translated using Weblate (Korean)
Currently translated at 50.3% (133 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ko/
2021-09-14 16:57:03 +02:00
Anonymous
9a466143f5 Translated using Weblate (Georgian)
Currently translated at 35.9% (95 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ka/
2021-09-14 16:57:03 +02:00
Anonymous
7c176af56c Translated using Weblate (Japanese)
Currently translated at 77.2% (204 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ja/
2021-09-14 16:57:03 +02:00
Anonymous
77fedd706f Translated using Weblate (Hungarian)
Currently translated at 95.4% (252 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/hu/
2021-09-14 16:57:03 +02:00
Anonymous
2290c3b802 Translated using Weblate (French)
Currently translated at 83.7% (221 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/fr/
2021-09-14 16:57:03 +02:00
Anonymous
00c844b83c Translated using Weblate (Basque)
Currently translated at 95.4% (252 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/eu/
2021-09-14 16:57:03 +02:00
Anonymous
e5a4216455 Translated using Weblate (Spanish)
Currently translated at 45.8% (121 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/es/
2021-09-14 16:57:03 +02:00
Anonymous
70b479f32a Translated using Weblate (German)
Currently translated at 99.6% (263 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/de/
2021-09-14 16:57:03 +02:00
Anonymous
23572e37a5 Translated using Weblate (Czech)
Currently translated at 63.6% (168 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/cs/
2021-09-14 16:57:03 +02:00
Anonymous
fba1c46c30 Translated using Weblate (Catalan)
Currently translated at 66.6% (176 of 264 strings)

Translation: Flameshot/Flameshot
Translate-URL: https://hosted.weblate.org/projects/flameshot/flameshot/ca/
2021-09-14 16:57:03 +02:00
Weblate (bot)
02c5514fc7 Translations update from Weblate (#1896)
* Translated using Weblate (Spanish)

Currently translated at 45.8% (121 of 264 strings)

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

* Translated using Weblate (French)

Currently translated at 83.7% (221 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 78.7% (208 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 78.7% (208 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 82.9% (219 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 82.9% (219 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 89.0% (235 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 89.0% (235 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 92.0% (243 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 92.0% (243 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 93.9% (248 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 93.9% (248 of 264 strings)

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

* Translated using Weblate (Italian)

Currently translated at 100.0% (264 of 264 strings)

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

* Translated using Weblate (Hebrew)

Currently translated at 88.2% (233 of 264 strings)

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

* Translated using Weblate (Persian)

Currently translated at 100.0% (264 of 264 strings)

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

* Translated using Weblate (Hebrew)

Currently translated at 100.0% (264 of 264 strings)

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

Co-authored-by: borgman.jeremy <borgman.jeremy@pm.me>
Co-authored-by: Danial Behzadi <dani.behzi@ubuntu.com>
Co-authored-by: Mehrad Mahmoudian <m.mahmoudian@gmail.com>
Co-authored-by: Eshagh Shahedany <eshagh094@gmail.com>
Co-authored-by: albanobattistella <albano_battistella@hotmail.com>
Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2021-09-14 09:07:12 -05:00
crackcat
df20c7ec8f Add a tool to take an inverted screenshot (#1849)
* Add invert tool to build commands

* Add icons for invert tool

* Integrate invert tool

* Add shortcut for invert tool

* Add invert tool

* Add translation for invert tool

* Run clang-format

* Update tool to invert a region instead of everything

* Update shortcut for invert tool

* Update button order of inverter and counter

* Update translations for invert tool

* Run clang-format

* Revert "Update translations for invert tool"

This reverts commit c1fd5a162be6c64b26790d53eab3749b3a124bcf.

* Revert "Add translation for invert tool"

This reverts commit b0c1da5f36e844fa8b5f1492f5f507d85bb7aa7b.

* Update drawSearchArea to match pixelate

* Update invert icon to one from Material Design

Co-authored-by: crackcat <>
2021-09-01 06:45:20 -05:00
Haris Gušić
584bcd7f6c Add --clipboard to gui subcommand (#1829)
* Add --clipboard to gui subcommand

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Prevent duplicate notification

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2021-08-20 13:09:06 -05:00