still not working
This commit is contained in:
parent
ce94b44997
commit
8597416bb5
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue