Merge branch 'flameshot-org-master' into bugfix/memory-leak

# Conflicts:
#	.github/workflows/Linux-pack.yml
#	CMakeLists.txt
#	data/graphics.qrc
#	src/config/configwindow.cpp
#	src/tools/imgur/imguruploader.cpp
This commit is contained in:
Yuriy Puchkov
2020-10-11 20:49:15 +03:00
26 changed files with 153 additions and 71 deletions

View File

@@ -46,10 +46,17 @@ jobs:
} }
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push'
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
# ref: master # ref: master
- name: Checkout Source code
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set env & Print flameshot version - name: Set env & Print flameshot version
shell: bash shell: bash
run: | run: |
@@ -102,12 +109,19 @@ jobs:
image: vitzy/flameshot:ubuntu-bionic image: vitzy/flameshot:ubuntu-bionic
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push'
# Because git version < 2.18(ubuntu 18.04), so only actions/checkout@v1 can be used. # Because git version < 2.18(ubuntu 18.04), so only actions/checkout@v1 can be used.
# If you use actions/checkout@v2, you will have no .git folder. # If you use actions/checkout@v2, you will have no .git folder.
uses: actions/checkout@v1 uses: actions/checkout@v1
with: with:
fetch-depth: 0 fetch-depth: 0
# ref: master # ref: master
- name: Checkout Source code
if: github.event_name == 'pull_request'
uses: actions/checkout@v1
with:
fetch-depth: 0
ref: refs/pull/${{ github.event.number }}/head
- name: Set env & Print flameshot version - name: Set env & Print flameshot version
shell: bash shell: bash
run: | run: |
@@ -199,10 +213,17 @@ jobs:
} }
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push'
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
# ref: master # ref: master
- name: Checkout Source code
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set env & Print flameshot version - name: Set env & Print flameshot version
shell: bash shell: bash
run: | run: |
@@ -285,10 +306,17 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push'
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
# ref: master # ref: master
- name: Checkout Source code
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set env & Print flameshot version - name: Set env & Print flameshot version
shell: bash shell: bash
run: | run: |
@@ -338,7 +366,7 @@ jobs:
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr
make -j$(nproc) DESTDIR=${APPIMAGE_DST_PATH} install make -j$(nproc) DESTDIR=${APPIMAGE_DST_PATH} install
$GITHUB_WORKSPACE/appimagetool -s deploy ${APPIMAGE_DST_PATH}/usr/share/applications/flameshot.desktop $GITHUB_WORKSPACE/appimagetool -s deploy ${APPIMAGE_DST_PATH}/usr/share/applications/org.flameshot.Flameshot.desktop
mkdir -p ${APPIMAGE_DST_PATH}/usr/plugins/platforminputcontexts mkdir -p ${APPIMAGE_DST_PATH}/usr/plugins/platforminputcontexts
cp \ cp \
@@ -346,9 +374,11 @@ jobs:
${APPIMAGE_DST_PATH}/usr/plugins/platforminputcontexts/ ${APPIMAGE_DST_PATH}/usr/plugins/platforminputcontexts/
cp \ cp \
$GITHUB_WORKSPACE/data/img/app/flameshot.png \ $GITHUB_WORKSPACE/data/img/app/org.flameshot.Flameshot.png \
${APPIMAGE_DST_PATH}/ ${APPIMAGE_DST_PATH}/
rm ${APPIMAGE_DST_PATH}/lib/x86_64-linux-gnu/libxcb-glx.so.0
VERSION=${VERSION} $GITHUB_WORKSPACE/appimagetool ${APPIMAGE_DST_PATH} VERSION=${VERSION} $GITHUB_WORKSPACE/appimagetool ${APPIMAGE_DST_PATH}
mv $GITHUB_WORKSPACE/Flameshot-${VERSION}-${ARCH}.AppImage $GITHUB_WORKSPACE/Flameshot-${VERSION}.${ARCH}.AppImage mv $GITHUB_WORKSPACE/Flameshot-${VERSION}-${ARCH}.AppImage $GITHUB_WORKSPACE/Flameshot-${VERSION}.${ARCH}.AppImage
- name: SHA256Sum of appimage package(daily build) - name: SHA256Sum of appimage package(daily build)
@@ -376,10 +406,17 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push'
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
# ref: master # ref: master
- name: Checkout Source code
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set env & Print flameshot version - name: Set env & Print flameshot version
shell: bash shell: bash
run: | run: |
@@ -401,21 +438,21 @@ jobs:
flatpak install -y --noninteractive flathub org.kde.Sdk//5.15 org.kde.Platform//5.15 flatpak install -y --noninteractive flathub org.kde.Sdk//5.15 org.kde.Platform//5.15
- name: Packaging flatpak - name: Packaging flatpak
run: | run: |
BUNDLE="org.flameshot.flameshot_${VERSION}_${ARCH}.flatpak" BUNDLE="org.flameshot.Flameshot_${VERSION}_${ARCH}.flatpak"
MANIFEST_PATH=$GITHUB_WORKSPACE/data/flatpak/org.flameshot.flameshot.yml MANIFEST_PATH=$GITHUB_WORKSPACE/data/flatpak/org.flameshot.Flameshot.yml
RUNTIME_REPO="https://flathub.org/repo/flathub.flatpakrepo" RUNTIME_REPO="https://flathub.org/repo/flathub.flatpakrepo"
APP_ID="org.flameshot.flameshot" APP_ID="org.flameshot.Flameshot"
BRANCH="master" BRANCH="master"
flatpak-builder --user --disable-rofiles-fuse --repo=repo --force-clean flatpak_app ${MANIFEST_PATH} --install-deps-from=flathub flatpak-builder --user --disable-rofiles-fuse --repo=repo --force-clean flatpak_app ${MANIFEST_PATH} --install-deps-from=flathub
flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH} flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
mv $GITHUB_WORKSPACE/org.flameshot.flameshot_${VERSION}_${ARCH}.flatpak $GITHUB_WORKSPACE/org.flameshot.flameshot-${VERSION}.${ARCH}.flatpak mv $GITHUB_WORKSPACE/org.flameshot.Flameshot_${VERSION}_${ARCH}.flatpak $GITHUB_WORKSPACE/org.flameshot.Flameshot-${VERSION}.${ARCH}.flatpak
- name: SHA256Sum of flatpak package(daily build) - name: SHA256Sum of flatpak package(daily build)
run: | run: |
sha256sum $GITHUB_WORKSPACE/org.flameshot.flameshot-${VERSION}.${ARCH}.flatpak sha256sum $GITHUB_WORKSPACE/org.flameshot.Flameshot-${VERSION}.${ARCH}.flatpak
sha256sum $GITHUB_WORKSPACE/org.flameshot.flameshot-${VERSION}.${ARCH}.flatpak > $GITHUB_WORKSPACE/org.flameshot.flameshot-${VERSION}.${ARCH}.flatpak.sha256sum sha256sum $GITHUB_WORKSPACE/org.flameshot.Flameshot-${VERSION}.${ARCH}.flatpak > $GITHUB_WORKSPACE/org.flameshot.Flameshot-${VERSION}.${ARCH}.flatpak.sha256sum
echo "================flatpak sha256sum download link====================" echo "================flatpak sha256sum download link===================="
echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/org.flameshot.flameshot-${VERSION}.${ARCH}.flatpak.sha256sum) echo $(sh $GITHUB_WORKSPACE/scripts/upload_services/${UPLOAD_SERVICE}.sh $GITHUB_WORKSPACE/org.flameshot.Flameshot-${VERSION}.${ARCH}.flatpak.sha256sum)
echo "========no operation for you can see link in the log console=======" echo "========no operation for you can see link in the log console======="
- name: Upload flatpak package(daily build) - name: Upload flatpak package(daily build)
run: | run: |
@@ -427,18 +464,25 @@ jobs:
with: with:
name: Linux-distribution-artifact name: Linux-distribution-artifact
path: | path: |
${{ github.workspace }}/org.flameshot.flameshot-*.${{ env.ARCH }}.flatpak ${{ github.workspace }}/org.flameshot.Flameshot-*.${{ env.ARCH }}.flatpak
${{ github.workspace }}/org.flameshot.flameshot-*.${{ env.ARCH }}.flatpak.sha256sum ${{ github.workspace }}/org.flameshot.Flameshot-*.${{ env.ARCH }}.flatpak.sha256sum
snap-pack: snap-pack:
name: snap name: snap
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push'
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
# ref: master # ref: master
- name: Checkout Source code
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set env & Print flameshot version - name: Set env & Print flameshot version
shell: bash shell: bash
run: | run: |

