p-e-w / argos

Create GNOME Shell extensions in seconds
https://extensions.gnome.org/extension/1176/argos/
1.67k stars 114 forks source link

Command works only if terminal=true #30

Closed domsle closed 6 years ago

domsle commented 7 years ago

Hey, When I add an item like this:

echo "10 | bash='pkexec ddcutil --bus=2 setvcp 0x10 10' terminal=false" It will not work, nothing is happening. I need to change terminal=true for it to work.

Why is that?

73 commented 6 years ago

For future reference

Without the terminal, it will be a parent of init and pkexec does not like that.

The solution in simple: Give a parent to pkexec:

echo "Start sshd | bash='sh -c \"pkexec systemctl start ssh\"' terminal=false"

Works fine on my workstation.