New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i3 status bar (via qubes-i3status) incorrectly reports 0 running qubes #3413

Closed
lvh opened this Issue Dec 20, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@lvh

lvh commented Dec 20, 2017

Qubes OS version:

4.0 (rc3)

Affected TemplateVMs:

all (problem is in dom0)

Steps to reproduce the behavior:

  1. Install a qubes 4.0 RC
  2. Install i3 in dom0
  3. Boot into i3
  4. Make sure some VMs are running (should be the case by default, though I'm unsure what the Qubes R3 behavior for qubes-i3status was, so I verified by starting personal Firefox)
  5. Observe that i3 status bar reports 0 qubes even though clearly some qubes are running

Expected behavior:

bar reports the correct number of qubes

Actual behavior:

bar reports 0 qubes

General notes:

qubes-i3status collects the number of qubes as follows:

qvm-ls 2>/dev/null | grep ' \* ' | wc -l 

I'm guessing the output of qvm-ls changed from R3 to R4, because that does indeed return zero. When I change the grep pattern to ' Running ', I get the answer I expected, though I don't know if that's what * meant on R3, and presumably you want to keep the behavior identical :)

Also qvm-ls supports --fields and --raw-data which might be interesting to make this a little more robust perhaps :)

Related issues:

none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment