Okay I figured out a semi-solution:
The icon on the desktop calls upon /usr/bin/pptp.sh which contains the following:
Code:
#!/bin/sh
sudo /usr/sbin/pptpconfig
The sudoers file allows the user to run this command only without a password. If i change the shell script to:
Code:
#!/bin/sh
sudo nohup /usr/sbin/pptpconfig
and add /usr/bin/nohup to the sudoers file, it allows the user to open the application up and close the terminal window without closing down the application.
If this can be automated to close down the terminal window when the program is launched it would be a great solution. I have tried appending | exit on to the end and putting exit in a new line in the shell script but it does not work.
Thanks