I’m trying to achieve a situation scenario where when certain conditions are met (at night/asleep), situations app would turn off/kill Android Support.
Since systemctl start/stop aliendalvik
needs permission (I suppose this is why), it doesn’t work.
As a workaround im using systemctl --user restart lipstick
, instead.
So, I went for Sudo. Installed it and got it successfully configured. It works fine in Terminal without sudo password prompts. I even included Situations app in the sudoers file==>nemo ALL = NOPASSWD: /usr/bin/harbour-situations2application.
On the other hand, I have already made some shortcuts with qCommand
that worked fine, and added it to the sudoers file as well. However, I had to use : echo mypasswrd | sudo -S systemctl stop aliendalvik
for it to work. The same command didn’t work in Situations app though.
* sudo systemctl stop aliendalvik
didnt work in either.
Anyone knows a way?