yuezk / GlobalProtect-openconnect

A GlobalProtect VPN client for Linux, written in Rust, based on OpenConnect and Tauri, supports SSO with MFA, Yubikey, and client certificate authentication, etc.
GNU General Public License v3.0
1.37k stars 153 forks source link

closing gui on linux mint 22 cinnamon logs out your linux session #406

Open jousley opened 2 months ago

jousley commented 2 months ago

Describe the bug I'm trying to use globalprotect-openconnect in a Linux Mint 22 (cinnamon) client via gnome-boxes (libvirt). I installed using the Ubuntu 24 instructions: https://github.com/yuezk/GlobalProtect-openconnect#ubuntu-2404-and-later

When I launch the gui client, then without connecting or configuring anything, simply close the gui, I'm logged out of my Linux session and must login again.

Expected behavior GUI client should simply close.

Screenshots If applicable, add screenshots to help explain your problem.

Logs

$ cat ~/.local/share/gpclient/gpclient.log
[2024-08-06T22:32:17Z INFO  gpservice::cli] gpservice started: 2.3.4 (2024-07-08)
[2024-08-06T22:32:17Z INFO  gpservice::ws_server] WS server listening on port: 36277
[2024-08-06T22:32:17Z INFO  gpapi::process::gui_launcher] Version check passed: 2.3.4
[2024-08-06T22:32:17Z INFO  gpapi::process::gui_launcher] Launching gpgui
[2024-08-06T22:32:17Z INFO  gpgui::cli] gpgui started: 2.3.4 (2024-07-08)
[2024-08-06T22:32:17Z INFO  gpgui::app] Setting the custom openssl conf path
[2024-08-06T22:32:17Z INFO  gpgui::config::private_data] Loaded config key from keyring
[2024-08-06T22:32:17Z WARN  gpgui::config::app_config] Can't read the app config: No such file or directory (os error 2)
[2024-08-06T22:32:17Z INFO  gpgui::app::app_initializer] App initialized
[2024-08-06T22:32:17Z INFO  gpgui::ws_connector] Connecting to WS server
[2024-08-06T22:32:17Z INFO  gpgui::ws_connector] Received ping
[2024-08-06T22:32:17Z INFO  gpgui::ws_connector] Connected to WS server
[2024-08-06T22:32:17Z INFO  gpservice::handlers] New client connected
[2024-08-06T22:32:17Z INFO  gpservice::ws_server] Sending current VPN state to new client
libEGL warning: DRI2: failed to authenticate
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
[2024-08-06T22:32:17Z INFO  gpapi::utils::window] Window raised after 1 attempts
[2024-08-06T22:32:18Z INFO  gpgui::handlers::subscription] Sending the init event to client: main
[2024-08-06T22:32:18Z INFO  gpgui::handlers::subscription] Sent the init event to client: main
X connection to :0 broken (explicit kill or server shutdown).

Environment:

$ ps aux | grep 'gnome-keyring\|kwalletd5' | grep -v grep
jousley     1154  0.0  0.5 322092 10240 ?        SLsl 17:27   0:00 /usr/bin/gnome-keyring-daemon --foreground --components=pkcs11,secrets --control-directory=/run/user/1000/keyring
lightdm     3644  0.0  0.4 322068  9728 ?        Ssl  17:34   0:00 /usr/bin/gnome-keyring-daemon --foreground --components=pkcs11,secrets --control-directory=/run/user/114/keyring
$ cat /etc/os-release 
NAME="Linux Mint"
VERSION="22 (Wilma)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 22"
VERSION_ID="22"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=wilma
UBUNTU_CODENAME=noble

Additional context The gui does work properly in my Ubuntu 24.04 guest in gnome-boxes.

yuezk commented 2 months ago

It could have this problem because I didn't test it with gnome-boxes.

jousley commented 2 months ago

@yuezk I have another gnome-boxes deployment of Ubuntu 24.04. Works fine there.