I have spent some time to get VPN and Kodi started at boot on Raspbian. Here's how I did it:
Created two .desktopfiles, one to get the VPN (Ipvanish) started, one to get Kodi started with a delay of 15 seconds. The delay appeared to be necessary.
Assuming the config files for the VPN ( http://brianhornsby.com/blog/how-to-set ... vpn-client ) are in /home/pi/vpn-config the VPN.desktop file contains:
Exec=sudo openvpn /home/pi/vpn-config/.....ovpn
The Kode.desktop file contains:
Exec=kodi -d 15
I created the .desktop files in /home/pi/Desktop
Finally you have to copy them into /home /pi/.config/autostart