View File

@@ -55,11 +55,19 @@ jobs:
type: [portable, installer] type: [portable, installer]
steps: steps:
- name: Checkout Source code - name: Checkout Source code
if: github.event_name == 'push'
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
# ref: master # ref: master
- name: Checkout Source code
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Set env & Print flameshot version - name: Set env & Print flameshot version
shell: bash shell: bash
run: | run: |

View File

@@ -25,7 +25,15 @@ jobs:
os: [ubuntu-20.04] os: [ubuntu-20.04]
steps: steps:
- uses: actions/checkout@v2 - name: Checkout Source code
if: github.event_name == 'push'
uses: actions/checkout@v2
- name: Checkout Source code
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Dependencies - name: Install Dependencies
run: | run: |

View File

@@ -7,7 +7,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout Source code
if: github.event_name == 'push'
uses: actions/checkout@v2
- name: Checkout Source code
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: DoozyX/clang-format-lint-action@v0.9 - uses: DoozyX/clang-format-lint-action@v0.9
with: with:
source: './src' source: './src'

View File

@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.13)
# This can be read from ${PROJECT_NAME} after project() is called # This can be read from ${PROJECT_NAME} after project() is called
project( project(
flameshot flameshot
VERSION 0.8.3.2 VERSION 0.8.4.1
LANGUAGES CXX) LANGUAGES CXX)
set(PROJECT_NAME_CAPITALIZED "Flameshot") set(PROJECT_NAME_CAPITALIZED "Flameshot")
@@ -53,7 +53,7 @@ set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Powerful yet simple to use screenshot sof
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION}) set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_PACKAGE_HOMEPAGE_URL "https://flameshot.org") set(CPACK_PACKAGE_HOMEPAGE_URL "https://flameshot.org")
set(CPACK_PACKAGE_CONTACT "flameshot-org developers <info@flameshot.org>") set(CPACK_PACKAGE_CONTACT "flameshot-org developers <info@flameshot.org>")
set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/data/img/app/flameshot.svg") # TODO: Can any generator make use of this? set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/data/img/app/org.flameshot.Flameshot.svg") # TODO: Can any generator make use of this?
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md") # TODO: Where is this used? Do we need a better source? set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md") # TODO: Where is this used? Do we need a better source?
if(WIN32) if(WIN32)

View File

@@ -2,7 +2,7 @@
<p> <p>
<h1> <h1>
<a href="https://github.com/flameshot-org/flameshot"> <a href="https://github.com/flameshot-org/flameshot">
<img src="data/img/app/flameshot.svg" alt="Flameshot" /> <img src="data/img/app/org.flameshot.Flameshot.svg" alt="Flameshot" />
</a> </a>
<br /> <br />
Flameshot Flameshot

View File

@@ -1,4 +1,4 @@
flameshot (0.8.3-1) unstable; urgency=medium flameshot (0.8.4-1) unstable; urgency=medium
* New stable release. * New stable release.

View File

@@ -1,4 +1,4 @@
app-id: org.flameshot.flameshot app-id: org.flameshot.Flameshot
runtime: org.kde.Platform runtime: org.kde.Platform
runtime-version: '5.15' runtime-version: '5.15'
sdk: org.kde.Sdk sdk: org.kde.Sdk
@@ -20,7 +20,8 @@ finish-args:
- --talk-name=org.freedesktop.Notifications - --talk-name=org.freedesktop.Notifications
# System Tray Icon # System Tray Icon
- --talk-name=org.kde.StatusNotifierWatcher - --talk-name=org.kde.StatusNotifierWatcher
- --own-name=org.kde.StatusNotifierItem-2-1 - --own-name=org.kde.*
- --own-name=org.flameshot.Flameshot
modules: modules:
- name: flameshot - name: flameshot
buildsystem: cmake-ninja buildsystem: cmake-ninja
@@ -29,4 +30,4 @@ modules:
sources: sources:
- type: git - type: git
url: https://github.com/flameshot-org/flameshot.git url: https://github.com/flameshot-org/flameshot.git
branch: master branch: master

