Skip to content
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

[systemctl] bug: toggle not working bc of lack of sudo #535

Open
pataquets opened this issue Aug 10, 2024 · 0 comments
Open

[systemctl] bug: toggle not working bc of lack of sudo #535

pataquets opened this issue Aug 10, 2024 · 0 comments

Comments

@pataquets
Copy link

pataquets commented Aug 10, 2024

Expected behavior

Clicking the block to toggle service.

Actual behavior

Nothing happens.
Blocklet text correctly displays actual service status.

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=docker

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 docker
active

$  systemctl stop docker
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to stop 'docker.service'.
Authenticating as: John Doe,,, (jdoe)
Password:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant