Comments (4)
It looks like the environment on manjaro-sway has QT_QPA_PLATFORM=wayland
, which prevents Qt from falling back to xcb via XWayland. Running PIA with QT_QPA_PLATFORM="wayland;xcb"
allows it to fall back to xcb/XWayland, which works in the current release.
This would affect any Qt application (statically linked or otherwise shipping its own copy of Qt) that doesn't ship the wayland backend, so IMO the distro should consider updating this value (it's suggested in a lot of resources; one example here: https://bugzilla.redhat.com/show_bug.cgi?id=1773650#c8)
That being said, it would be ideal for us to ship the Wayland platform integration too. I just had to add a few extra libs to our deployment for that to work:
--- a/rake/product/linux.rb
+++ b/rake/product/linux.rb
@@ -146,12 +146,14 @@ module PiaLinux
'libQt5Quick.so.5',
'libQt5QuickShapes.so.5',
'libQt5QuickTemplates2.so.5',
+ 'libQt5WaylandClient.so.5',
'libQt5Widgets.so.5',
'libQt5XcbQpa.so.5'
], [
'platforms',
'egldeviceintegrations',
- 'xcbglintegrations'
+ 'xcbglintegrations',
+ 'wayland-shell-integration'
], [
'builtins.qmltypes',
'QtGraphicalEffects',
It seems to work fine from some initial tests. I can't really tell from Qt's changelogs if the Wayland integration is considered complete/stable, though I would figure it likely is after all this time. We'll need to test it with a lot of DEs though; I still see anecdotal reports of problems with the Wayland integration for a lot of apps. A lot of those are older though so I'm hopeful it's complete now.
from desktop.
Thanks for the fast response, and sorry it took me so long to get back. Adding xcb
(or replacing the existing value with xcb
) does let it fall back, which is great... but now the menu when I right-click on the tray icon only has the "quit" option... and that doesn't seem to do anything. Is there maybe an app-indicator tray icon I should be using?
Here's my log in case it helps.
❯ QT_QPA_PLATFORM="wayland;xcb" /opt/piavpn/bin/pia-client
[2021-07-13 21:47:41.707][8792][json.settings][common/src/json.cpp:327][warning] Unable to read from clientsettings.json
[2021-07-13 21:47:41.707][8792][default][client/src/linux/linux_env.cpp:21][info] XDG_CURRENT_DESKTOP= "sway"
[2021-07-13 21:47:41.707][8792][default][client/src/linux/linux_env.cpp:69][info] Detected desktop "Unknown" and RTL: false
[2021-07-13 21:47:41.714][8792][qt.qpa.plugin][info] Could not load the Qt platform plugin "wayland" in "" even though it was found.
[2021-07-13 21:47:41.725][8792][default][common/src/builtin/util.cpp:216][info] Initializing crash handler
[2021-07-13 21:47:41.725][8792][default][common/src/builtin/util.cpp:249][warning] Failed to watch daemon crash directory "/opt/piavpn/var/crashes"
[2021-07-13 21:47:41.725][8792][logger][common/src/builtin/logging.cpp:356][info] Initializing LoggerPrivate
[2021-07-13 21:47:41.726][8792][logger][common/src/builtin/logging.cpp:382][info] Loaded debug.txt with filter rules: ("[rules]", "*.debug=false", "*.info=false", "*.warning=false")
[2021-07-13 21:47:41.726][8792][logger][common/src/builtin/logging.cpp:470][info] Starting log session (v2.9.0+06393)
from desktop.
If the tray menu just says "quit", that means the PIA daemon isn't running. If you're using systemd, check it with sudo systemctl status piavpn
. If it's not running, start it with sudo systemctl start piavpn
.
The installer supports systemd, sysvinit, and openrc, and it should have detected the init system automatically. Let me know what init you're using and what the service status is, and if you're not able to start it we'll continue from there.
from desktop.
whoo that's great! Confirmed it was correctly installed into systemd, but disabled by default. So the only fix is to change (for my whole user) so that QT_QPA_PLATFORM=wayland;xcb
.
Thanks for your help!
from desktop.
Related Issues (20)
- net_cls interfering with lxd on linux HOT 4
- Network Extension framework on macOS HOT 5
- Permission denied HOT 1
- Windows: Wireguard Connection Fails
- Split Tunnel rules sometimes do not apply properly after hibernation HOT 1
- [Feature Request] Import custom VPN config files HOT 1
- Constantly goes up and down in CPU Usage HOT 1
- pia-daemon is too slow to stop HOT 7
- Support runit (Void Linux) service manager HOT 3
- upgrade: run-in-terminal.sh doesn't find gnome-console version 45 kgx HOT 2
- High CPU usage in WmiPrvSE.exe observed with PIA Split Tunnel HOT 8
- Advanced Kill Switch prevents the app from connecting to itself HOT 1
- Missing Dependencies for Linux runfile installer; unhelpful error HOT 1
- Command line connection sometimes activates killswitch
- Linux app; Qt6/Wayland/KDE? HOT 5
- Automations are broken on macOS 14.4 HOT 3
- Package for NixOS
- arch linux install: /etc/iproute2/rt_tables: No such file or directory HOT 2
- Unable to install on Fedora Atomics
- Very small UI HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from desktop.