View File

@@ -1,7 +1,7 @@
<RCC> <RCC>
<qresource prefix="/"> <qresource prefix="/">
<file>img/app/flameshot.svg</file> <file>img/app/org.flameshot.Flameshot.svg</file>
<file>img/app/flameshot.png</file> <file>img/app/org.flameshot.Flameshot.png</file>
<file>img/material/black/delete.svg</file> <file>img/material/black/delete.svg</file>
<file>img/material/black/undo-variant.svg</file> <file>img/material/black/undo-variant.svg</file>
<file>img/material/black/text.svg</file> <file>img/material/black/text.svg</file>

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -1,5 +1,5 @@
Name: flameshot Name: flameshot
Version: 0.8.3 Version: 0.8.4
Release: 1%{?dist} Release: 1%{?dist}
Summary: Powerful yet simple to use screenshot software Summary: Powerful yet simple to use screenshot software
Summary(eu-ES): Potente pero simple de usar software de capturas Summary(eu-ES): Potente pero simple de usar software de capturas
@@ -71,7 +71,7 @@ make %{?_smp_mflags}
%if 0%{?is_opensuse} %if 0%{?is_opensuse}
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
%suse_update_desktop_file %{name} Graphics %suse_update_desktop_file org.flameshot.Flameshot Graphics
%endif %endif
%endif %endif
@@ -87,14 +87,16 @@ make %{?_smp_mflags}
%{_datadir}/%{name} %{_datadir}/%{name}
%{_datadir}/dbus-1/interfaces/org.flameshot.Flameshot.xml %{_datadir}/dbus-1/interfaces/org.flameshot.Flameshot.xml
%{_datadir}/dbus-1/services/org.flameshot.Flameshot.service %{_datadir}/dbus-1/services/org.flameshot.Flameshot.service
%{_datadir}/metainfo/flameshot.metainfo.xml %{_datadir}/metainfo/org.flameshot.Flameshot.metainfo.xml
%{_datadir}/flameshot/translations %{_datadir}/flameshot/translations
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/org.flameshot.Flameshot.desktop
%{_datadir}/bash-completion/completions/%{name} %{_datadir}/bash-completion/completions/%{name}
%{_datadir}/zsh/site-functions/_%{name} %{_datadir}/zsh/site-functions/_%{name}
%{_datadir}/icons/hicolor %{_datadir}/icons/hicolor
%changelog %changelog
* Sat Oct 10 2020 Jeremy Borgman <borgman.jeremy@pm.me> - 0.8.4-1
- Updated for flameshot 0.8.4
* Mon Sep 19 2020 Jeremy Borgman <borgman.jeremy@pm.me> - 0.8.3-1 * Mon Sep 19 2020 Jeremy Borgman <borgman.jeremy@pm.me> - 0.8.3-1
- Updated for flameshot 0.8.3 - Updated for flameshot 0.8.3
* Mon Sep 07 2020 Zetao Yang <vitzys@outlook.com> - 0.8.0-1 * Mon Sep 07 2020 Zetao Yang <vitzys@outlook.com> - 0.8.0-1

View File

@@ -21,7 +21,7 @@ architectures:
apps: apps:
flameshot: flameshot:
command: flameshot command: flameshot
desktop: usr/share/applications/flameshot.desktop desktop: usr/share/applications/org.flameshot.Flameshot.desktop
extensions: extensions:
- kde-neon - kde-neon
environment: environment:
@@ -62,9 +62,9 @@ parts:
override-build: | override-build: |
snapcraftctl build snapcraftctl build
# Correct the Icon path # Correct the Icon path
sed -i 's|^Exec=flameshot|Exec=/snap/bin/flameshot.flameshot|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/flameshot.desktop sed -i 's|^Exec=flameshot|Exec=/snap/bin/org.flameshot.Flameshot|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/org.flameshot.Flameshot.desktop
sed -i 's|^Icon=.*|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/flameshot.svg|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/flameshot.desktop sed -i 's|^Icon=.*|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/org.flameshot.Flameshot.svg|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/org.flameshot.Flameshot.desktop
sed -i 's/^\(Name\(\[.\+\]\)\?=.*\)$/\1 (Snappy Edition)/g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/flameshot.desktop sed -i 's/^\(Name\(\[.\+\]\)\?=.*\)$/\1 (Snappy Edition)/g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/org.flameshot.Flameshot.desktop
build-packages: build-packages:
- g++ - g++
- make - make

View File

@@ -305,28 +305,28 @@ Space로 사이드 패널을 엽니다.</translation>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="162"/> <location filename="../../src/config/geneneralconf.cpp" line="162"/>
<source>Show help message</source> <source>Show help message</source>
<translation> </translation> <translation type="unfinished"> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="166"/> <location filename="../../src/config/geneneralconf.cpp" line="166"/>
<source>Show the help message at the beginning in the capture mode.</source> <source>Show the help message at the beginning in the capture mode.</source>
<translation> .</translation> <translation> .</translation>
</message> </message>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="177"/> <location filename="../../src/config/geneneralconf.cpp" line="177"/>
<location filename="../../src/config/geneneralconf.cpp" line="181"/> <location filename="../../src/config/geneneralconf.cpp" line="181"/>
<source>Show desktop notifications</source> <source>Show desktop notifications</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="194"/> <location filename="../../src/config/geneneralconf.cpp" line="194"/>
<source>Show tray icon</source> <source>Show tray icon</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="198"/> <location filename="../../src/config/geneneralconf.cpp" line="198"/>
<source>Show the systemtray icon</source> <source>Show the systemtray icon</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="102"/> <location filename="../../src/config/geneneralconf.cpp" line="102"/>
@@ -386,7 +386,7 @@ Space로 사이드 패널을 엽니다.</translation>
<location filename="../../src/config/geneneralconf.cpp" line="243"/> <location filename="../../src/config/geneneralconf.cpp" line="243"/>
<source>Launch at startup</source> <source>Launch at startup</source>
<translatorcomment>startup의 .</translatorcomment> <translatorcomment>startup의 .</translatorcomment>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="247"/> <location filename="../../src/config/geneneralconf.cpp" line="247"/>
@@ -396,22 +396,22 @@ Space로 사이드 패널을 엽니다.</translation>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="257"/> <location filename="../../src/config/geneneralconf.cpp" line="257"/>
<source>Close after capture</source> <source>Close after capture</source>
<translation type="unfinished"> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="261"/> <location filename="../../src/config/geneneralconf.cpp" line="261"/>
<source>Close after taking a screenshot</source> <source>Close after taking a screenshot</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="273"/> <location filename="../../src/config/geneneralconf.cpp" line="273"/>
<source>Copy URL after upload</source> <source>Copy URL after upload</source>
<translation> URL </translation> <translation> URL </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/geneneralconf.cpp" line="278"/> <location filename="../../src/config/geneneralconf.cpp" line="278"/>
<source>Copy URL and close window after upload</source> <source>Copy URL and close window after upload</source>
<translation> URL을 </translation> <translation> URL을 </translation>
</message> </message>
</context> </context>
<context> <context>
@@ -531,7 +531,7 @@ Space로 사이드 패널을 엽니다.</translation>
<message> <message>
<location filename="../../src/widgets/infowindow.cpp" line="73"/> <location filename="../../src/widgets/infowindow.cpp" line="73"/>
<source>Toggle visibility of sidebar with options of the selected tool</source> <source>Toggle visibility of sidebar with options of the selected tool</source>
<translation></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/widgets/infowindow.cpp" line="74"/> <location filename="../../src/widgets/infowindow.cpp" line="74"/>
@@ -541,7 +541,7 @@ Space로 사이드 패널을 엽니다.</translation>
<message> <message>
<location filename="../../src/widgets/infowindow.cpp" line="75"/> <location filename="../../src/widgets/infowindow.cpp" line="75"/>
<source>Change the tool&apos;s thickness</source> <source>Change the tool&apos;s thickness</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/widgets/infowindow.cpp" line="93"/> <location filename="../../src/widgets/infowindow.cpp" line="93"/>
@@ -753,7 +753,8 @@ Space로 사이드 패널을 엽니다.</translation>
<message> <message>
<location filename="../../src/tools/selection/selectiontool.cpp" line="46"/> <location filename="../../src/tools/selection/selectiontool.cpp" line="46"/>
<source>Rectangular Selection</source> <source>Rectangular Selection</source>
<translation> </translation> <translatorcomment>selection에 .</translatorcomment>
<translation> Selection</translation>
</message> </message>
<message> <message>
<location filename="../../src/tools/selection/selectiontool.cpp" line="58"/> <location filename="../../src/tools/selection/selectiontool.cpp" line="58"/>
@@ -964,7 +965,7 @@ Space로 사이드 패널을 엽니다.</translation>
<message> <message>
<location filename="../../src/config/uicoloreditor.cpp" line="119"/> <location filename="../../src/config/uicoloreditor.cpp" line="119"/>
<source>Select a Button to modify it</source> <source>Select a Button to modify it</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/uicoloreditor.cpp" line="129"/> <location filename="../../src/config/uicoloreditor.cpp" line="129"/>
@@ -979,7 +980,7 @@ Space로 사이드 패널을 엽니다.</translation>
<message> <message>
<location filename="../../src/config/uicoloreditor.cpp" line="144"/> <location filename="../../src/config/uicoloreditor.cpp" line="144"/>
<source>Contrast Color</source> <source>Contrast Color</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/uicoloreditor.cpp" line="149"/> <location filename="../../src/config/uicoloreditor.cpp" line="149"/>
@@ -1005,12 +1006,12 @@ Space로 사이드 패널을 엽니다.</translation>
<message> <message>
<location filename="../../src/config/visualseditor.cpp" line="61"/> <location filename="../../src/config/visualseditor.cpp" line="61"/>
<source>Opacity of area outside selection:</source> <source>Opacity of area outside selection:</source>
<translation> :</translation> <translation> :</translation>
</message> </message>
<message> <message>
<location filename="../../src/config/visualseditor.cpp" line="89"/> <location filename="../../src/config/visualseditor.cpp" line="89"/>
<source>Button Selection</source> <source>Button Selection</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../../src/config/visualseditor.cpp" line="95"/> <location filename="../../src/config/visualseditor.cpp" line="95"/>

