-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(appimage): Patch snore to enable notifications in AppImage
Patch for other builds as well since the patch is harmless and it simplifies the build script. Fix qTox#6411
- Loading branch information
1 parent
f81c9bc
commit b05c069
Showing
7 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- src/libsnore/plugins/plugincontainer.cpp 2022-02-10 14:14:10.157272874 -0800 | ||
+++ patched/src/libsnore/plugins/plugincontainer.cpp 2022-02-10 14:14:53.371062246 -0800 | ||
@@ -27,6 +27,7 @@ | ||
#include <QDir> | ||
#include <QGuiApplication> | ||
#include <QTime> | ||
+#include <QLibraryInfo> | ||
|
||
using namespace Snore; | ||
|
||
@@ -134,6 +135,7 @@ | ||
static QDir path; | ||
if (!isLoaded) { | ||
isLoaded = true; | ||
+ QString pluginDir = QLibraryInfo::location(QLibraryInfo::PluginsPath); | ||
QString appDir = qApp->applicationDirPath(); | ||
QStringList list; | ||
#ifdef Q_OS_MAC | ||
@@ -152,6 +154,7 @@ | ||
<< appDir + suffix | ||
<< appDir + QStringLiteral("/../lib/plugins") + suffix | ||
<< appDir + QStringLiteral("/../lib64/plugins") + suffix | ||
+ << pluginDir + suffix | ||
<< QStringLiteral(LIBSNORE_PLUGIN_PATH); | ||
foreach(const QString & p, list) { | ||
path = QDir(p); |