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 --build "$builddir" --config Release
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 \
--appdir "$appdir" \
--icon-file "assets/discord.png" \
--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" \
--output appimage

View File

@ -68,11 +68,10 @@ void DiscordPage::featurePermissionRequested(const QUrl &securityOrigin,
bool DiscordPage::acceptNavigationRequest(const QUrl &url,
QWebEnginePage::NavigationType type,
bool isMainFrame) {
qDebug() << url;
if (type == QWebEnginePage::NavigationTypeLinkClicked) {
QDesktopServices::openUrl(url);
return false;
}
// if (type == QWebEnginePage::NavigationTypeLinkClicked) {
// QDesktopServices::openUrl(url);
// return false;
// }
return true;
};