NateTheGreat68 / gamepad-launcher

A simple way to launch an application when a gamepad connects
GNU General Public License v2.0
2 stars 0 forks source link

Make sudo call in gamepad_launcher.service non-interactive #10

Closed NateTheGreat68 closed 3 years ago

NateTheGreat68 commented 3 years ago

Is currently ExecStop=sudo systemctl restart xow; consider adding -n option to sudo to force non-interactive. Also should probably be ExecStopPost instead of ExecStop.

NateTheGreat68 commented 3 years ago

Can't change the directive from ExecStop to ExecStopPost because the unit file has to have at least one of ExecStart or ExecStop (or SuccessAction). I'll leave it as ExecStop but add the -n option.

NateTheGreat68 commented 3 years ago

Pulled into dev; closing.

kakra commented 3 years ago

Ah okay... But oneshot units don't need a stop. So if your ExecStart process isn't forking, you could use ExecStartPost maybe?

NateTheGreat68 commented 3 years ago

I think you may be confusing this with your comment on one of the commits regarding using ExecStop within steam_bigpicture.service to stop the main gamepad_launcher.service file. I just made that change and merged it into the dev branch, but this is something different.