Skip to content

[systemctl] bug: blocklet doesn't handle user services #536

@pataquets

Description

@pataquets

Expected behavior

Service to be recognized.

Actual behavior

Blocklet text displays (user) service as not active, since it does not exists unless using --user when calling systemctl.

i3blocks config relevant to blocklet(s)

Blocklet example config, except for script location:

[systemctl]
# command=$SCRIPT_DIR/systemctl
command=~/i3blocks/systemctl/systemctl
interval=once
markup=pango
instance=pulseaudio

Output of blocklet(s) when run from command line

$ ~/i3blocks/systemctl/systemctl
Failed to mangle name: Invalid argument
Failed to expand names: Invalid argument
<span foreground="#888888"><s></s></span>

Output of any relevant other commands that might help diagnostics

$ uname -a
Linux HOMEPC 6.5.0-25-generic #25~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Feb 20 16:09:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

$ systemctl is-active pulseaudio
inactive

$ systemctl is-active --user pulseaudio
active

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