View File

@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application"> <component type="desktop-application">
<id>org.flameshot.flameshot</id> <id>org.flameshot.Flameshot</id>
<metadata_license>CC0-1.0</metadata_license> <metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license> <project_license>GPL-3.0-or-later</project_license>
<name>Flameshot</name> <name>Flameshot</name>
<releases> <releases>
<release version="0.8.4" date="2020-10-10"/>
<release version="0.8.3" date="2020-09-28"/> <release version="0.8.3" date="2020-09-28"/>
<release version="0.8.1" date="2020-09-23"/> <release version="0.8.1" date="2020-09-23"/>
<release version="0.8.0" date="2020-09-19"/> <release version="0.8.0" date="2020-09-19"/>
@@ -28,6 +29,6 @@
</screenshots> </screenshots>
<url type="homepage">https://github.com/flameshot-org/flameshot</url> <url type="homepage">https://github.com/flameshot-org/flameshot</url>
<update_contact>https://github.com/flameshot-org/flameshot/issues/new</update_contact> <update_contact>https://github.com/flameshot-org/flameshot/issues/new</update_contact>
<launchable type="desktop-id">flameshot.desktop</launchable> <launchable type="desktop-id">org.flameshot.Flameshot.desktop</launchable>
</component> </component>

View File

@@ -29,7 +29,7 @@ Keywords[ja]=flameshot;screenshot;capture;shutter;スクリーンショット;
Keywords[es]=flameshot;screenshot;capture;shutter;captura; Keywords[es]=flameshot;screenshot;capture;shutter;captura;
Keywords[de]=flameshot;screenshot;Bildschirmfoto;Aufnahme; Keywords[de]=flameshot;screenshot;Bildschirmfoto;Aufnahme;
Exec=flameshot Exec=flameshot
Icon=flameshot Icon=org.flameshot.Flameshot
Terminal=false Terminal=false
Type=Application Type=Application
Categories=Graphics; Categories=Graphics;

View File

