Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Windows-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:
jobs:
windows-pack:
name: VS 2022 ${{ matrix.config.arch }}-${{ matrix.type }}
runs-on: windows-2025
runs-on: windows-2022
env:
VCINSTALLDIR: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC
# 2025.02.14
Expand Down
4 changes: 1 addition & 3 deletions data/appdata/org.flameshot.Flameshot.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ SPDX-License-Identifier: CC0-1.0
</categories>

<releases>
<release version="14.0.rc3" date="2026-05-28"/>
<release version="14.0.rc2" date="2026-05-18"/>
<release version="14.0.rc1" date="2026-04-02"/>
<release version="14.0.0" date="2026-06-08"/>
<release version="13.3.0" date="2025-10-28"/>
<release version="13.2.0" date="2025-10-24"/>
<release version="13.1.0" date="2025-08-15"/>
Expand Down
7 changes: 7 additions & 0 deletions packaging/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
flameshot (14.0.rc3-1) unstable; urgency=medium

* Release for v14.0.0

-- Jeremy Borgman <borgman.jeremy@pm.me> Mon, 08 Jun 2026 18:58:50 -0500


flameshot (14.0.rc3-1) unstable; urgency=medium

* Release for v14.0.rc3
Expand Down
2 changes: 1 addition & 1 deletion packaging/flatpak/org.flameshot.Flameshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ modules:
cleanup:
- /share/bash-completion
- /share/man
- /share/zsh
- /share/zsh
2 changes: 1 addition & 1 deletion packaging/rpm/flameshot.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: flameshot
Version: 14.0.rc3
Version: 14.0.0
Release: 1%{?dist}
Summary: Powerful yet simple to use screenshot software

Expand Down
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flameshot
version: '14.0.rc3'
version: '14.0.0'
base: core24
summary: Powerful yet simple to use screenshot software
description: |
Expand Down
27 changes: 20 additions & 7 deletions src/tools/launcher/applauncherwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <QRegularExpression>
#include <QStandardPaths>
#include <QTabWidget>
#include <QTemporaryFile>

namespace {
#if defined(Q_OS_WIN)
Expand Down Expand Up @@ -108,10 +109,21 @@ AppLauncherWidget::AppLauncherWidget(const QPixmap& p, QWidget* parent)

void AppLauncherWidget::launch(const QModelIndex& index)
{
if (!QFileInfo(m_tempFile).isReadable()) {
m_tempFile =
FileNameHandler().properScreenshotPath(QDir::tempPath(), "png");
bool ok = m_pixmap.save(m_tempFile);
if (!m_tempFile || !QFileInfo(m_tempFile->fileName()).isReadable()) {
delete m_tempFile;
// _XXXXXX is how Qt temporary files are mocked before substitution
m_tempFile = new QTemporaryFile(QDir::tempPath() + "/" +
FileNameHandler().parsedPattern() +
"_XXXXXX.png",
this);
m_tempFile->setAutoRemove(false);
if (!m_tempFile->open()) {
QMessageBox::about(
this, tr("Error"), tr("Unable to write in") + QDir::tempPath());
return;
}
m_tempFile->close();
bool ok = m_pixmap.save(m_tempFile->fileName());
if (!ok) {
QMessageBox::about(
this, tr("Error"), tr("Unable to write in") + QDir::tempPath());
Expand All @@ -121,6 +133,7 @@ void AppLauncherWidget::launch(const QModelIndex& index)
// Heuristically, if there is a % in the command we assume it is the file
// name slot
QString command = index.data(Qt::UserRole).toString();
const QString tempFilePath = m_tempFile->fileName();
#if defined(Q_OS_WIN)
// Do not split on Windows, since file path can contain spaces
// and % is not used in lnk files
Expand All @@ -135,11 +148,11 @@ void AppLauncherWidget::launch(const QModelIndex& index)
// but that means we need to substitute IN the array not the string!
for (auto& i : prog_args) {
if (i.contains("%"))
i.replace(regexp, m_tempFile);
i.replace(regexp, tempFilePath);
}
} else {
// we really should append the file name if there
prog_args.append(m_tempFile); // were no replacements
prog_args.append(tempFilePath); // were no replacements
}
QString app_name = prog_args.at(0);
bool inTerminal =
Expand All @@ -151,7 +164,7 @@ void AppLauncherWidget::launch(const QModelIndex& index)
this, tr("Error"), tr("Unable to launch in terminal."));
}
} else {
QFileInfo fi(m_tempFile);
QFileInfo fi(tempFilePath);
QString workingDir = fi.absolutePath();
prog_args.removeAt(0); // strip program name out
QProcess::startDetached(app_name, prog_args, workingDir);
Expand Down
3 changes: 2 additions & 1 deletion src/tools/launcher/applauncherwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#endif

#include <QMap>
#include <QTemporaryFile>
#include <QWidget>

class QTabWidget;
Expand Down Expand Up @@ -46,7 +47,7 @@ private slots:
DesktopFileParser m_parser;
#endif
QPixmap m_pixmap;
QString m_tempFile;
QTemporaryFile* m_tempFile = nullptr;
bool m_keepOpen;
QMap<QString, QVector<DesktopAppData>> m_appsMap;
QCheckBox* m_keepOpenCheckbox;
Expand Down
Loading