* + cli support on windows
- removes the preprocessor macro that prevented arg
parsing on Windows
- adds windows-cli.cpp as src for a wrapper exe
- adds flameshot-cli target into cmake when building
on Windows
- updates README
* updates PR
+ support for unicode characters in cli args
+ additional clarification in README re: flameshot-cli
+ new workaround for spaces in _popen path; works with relative output paths
* fix EOL
* updated flameshot.exe path construction
avoids using the hard-coded length of flameshot-cli.exe
* fix whitespace (clang)
* 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>
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.
* 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
* 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.
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
* 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
* Fix full capture use last region
* Limit use last region to gui capture only
* Update config use last region wordings
* Preserve current translations for config use last region wordings