@@ -158,11 +158,11 @@ install(
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# Install desktop files, completion and dbus files # Install desktop files, completion and dbus files
configure_file(${CMAKE_SOURCE_DIR}/docs/desktopEntry/package/flameshot.desktop configure_file(${CMAKE_SOURCE_DIR}/docs/desktopEntry/package/org.flameshot.Flameshot.desktop
${CMAKE_CURRENT_BINARY_DIR}/share/applications/flameshot.desktop COPYONLY) ${CMAKE_CURRENT_BINARY_DIR}/share/applications/org.flameshot.Flameshot.desktop COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/docs/appdata/flameshot.metainfo.xml configure_file(${CMAKE_SOURCE_DIR}/docs/appdata/org.flameshot.Flameshot.metainfo.xml
${CMAKE_CURRENT_BINARY_DIR}/share/metainfo/flameshot.metainfo.xml COPYONLY) ${CMAKE_CURRENT_BINARY_DIR}/share/metainfo/org.flameshot.Flameshot.metainfo.xml COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/docs/shell-completion/flameshot configure_file(${CMAKE_SOURCE_DIR}/docs/shell-completion/flameshot
${CMAKE_CURRENT_BINARY_DIR}/share/bash-completion/completions/flameshot COPYONLY) ${CMAKE_CURRENT_BINARY_DIR}/share/bash-completion/completions/flameshot COPYONLY)
@@ -177,14 +177,14 @@ configure_file(${CMAKE_SOURCE_DIR}/data/dbus/org.flameshot.Flameshot.service.in
${CMAKE_CURRENT_BINARY_DIR}/share/dbus-1/services/org.flameshot.Flameshot.service) ${CMAKE_CURRENT_BINARY_DIR}/share/dbus-1/services/org.flameshot.Flameshot.service)
# Install Icons # Install Icons
configure_file(${CMAKE_SOURCE_DIR}/data/img/hicolor/48x48/apps/flameshot.png configure_file(${CMAKE_SOURCE_DIR}/data/img/hicolor/48x48/apps/org.flameshot.Flameshot.png
${CMAKE_CURRENT_BINARY_DIR}/share/icons/hicolor/48x48/apps/flameshot.png COPYONLY) ${CMAKE_CURRENT_BINARY_DIR}/share/icons/hicolor/48x48/apps/org.flameshot.Flameshot.png COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/data/img/hicolor/128x128/apps/flameshot.png configure_file(${CMAKE_SOURCE_DIR}/data/img/hicolor/128x128/apps/org.flameshot.Flameshot.png
${CMAKE_CURRENT_BINARY_DIR}/share/icons/hicolor/128x128/apps/flameshot.png COPYONLY) ${CMAKE_CURRENT_BINARY_DIR}/share/icons/hicolor/128x128/apps/org.flameshot.Flameshot.png COPYONLY)
configure_file(${CMAKE_SOURCE_DIR}/data/img/hicolor/scalable/apps/flameshot.svg configure_file(${CMAKE_SOURCE_DIR}/data/img/hicolor/scalable/apps/org.flameshot.Flameshot.svg
${CMAKE_CURRENT_BINARY_DIR}/share/icons/hicolor/scalable/apps/flameshot.svg COPYONLY) ${CMAKE_CURRENT_BINARY_DIR}/share/icons/hicolor/scalable/apps/org.flameshot.Flameshot.svg COPYONLY)
# Install assets # Install assets
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/share/ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/share/ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR})

View File

