theinvisible / openfortigui

VPN-GUI to connect to Fortigate-Hardware, based on openfortivpn
https://hadler.me/linux/openfortigui/
GNU General Public License v3.0
489 stars 54 forks source link

Segfault when starting from command line #145

Closed ghost closed 3 years ago

ghost commented 3 years ago

After upgrade to Ubuntu 20.04, my previously working command

sudo openfortigui --start-vpn --vpn-name MY_VPN

seg-faulted. I straced the command and it apparently didn't find the VPN profile in the user dir anymore. After symlinking /root/.openfortigui/vpnprofiles to the vpnprofiles directory in the user dir the command worked again.

theinvisible commented 3 years ago

Hi, this is related to a sudo change in preserving environments. You must use "sudo -E openfortigui" and it should work again.

ghost commented 3 years ago

I confirm that sudo -E ... works.

Thank you very much.