still not working

This commit is contained in:
Malte Jürgens 2022-07-16 22:28:16 +02:00
parent ce94b44997
commit 8597416bb5
No known key found for this signature in database
GPG Key ID: D29FBD5F93C0CFC3
2 changed files with 8 additions and 8 deletions

View File

@ -20,12 +20,13 @@ export CMAKE_GENERATOR="Ninja"
cmake -B "$builddir" -S "$PWD" cmake -B "$builddir" -S "$PWD"
cmake --build "$builddir" --config Release cmake --build "$builddir" --config Release
DESTDIR="$appdir" cmake --install "$builddir" --prefix "/usr" DESTDIR="$appdir" cmake --install "$builddir" --prefix "/usr"
# Include libnss related files
mkdir -p "$appdir/AppDir/usr/lib/"
cp -rv "/usr/lib/x86_64-linux-gnu/nss" "$appdir/usr/lib/"
VERSION="$(cat version)" linuxdeploy \ VERSION="$(cat version)" linuxdeploy \
--appdir "$appdir" \ --appdir "$appdir" \
--icon-file "assets/discord.png" \ --icon-file "assets/discord.png" \
--plugin qt \ --plugin qt \
--library "/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so" \
--library "/usr/lib/x86_64-linux-gnu/nss/libnssckbi.so" \
--exclude-library "libpipewire-0.3.so.0" \ --exclude-library "libpipewire-0.3.so.0" \
--output appimage --output appimage

View File

@ -36,7 +36,7 @@ DiscordPage::DiscordPage(QWidget *parent) : QWebEnginePage(parent) {
} }
void DiscordPage::injectScript(QString source) { void DiscordPage::injectScript(QString source) {
qDebug() << "[main ] Injecting " << source; qDebug() << "[main ] Injecting" << source;
QFile userscript(source); QFile userscript(source);
@ -68,11 +68,10 @@ void DiscordPage::featurePermissionRequested(const QUrl &securityOrigin,
bool DiscordPage::acceptNavigationRequest(const QUrl &url, bool DiscordPage::acceptNavigationRequest(const QUrl &url,
QWebEnginePage::NavigationType type, QWebEnginePage::NavigationType type,
bool isMainFrame) { bool isMainFrame) {
qDebug() << url; // if (type == QWebEnginePage::NavigationTypeLinkClicked) {
if (type == QWebEnginePage::NavigationTypeLinkClicked) { // QDesktopServices::openUrl(url);
QDesktopServices::openUrl(url); // return false;
return false; // }
}
return true; return true;
}; };