Skip to content

Prompt freezes with recent NordVPN version — p10k_nordvpn prompt segment hangs #2860

Description

@wlarch

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

  1. Update NordVPN to latest version.
  2. Open zsh with Powerlevel10k configured and nordvpn in the segment list.
  3. Shell does not display prompt and appears stuck, CPU is idle.
  4. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions