But I don't want to waste power when I don't use telegram. I also tunnel the telegram connection via ssh to avoid password sniffing. This starts also automaticly (via sshpass, ugly but works).That should be no Problem,in the Pandora Settings(activate/deactivate Bootservices)
From what the goal seems to be, pre and post scripts would without a doubt be the way to go.if you still want to use Telegram Desktop, there is support for the pre & post script...
ALL ALL=NOPASSWD: /home/rohezal/wlan.sh
Me too.I used a blank keyring (no password for it), to avoid entering a password.