diff options
| author | tv <tv@krebsco.de> | 2026-12-02 02:33:50 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-02 02:33:50 +0000 |
| commit | 0978084d2f68ca04e80cfb4dbf05ddba98432ac8 (patch) | |
| tree | 9057b78eb90c1f86316f1ac71b1fe4598c836be9 /pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch | |
| parent | 860aa9fb59d36b531ec46a90129c695dcd7808cc (diff) | |
flameshot-once: name flameshot's patches for 15
Renames only, so that history follows them into the bump to flameshot 15.
Diffstat (limited to 'pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch')
| -rw-r--r-- | pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch b/pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch new file mode 100644 index 00000000..c43096dd --- /dev/null +++ b/pkgs/simple/flameshot-once/flameshot/flameshot-15.applauncher.patch @@ -0,0 +1,27 @@ +diff --git a/src/tools/launcher/applauncherwidget.cpp b/src/tools/launcher/applauncherwidget.cpp +index 4ec68f29..3a0fa9ad 100644 +--- a/src/tools/launcher/applauncherwidget.cpp ++++ b/src/tools/launcher/applauncherwidget.cpp +@@ -22,6 +22,7 @@ + #include <QStandardPaths> + #include <QTabWidget> + #include <QTemporaryFile> ++#include <stdlib.h> + + namespace { + #if defined(Q_OS_WIN) +@@ -72,6 +73,14 @@ AppLauncherWidget::AppLauncherWidget(const QPixmap& p, QWidget* parent) + m_parser.processDirectory(QDir(appsDir)); + } + ++ const char *USER = secure_getenv("USER"); ++ QString dirUser = "/etc/profiles/per-user/" + QString::fromUtf8(USER) + "/share/applications/"; ++ QDir appsDirUser(dirUser); ++ m_parser.processDirectory(appsDirUser); ++ ++ QString dir = QStringLiteral("/run/current-system/sw/share/applications/"); ++ QDir appsDir(dir); ++ m_parser.processDirectory(appsDir); + #endif + + initAppMap(); |
