Git Product home page Git Product logo

Comments (4)

JonathonH-PIA avatar JonathonH-PIA commented on September 27, 2024

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.

ohthehugemanatee avatar ohthehugemanatee commented on September 27, 2024

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.

JonathonH-PIA avatar JonathonH-PIA commented on September 27, 2024

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.

ohthehugemanatee avatar ohthehugemanatee commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.