@@ -37,9 +37,9 @@ ConfigWindow::ConfigWindow(QWidget* parent)
: QTabWidget(parent) : QTabWidget(parent)
{ {
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);
setMinimumSize(GlobalValues::buttonBaseSize() * 14, const int size = GlobalValues::buttonBaseSize() * 12;
GlobalValues::buttonBaseSize() * 12); setMinimumSize(size, size);
setWindowIcon(QIcon(":img/app/flameshot.svg")); setWindowIcon(QIcon(":img/app/org.flameshot.Flameshot.svg"));
setWindowTitle(tr("Configuration")); setWindowTitle(tr("Configuration"));
auto changedSlot = [this](QString s) { auto changedSlot = [this](QString s) {

View File

@@ -239,8 +239,8 @@ void Controller::enableTrayIcon()
m_trayIcon = new QSystemTrayIcon(); m_trayIcon = new QSystemTrayIcon();
m_trayIcon->setToolTip(QStringLiteral("Flameshot")); m_trayIcon->setToolTip(QStringLiteral("Flameshot"));
m_trayIcon->setContextMenu(trayIconMenu); m_trayIcon->setContextMenu(trayIconMenu);
QIcon trayicon = QIcon trayicon = QIcon::fromTheme(
QIcon::fromTheme("flameshot-tray", QIcon(":img/app/flameshot.png")); "flameshot-tray", QIcon(":img/app/org.flameshot.Flameshot.png"));
m_trayIcon->setIcon(trayicon); m_trayIcon->setIcon(trayicon);
auto trayIconActivated = [this](QSystemTrayIcon::ActivationReason r) { auto trayIconActivated = [this](QSystemTrayIcon::ActivationReason r) {
@@ -249,6 +249,13 @@ void Controller::enableTrayIcon()
} }
}; };
connect(m_trayIcon, &QSystemTrayIcon::activated, this, trayIconActivated); connect(m_trayIcon, &QSystemTrayIcon::activated, this, trayIconActivated);
#ifdef Q_OS_WIN
// Ensure proper removal of tray icon when program quits on Windows.
connect(
qApp, &QCoreApplication::aboutToQuit, m_trayIcon, &QSystemTrayIcon::hide);
#endif
m_trayIcon->show(); m_trayIcon->show();
if (ConfigHandler().showStartupLaunchMessage()) { if (ConfigHandler().showStartupLaunchMessage()) {
m_trayIcon->showMessage( m_trayIcon->showMessage(
@@ -277,7 +284,7 @@ void Controller::sendTrayNotification(const QString& text,
{ {
if (m_trayIcon) { if (m_trayIcon) {
m_trayIcon->showMessage( m_trayIcon->showMessage(
title, text, QIcon(":img/app/flameshot.svg"), timeout); title, text, QIcon(":img/app/org.flameshot.Flameshot.svg"), timeout);
} }
} }

View File

@@ -52,7 +52,7 @@ AppLauncherWidget::AppLauncherWidget(const QPixmap& p, QWidget* parent)
, m_pixmap(p) , m_pixmap(p)
{ {
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);
setWindowIcon(QIcon(":img/app/flameshot.svg")); setWindowIcon(QIcon(":img/app/org.flameshot.Flameshot.svg"));
setWindowTitle(tr("Open With")); setWindowTitle(tr("Open With"));
m_keepOpen = ConfigHandler().keepOpenAppLauncherValue(); m_keepOpen = ConfigHandler().keepOpenAppLauncherValue();

View File

@@ -90,10 +90,12 @@ void PixelateTool::process(QPainter& painter,
} }
} else { } else {
int width = selection.width() * (0.5 / qMax(1, m_thickness)); int width = selection.width() * (0.5 / qMax(1, m_thickness));
int height = selection.height() * (0.5 / qMax(1, m_thickness));
QSize size = QSize(qMax(width, 1), qMax(height, 1));
QPixmap t = pixmap.copy(selection); QPixmap t = pixmap.copy(selection);
t = t.scaledToWidth(qMax(width, 10), Qt::SmoothTransformation); t = t.scaled(size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
t = t.scaledToWidth(selection.width()); t = t.scaled(selection.width(), selection.height());
painter.drawImage(selection, t.toImage()); painter.drawImage(selection, t.toImage());
} }
} }

View File

@@ -116,7 +116,8 @@ bool ScreenshotSaver::saveToFilesystemGUI(const QPixmap& capture)
QString msg = QObject::tr("Error trying to save as ") + savePath; QString msg = QObject::tr("Error trying to save as ") + savePath;
QMessageBox saveErrBox( QMessageBox saveErrBox(
QMessageBox::Warning, QObject::tr("Save Error"), msg); QMessageBox::Warning, QObject::tr("Save Error"), msg);
saveErrBox.setWindowIcon(QIcon(":img/app/flameshot.svg")); saveErrBox.setWindowIcon(
QIcon(":img/app/org.flameshot.Flameshot.svg"));
saveErrBox.exec(); saveErrBox.exec();
} }
} }

View File

@@ -36,7 +36,7 @@ InfoWindow::InfoWindow(QWidget* parent)
: QWidget(parent) : QWidget(parent)
{ {
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);
setWindowIcon(QIcon(":img/app/flameshot.svg")); setWindowIcon(QIcon(":img/app/org.flameshot.Flameshot.svg"));
setWindowTitle(tr("About")); setWindowTitle(tr("About"));
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))