Problem
After upgrading NordVPN to the latest version, my zsh prompt hangs at startup when using Powerlevel10k and the nordvpn prompt segment. The issue resolves when I comment nordvpn from the segment list in ~/.p10k.zsh.
Steps to Reproduce
- Update NordVPN to latest version.
- Open zsh with Powerlevel10k configured and
nordvpn in the segment list.
- Shell does not display prompt and appears stuck, CPU is idle.
- Removing
nordvpn from the segment array fixes the issue.
Diagnostic Steps & Outputs
a. Powerlevel10k debug output:
Run the following from the affected user:
zsh -xv &> p10k-nordvpn-hang.log
+_p9k_set_prompt:46> prompt_nordvpn
+prompt_nordvpn:1> unset P9K_NORDVPN_STATUS P9K_NORDVPN_TECHNOLOGY P9K_NORDVPN_PROTOCOL P9K_NORDVPN_IP_ADDRESS P9K_NORDVPN_SERVER P9K_NORDVPN_COUNTRY P9K_NORDVPN_CITY P9K_NORDVPN_COUNTRY_CODE
+prompt_nordvpn:2> [[ -e /run/nordvpn/nordvpnd.sock ]]
+prompt_nordvpn:3> _p9k_fetch_nordvpn_status
uname -a
Linux 5.15.0-138-generic #148-Ubuntu SMP Fri Mar 14 19:05:48 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
Distributor ID: Linuxmint
Description: Linux Mint 21.2
Release: 21.2
Codename: victoria
zsh --version
zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
nordvpn --version
NordVPN Version 3.20.2
ls -l /run/nordvpn/nordvpnd.sock
srwxrwx--- 1 root nordvpn 0 Apr 29 07:46 /run/nordvpn/nordvpnd.sock
ps aux | grep nordvpn
root 1491 0.2 0.1 4963524 67028 ? Ssl 07:46 0:04 /usr/sbin/nordvpnd
user+ 5199 0.0 0.0 2200800 18264 ? Sl 07:47 0:00 /usr/lib/nordvpn/norduserd
nordvpn status
Status: Disconnected
I believe Powerlevel10k prompt is blocking on a call to the new NordVPN daemon/socket or CLI, possibly due to API changes, compatibility, or a delay/hang in detection. Would you like me to try any debugging builds or additional diagnostics?
Problem
After upgrading NordVPN to the latest version, my zsh prompt hangs at startup when using Powerlevel10k and the
nordvpnprompt segment. The issue resolves when I commentnordvpnfrom the segment list in~/.p10k.zsh.Steps to Reproduce
nordvpnin the segment list.nordvpnfrom the segment array fixes the issue.Diagnostic Steps & Outputs
a. Powerlevel10k debug output:
Run the following from the affected user:
uname -aLinux 5.15.0-138-generic #148-Ubuntu SMP Fri Mar 14 19:05:48 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -aDistributor ID: Linuxmint
Description: Linux Mint 21.2
Release: 21.2
Codename: victoria
zsh --versionzsh 5.8.1 (x86_64-ubuntu-linux-gnu)
nordvpn --versionNordVPN Version 3.20.2
ls -l /run/nordvpn/nordvpnd.socksrwxrwx--- 1 root nordvpn 0 Apr 29 07:46 /run/nordvpn/nordvpnd.sock
ps aux | grep nordvpnroot 1491 0.2 0.1 4963524 67028 ? Ssl 07:46 0:04 /usr/sbin/nordvpnd
user+ 5199 0.0 0.0 2200800 18264 ? Sl 07:47 0:00 /usr/lib/nordvpn/norduserd
nordvpn statusStatus: Disconnected
I believe Powerlevel10k prompt is blocking on a call to the new NordVPN daemon/socket or CLI, possibly due to API changes, compatibility, or a delay/hang in detection. Would you like me to try any debugging builds or additional diagnostics?