I wrote a script named vpn.sh.The contents is as follows:
#!/bin/sh
cd /etc/openvpn
sudo openvpn client.ovpn &
when I am in konsole, ./vpn.sh runs well. But when I double click the vpn.sh file, it has no response. Can someone tell me the difference between the above two methods?