Commit Graph

1584 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
Yurii Puchkov
203b5baab6 Added UploaderManager for further multiple Storage for images support (#2142)
Co-authored-by: Yuriy Puchkov <yuriy.puchkov@namecheap.com>
2021-12-07 17:19:32 -06:00
Fabian Buchenberger
f5bbf73cfd fix URL of Preview-GIF in README.md (#2140) 2021-12-02 17:31:56 -06:00
Haris Gušić
6d9768445f Fix screen grab error (#2139)
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2021-12-02 17:30:57 -06:00
borgmanJeremy
ce336a6a70 Found some copy paste code and cleaned it up (#2124) 2021-11-30 10:09:55 -06:00
Vitaly Zaitsev
120ba0bac3 Always use native Wayland backend on KDE Plasma. (#2131)
This will fix issues with broken hotkeys with KDE Plasma on Wayland.

Partially reverts 5d66405ed0e0fb871c174b8c1dfffb4a4d48034e commit.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2021-11-30 10:09:35 -06: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
borgmanJeremy
b8c0b74ea2 Qt5 deprications (#2076)
* working on removing deprecated warnings for Qt6 migration

* tewsting 18.04 fix
2021-11-21 14:40:56 -06:00
borgmanJeremy
8ab1ac0eaa Bumping Qt-Color-Widgets (#2052)
* Bumping Qt-Color-Widgets

* changing Qt Color Widget CMAKE setup
2021-11-20 20:44:58 -06:00
LHBosssss
2283b3e783 Enable Screenshot & Screenshot history shortcut changing in MACOS (#2098)
* Enable Screenshot & Screenshot history shortcut changing in MACOS
From issue #1259 and my experience, I've fix and test this feature in my Hackintosh. So now you can change shortcut to take screenshot and show screenshot history (require restart flameshot).
- Default key to take screenshot is "Cmd + Shift + X", screenshot history is "Option + Shift + X".
- Added new translate text "Require restart flameshot".

* - Change message text for screenshot shortcut

* - Format code using clang-format

Co-authored-by: adrienpixodeo <adrien@pixodeo.net>
2021-11-20 20:44:39 -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
53cc11ac58 adjusted layout of side bar to center slider (#2093) 2021-11-19 18:47:39 -06:00
Mehrad Mahmoudian
12e295fe4a Bug report form (#2061)
* replaces the github bug report with new github schema form

* replaces the github feature request with new github schema form

* adds the autolabling for the Enhancement

* fixes some rendering issues and also corrected some sentences
2021-11-18 12:08:00 -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
Clayton
f25d58b6db Allows color form elements to wrap, sets minimum width to thickness s… (#2068)
* Allows color form elements to wrap, sets minimum width to thickness slider.

* Uses named constant variable for slider width
2021-11-15 11:40:14 -06:00
Jeremy Borgman
58e37b092c Resolved seg fault on MacOs due to macro'd out config 2021-11-13 21:38:45 -06:00
Miodrag Milić
167de09b20 add chocolatey package (#2056) 2021-11-10 08:33:56 -06:00
borgmanJeremy
e300141ff8 Fixed race condition with clipboard and system notification on upload (#2053) 2021-11-09 17:54:00 -06:00
Haris Gušić
6432490c31 Add --region option (#2013)
* Fix empty help message bug

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

* Add --region option

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

* Fix: initial selection even without --region

* Enable 'full --region'

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

* Enable 'screen --region'

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

* Allow negative width/height

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

* Fix screen intersection bug

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

* Change output format of --print-geometry

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2021-11-08 22:59:46 +01:00
Dearsh Oberoi
df5d99321a Added confirmation for Upload (#2037) 2021-11-08 13:33:50 -06:00
borgmanJeremy
445a4c68e8 Fixed Gnome File Extensions (#2047)
* Fixed Gnome File Extensions

* removed old comment
2021-11-05 13:35:30 -05:00
borgmanJeremy
5a0c5c389a Fix KDE Wayland Screenshots (#2045)
* testing wayland

* clang-format
2021-11-05 13:33:58 -05:00
borgmanJeremy
2c98fc6cfe Update README.md
No longer need unsafe mode for gnome41
2021-11-04 10:41:32 -05:00
borgmanJeremy
94e5bb933b fixing windows CI (#2044) 2021-11-04 10:35:19 -05:00
Meesha
0a7e831f6e Remove qt5-devel from Fedora compile dependencies (#2042) 2021-11-04 10:01:53 -05:00
Ahmed Zetao Yang
139e4bde04 chore(CI): add fedora 35 & fix arm building error (#2043)
* chore(CI): add fedora 35

* fix(CI): qemu-user-static execute the registering scripts error
2021-11-04 09:57:26 -05:00
borgmanJeremy
e4e7c90109 Gnome41 (#2035)
* testing new portal on gnome41

* applied clang format

* macro out portal API on windows
2021-11-03 08:01:19 -05:00
borgmanJeremy
5021457d56 Merge pull request #2024 from weblate/weblate-flameshot-flameshot
Translations update from Weblate
2021-11-02 13:09:45 -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
Sergey Zolotarev
065aa98ce4 Fix some compile warnings in macOS build (#2027)
* Fix some compile warnings in macOS build

* Update macOS Info.plist template
2021-11-01 09:59:51 +01:00
Haris Gušić
c3cde5ab2f Fix segfault in ConfigHandler (#2029)
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2021-10-31 10:32:55 +01:00
borgmanJeremy
731b82a96d Changed initilization to remove deprecated warnings (#2023)
* Changed initilization to remove deprecated warnings

* fixing clang formate

* Need to do a Qt version check

* cleaned up formatting
2021-10-30 15:30:39 -05:00
Sergey Zolotarev
d5ac6e0efd Fix errors when generating flameshot.icons (#2026) 2021-10-30 21:28:51 +02: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
borgmanJeremy
9346da5e20 stdexcept is explicetly required when building on msvc compiler (#2022) 2021-10-29 14:42:39 -05:00
borgmanJeremy
327d7a42b2 debugging failed windows build (#2020)
* debugging failed windows build

* debugging failed windows build

* debugging failed windows build
2021-10-29 14:21:42 -05:00
Haris Gušić
0e2d4dd6c9 Add 'nightly builds' badge (#2019) 2021-10-29 09:11:44 -05:00
borgmanJeremy
67a3fd99f0 working on analysis (#2015)
* working on analysis

* removing MSVC analysis since it is not working well with Qt MOC
2021-10-29 09:10:43 -05:00
borgmanJeremy
8fb1083502 Create msvc-analysis.yml 2021-10-27 16:12:07 -05:00
Michael Bryan
65f8ac0414 Save by writing to a QFile so we can capture the error message (#2012) 2021-10-27 12:06:35 +02:00
Dearsh Oberoi
de7eeb4d64 Right click to open panel and select tool (#2008)
* Right click to open panel and select tool

* Renamed slots
2021-10-27 10:40:32 +02:00
AdavisSnakes
2107ef38d0 Unnecessary share folder on windows (#1992) 2021-10-26 14:56:49 +02:00