summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--bitmask.pro5
-rw-r--r--branding/templates/snap/local/app.desktop2
-rw-r--r--gui/providers/providers.json4
-rw-r--r--gui/qml/DonateDialog.qml2
-rw-r--r--gui/qml/main.qml6
-rw-r--r--tests/test_ui.cpp2
7 files changed, 16 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b230e12..db5e508 100644
--- a/Makefile
+++ b/Makefile
@@ -237,7 +237,6 @@ ifeq (${PLATFORM}, linux)
@mkdir -p build/${PROVIDER}/snap/gui
ifeq (${VENDOR_PATH}, providers)
@cp ${VENDOR_PATH}/${PROVIDER}/assets/icon.svg build/${PROVIDER}/snap/gui/icon.svg
- # FIXME is this png needed?? then add it to ASSETS_REQUIRED
@cp ${VENDOR_PATH}/${PROVIDER}/assets/icon.png build/${PROVIDER}/snap/gui/${PROVIDER}-vpn.png
else
@cp ${VENDOR_PATH}/assets/icon.svg build/${PROVIDER}/snap/gui/icon.svg
@@ -262,6 +261,7 @@ package_snap_in_docker:
package_snap:
@unlink snap || true
+ @cp build/${PROVIDER}/snap/local/${TARGET}.desktop build/${PROVIDER}/snap/gui/
@ln -s build/${PROVIDER}/snap snap
@make -C build/${PROVIDER} pkg_snap
diff --git a/bitmask.pro b/bitmask.pro
index 22c3d7f..c9e95c6 100644
--- a/bitmask.pro
+++ b/bitmask.pro
@@ -64,3 +64,8 @@ CONFIG += lrelease embed_translations
TRANSLATIONS += $$files(gui/i18n/*.ts, true)
RESOURCES += $$files(gui/i18n/*.qm, true)
+
+# see https://stackoverflow.com/questions/5960192/qml-qt-openurlexternally#5960581
+# Needed for bringing browser from background to foreground using
+# QDesktopServices: https://bugreports.qt.io/browse/QTBUG-8336
+TARGET.CAPABILITY += SwEvent
diff --git a/branding/templates/snap/local/app.desktop b/branding/templates/snap/local/app.desktop
index 600a6a9..e7d1830 100644
--- a/branding/templates/snap/local/app.desktop
+++ b/branding/templates/snap/local/app.desktop
@@ -6,7 +6,7 @@ Comment=Anonymous VPN
Comment[es]=VPN Anonima
Comment[de]=Anonymous VPN
Path=/snap/bin/
-Exec="/snap/bin/${binaryName}.launcher"
+Exec=${binaryName}.launcher
Terminal=false
Icon=${SNAP}/meta/gui/${binaryName}.png
Categories=Network;Application;
diff --git a/gui/providers/providers.json b/gui/providers/providers.json
index 6f82ba3..4733a3e 100644
--- a/gui/providers/providers.json
+++ b/gui/providers/providers.json
@@ -6,7 +6,7 @@
"applicationName": "RiseupVPN",
"binaryName": "riseup-vpn",
"auth": "anon",
- "authEmptyPass": null,
+ "authEmptyPass": false,
"providerURL": "riseup.net",
"tosURL": "https://riseup.net/tos",
"helpURL": "https://riseup.net/support",
@@ -15,7 +15,7 @@
"apiURL": "https://api.black.riseup.net/",
"geolocationAPI": "https://api.black.riseup.net:9001/json",
"caCertString": "-----BEGIN CERTIFICATE-----\nMIIFjTCCA3WgAwIBAgIBATANBgkqhkiG9w0BAQ0FADBZMRgwFgYDVQQKDA9SaXNl\ndXAgTmV0d29ya3MxGzAZBgNVBAsMEmh0dHBzOi8vcmlzZXVwLm5ldDEgMB4GA1UE\nAwwXUmlzZXVwIE5ldHdvcmtzIFJvb3QgQ0EwHhcNMTQwNDI4MDAwMDAwWhcNMjQw\nNDI4MDAwMDAwWjBZMRgwFgYDVQQKDA9SaXNldXAgTmV0d29ya3MxGzAZBgNVBAsM\nEmh0dHBzOi8vcmlzZXVwLm5ldDEgMB4GA1UEAwwXUmlzZXVwIE5ldHdvcmtzIFJv\nb3QgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC76J4ciMJ8Sg0m\nTP7DF2DT9zNe0Csk4myoMFC57rfJeqsAlJCv1XMzBmXrw8wq/9z7XHv6n/0sWU7a\n7cF2hLR33ktjwODlx7vorU39/lXLndo492ZBhXQtG1INMShyv+nlmzO6GT7ESfNE\nLliFitEzwIegpMqxCIHXFuobGSCWF4N0qLHkq/SYUMoOJ96O3hmPSl1kFD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t44tTZWbKV/Pi/N2Fx36my7TgTUj7g3xcE9eF4JV2H/sg\ntsK3pwE0FEqGnT4qMFbixQmc8bGyuakr23wjMvfO7eZUxBuWYR2SkcP26sozF9PF\ntGhbZHQVGZUTVPyvwahMUEhbPGVerOW0IYpxkm0x/eaWdTc4vPpf/rIlgbAjarnJ\nUN9SaWRlWKSdP4haujnzCoJbM7dU9bjvlGZNyXEekgeT0W2qFeGGp+yyUWw8tNsp\n0BuC1b7uW/bBn/xKm319wXVDvBgZgcktMolak39V7DVO\n-----END CERTIFICATE-----",
- "timeStamp": "2020-10-09 22:41:19"
+ "timeStamp": "2020-11-03 19:53:36"
}
]
} \ No newline at end of file
diff --git a/gui/qml/DonateDialog.qml b/gui/qml/DonateDialog.qml
index afbd57b..366d559 100644
--- a/gui/qml/DonateDialog.qml
+++ b/gui/qml/DonateDialog.qml
@@ -18,7 +18,7 @@ MessageDialog {
onAccepted: {
if (backend) {
- Qt.openUrlExternally(ctx.donateURL)
+ Qt.openUrlExternally(Qt.resolvedUrl(ctx.donateURL))
backend.donateAccepted()
}
}
diff --git a/gui/qml/main.qml b/gui/qml/main.qml
index a3218de..5d8b825 100644
--- a/gui/qml/main.qml
+++ b/gui/qml/main.qml
@@ -242,7 +242,11 @@ ApplicationWindow {
MenuItem {
text: qsTr("Help...")
- onTriggered: Qt.openUrlExternally(ctx.helpURL)
+
+ onTriggered: {
+ console.debug(Qt.resolvedUrl(ctx.helpURL));
+ Qt.openUrlExternally(Qt.resolvedUrl(ctx.helpURL))
+ }
}
MenuItem {
diff --git a/tests/test_ui.cpp b/tests/test_ui.cpp
index 7642157..0d1985e 100644
--- a/tests/test_ui.cpp
+++ b/tests/test_ui.cpp
@@ -1,5 +1,5 @@
// test_ui.cpp
-#include <QtQuickTest>
+#include <QtQuickTest/quicktest.h>
#include <QQmlEngine>
#include <QQmlContext>