2100 Commits

Author SHA1 Message Date
lvhung
e9817d8a81 Implement reverse arrow (#2144) (#3477) 2025-05-14 06:41:52 -05:00
midirhee12
a570fdea8b Added river support (#3674)
* Added river support

This attempts to generalize wlroots compositors by checking against the
proper desktop name instead of only sway. This fixes the problem of only
supporting sway. Any additional desktop will just have to be added to
the source to check for the correct string.

* fix: riverwm floating docs

* docs: removed no longer relevant comment

* fix: clang-format length

* refactor(desktopinfo): clang-format -i

---------

Co-authored-by: cvoges12 <vogesclayton@gmail.com>
Co-authored-by: cvoges12 <38054771+cvoges12@users.noreply.github.com>
Co-authored-by: midirhee12 <midirhee@proton.me>
2025-05-14 06:19:54 -05:00
manfredlotz
899c55e47b small changes to make flameshot recognize cosmic desktop (#3725) 2025-05-12 20:10:13 -05:00
borgmanJeremy
74bb870f18 Fix issue when config subcommand toggles autostart (#3940) 2025-05-11 18:11:18 -05:00
Aleksey Komarov
f2d52f2275 Replace USE_WAYLAND_GRIM build option with useGrimAdapter setting (#3919) 2025-05-11 12:40:31 -05:00
donutAnees
be54ae9c0d Add Shortcut to Cancel current selection (#3751)
This PR adds the ability to close the selection using the Ctrl + Backspace
key combination, addressing issue #3319. The new shortcut
allows users to quickly exit the selection mode without relying on mouse
interactions.
2025-05-11 12:39:29 -05:00
borgmanJeremy
45c47eb13a Remove pixelation warning due to merging #3765 (#3937) 2025-05-11 10:27:37 -05:00
Mehrad Mahmoudian
2dd1172774 Exclude docs from CIs (#3935)
* exclude docs directory modifications from triggers of CIs

* make Github Actions to be able to get trigerred manually
2025-05-11 07:52:35 -05:00
Mehrad Mahmoudian
2004959b4a Fix documentations (#3934)
* fixes code fence symmetry

* capitalized names in documentations

* improves markdown styling of documentation
2025-05-11 07:50:28 -05:00
Daniel Fox
90fd5fcb2e Remove QT+GNOME+Wayland 'xcb' hack on fixed Qt versions (#3683)
* Bypass the Qt GNOME/Wayland workaround on fixed Qt versions

We implement code on GNOME desktops to force the
QT_QPA_PLATFORM to be 'xcb'; this works around a
clipboard-related bug on GNOME+Wayland+Qt.

This bug was fixed (or worked around) in Qt 5.15.2,
so we implement a version check; if the runtime Qt
version is < 5.15.2, still force the workaround;
otherwise, we don't need the workaround so we skip
it.

* Reformat with clang-format
2025-05-10 20:07:12 -05:00
Wojciech Muła
7346d5bfe7 Add Fluxbox configuration snippet (#3796) 2025-05-10 20:02:16 -05:00
SFBB
b801ada623 Fix issue #564, that in wayland fractional scaling situtation, screenshot preview size is wrong. (#3869)
* fix screenshot's size not match with the screen when applying fractional scaling in KDE plasma desktop in wayland.

* Fix: Really fix wayland dpr is not correct and that causes our screenshot preview is wrongly scaled issue. This fix supports that we will use dpr in xcb platform because it is correct in that case.

* Chore: Use more concise variable names. Add comments to explain context.

* Chore: Fix a typo(physcal -> physical). Change code style to meet the .clang-format requirement.
2025-05-10 19:00:48 -05:00
borgmanJeremy
6499b510c8 Upgrade fedora CI to 41 and 42 (#3932) 2025-05-10 17:44:32 -05:00
borgmanJeremy
f7923936f2 fix clang-format for another PR (#3931) 2025-05-10 17:21:08 -05:00
insuna
7b25e467f0 Don't initialize Notifications dbus if disabled (#3598) 2025-05-10 16:42:42 -05:00
j4k0xb
a293034a50 Add option to disable abort notification (#3610) 2025-05-10 16:08:23 -05:00
Anwarul Islam
de11a36967 refactor: move general configuration tab to ConfigWindow first (#3655) 2025-05-10 16:08:09 -05:00
Oleksandr Honcharov
f4cde19c63 Fix the known issue of saving JPEG to clipboard on macOS (#3724) 2025-05-04 07:26:32 -05:00
Y5
7236570ca2 Optionally confirm to quit after pressing Escape (#3758)
* config: add `showQuitPrompt` option

Signed-off-by: y5c4l3 <y5c4l3@proton.me>

* capturewidget: optionally show prompt on quit

Signed-off-by: y5c4l3 <y5c4l3@proton.me>

* capturewidget: apply theme in quit prompt

Signed-off-by: y5c4l3 <y5c4l3@proton.me>

---------

Signed-off-by: y5c4l3 <y5c4l3@proton.me>
2025-05-02 15:42:57 -05:00
Henri Peurasaari
7eb5627e07 Include showStartupLaunchMessage in example ini file (#3452) 2025-05-02 06:53:57 -05:00
borgmanJeremy
9c098200c1 make clang-format happy (#3917) 2025-05-02 06:49:57 -05:00
jrpie
533a1b7d55 [security] replace pixelation by pseudo-pixelation (#3765)
* replaced pixelation by pseudo-pixelation

* pseudo-pixelation: sample from outside of the area if possible

* pseudo-pixelation: include <array>
2025-05-02 06:20:15 -05:00
Ricardo Ardissone
14619b1206 use QStandardPaths::ApplicationsLocation for open with (#3663) 2025-05-01 07:17:29 -05:00
Piotr Bocheński
fe3bcac8c5 Respect disabledGrimWarning config all notifications (#3896)
Signed-off-by: Piotr Bocheński <piotr@bochen.ski>
2025-04-28 06:23:59 -05:00
Piotr Bocheński
87e53adcab Introduce PKGBUILD for Arch Linux AUR builds (#3895)
Signed-off-by: Piotr Bocheński <piotr@bochen.ski>
2025-04-27 17:08:57 -05:00
borgmanJeremy
0101357cbe Apply clang-format (#3915) 2025-04-27 13:31:06 -05:00
borgmanJeremy
2f06054999 Remove Ubuntu 20.04 as build target due to EOL and ongoing maintance required (#3914) 2025-04-27 13:30:50 -05:00
Matthias Adler
68594dba75 fix: add missing appstream data for flatpak builder (#3911)
Commit updates appstream data to pass strict validation, which is necessary to build new Flatpak versions.

Flatpak builder added strict validation and requires "developer" information [1] to be provided.

Build error:

```
Run docker run --rm --privileged \
+ flatpak-builder-lint --exceptions repo repo
{
    "errors": [
        "appstream-missing-developer-name"
    ],
    "warnings": [
        "appstream-screenshot-missing-caption"
    ],
    "info": [
        "appstream-screenshot-missing-caption: One or more screenshots
are missing captions in the Metainfo file",
        "appstream-missing-developer-name: No developer tag found in
Metainfo file"
    ],
    "message": "Please consult the documentation at
https://docs.flathub.org/docs/for-app-authors/linter"
}
error: Recipe `validate-build` failed with exit code 1
```

For good measure, captions for the provided screenshots are added.

After changes made, `appstreamcli validate` only mentions issue with uppercase cid component which should be kept as is:

```sh
$ appstreamcli validate --pedantic data/appdata/org.flameshot.Flameshot.metainfo.xml
P: org.flameshot.Flameshot:7: cid-contains-uppercase-letter org.flameshot.Flameshot

✔ Validation was successful: pedantic: 1
```

[1]: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines#developer-name
2025-04-27 17:27:33 +03:00
Allen Guo
b35f977c74 enable PinWidget scrolling on macos with mouse (#3860) 2025-04-27 09:18:17 -05:00
lhz07
5b7d41c7e6 Improve the speed of calling grim (#3859) 2025-04-27 09:16:15 -05:00
Justus Springer
63a4ab669b Add last-region option to manpage and shell completions (#3893)
* add --last-region to manpage

* Add shell completions for --last-region
2025-04-07 11:06:59 +03:00
borgmanJeremy
5c8244fef8 Bumped minimum Cmake version to fix build issues on Cmake 4.0. (#3901)
* Bumped minimum Cmake version to fix build issues on Cmake 4.0. 3.22 was chosen since that is the version on Ubuntu 22.04

* lowered cmake version to 3.18 for debian bullseye
2025-04-07 11:02:45 +03:00
Ariel Volovik
042d690060 Unlock weblate translations (#3873)
* Translated using Weblate (Polish)

Currently translated at 100.0% (416 of 416 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (416 of 416 strings)

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

* Translated using Weblate (Spanish)

Currently translated at 100.0% (416 of 416 strings)

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

* Translated using Weblate (Spanish)

Currently translated at 100.0% (416 of 416 strings)

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

---------

Co-authored-by: Eryk Michalak <gnu.ewm@protonmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
2025-03-17 18:43:51 +02:00
Ahmed
1997aed8a3 fix: correct macos build (#3867)
- add arm64 build
- update x86_64 build on maocos-13
2025-03-10 09:16:29 +02:00
Ahmed
3b5459f99d ci: some improvements (#3863)
* ci: update linux pack distribution matrix

- drop debian 10, fedora 39, opensuse 15.5 build
- add fedora 41 build

* ci: simplify docker buildx and qemu setup

* ci: segmented ci artifact

- remove third party upload scripts

* ci: add version details info into artifact name
2025-03-07 22:58:19 +02:00
Ariel Volovik
73aad3cb72 Update jurplel/install-qt-action version in build_cmake.yml (#3857)
`jurplel/install-qt-action` provides a fix to Windows 2019 runners in commit `fc214ccc2dadadaebf48e8e5ed6ff4297dfbb732`, which is in `v4`.

This fix will prevent our CI runs from failing, as they attempt to run with python 3.13 and that causes issues.
2025-03-04 08:56:07 +02:00
Ariel Volovik
aad3a5e42e Remove QEMU dummy package installation from Linux-pack.yml (#3851)
The QEMU package is now a dummy package. Installing qemu-user-static should be sufficient.

See https://packages.debian.org/buster/qemu for official mention of it being a dummy package.
2025-02-27 00:27:22 +02:00
Matthias Kunnen
7aa69e4e25 Update build/install instructions for custom install dir translations to work (#3821) 2025-02-12 08:29:21 +02:00
Matthias Kunnen
c35e16afcb Fix English translations not used despite being preferred (#3822)
When specifying the preferred language on Linux, the $LANGUAGE env var
is used. https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html

Example:
$ LANGUAGE=en:nl flameshot

Expected:
flameshot should be in English as this is a localization that flameshot provides.
If English would not be supported, it should fall back to using Dutch (nl).

Actual:
flameshot uses Dutch translations.

Cause:
If an empty translation file for "en" is not provided, English is only
used as a fallback.
See https://bugreports.qt.io/browse/QTBUG-69196
2025-02-09 12:42:58 +02:00
Ahmed
54644dff89 ci: enhancements and updates (#3685)
* ci: update transferwee from upstream

* chore: separate RPM spec into two files

* ci: enhancements and updates

- move to quay from dockerhub due to pull rate limit
- add debian 12, ubuntu 24.04, fedora 39/40, opensue leap 15.5/15.6
- the building envrinments of appimage/snap/flatpak update to ubuntu 22.04
2025-02-03 15:16:32 +02:00
Mehrad Mahmoudian
a1e5d2e230 CI: migrate all upload-artifact actions from v3 to v4 (#3830)
* migrate all upload-artifact actions from v3 to v4

* fix the artifact overwrite in @v4
2025-02-03 15:11:55 +02:00
Aman Gupta
61a6074bec delete current tool command name corrected (#3348) 2025-02-01 21:09:56 +02:00
Mehrad Mahmoudian
119df557f5 exclude documentation modifications from CI (#3651) 2025-02-01 18:40:22 +02:00
Mehrad Mahmoudian
b88056c266 removes Slack from documentation (#3650) 2025-02-01 18:38:09 +02:00
yychi
d6d6f09294 Correct the exit value on abort (#3321) (#3786)
`flameshot gui` exits with 0 on abort, we can use the return value of `qApp->exec()` in `requestCaptureAndWait`.
2025-01-31 11:27:11 +02:00
Violet (Larson)
10d12e0b54 Give pins a different window title (#3766)
* Give pins a different window title

Workaround for a KDE issue where the capture window can't be
differentiated from the pin window in any way, making the multi-monitor
workaround in #3073 also break pins.

* reformat window title

Flameshot Pin => flameshot-pin
2025-01-19 10:23:29 +02:00
Sergio Schvezov
3fafcf4aa9 chore: cleanup and update base to core22 (#3790)
* chore: cleanup and update base to core22

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>

* fix: s/snapcraftctl/craftctl/

Co-authored-by: Alex Lowe <alex.lowe@canonical.com>

---------

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
Co-authored-by: Alex Lowe <alex.lowe@canonical.com>
2024-12-03 09:39:50 +02:00
Alex Pantechovskis
729f494d53 Add warning about pixelation security into the description (#3768) 2024-11-10 14:01:49 +02:00
Pete Dietl
14a136777c Update README (#3693)
* Clarify if building from source how to install to a specific directory.
* Fix some minor spelling and grammar issues.
2024-09-01 23:26:03 +03:00
Ross Smith II
fd3772e2ab ci: Add support for Ubuntu 24.04 (#3678)
* ci: Add support for Ubuntu 24.04

* Linux-pack.yml: Update fedora to 39/40, add debian 12, update suse to 15.6

* Linux-pack.yml: Fix typo
2024-08-02 14:11:21 +03:00