I'm configuring some security and i'd like to run arpon to a specific device everytime wicd connects.
So, if Wicd connects to a wireless, i'd launch gksu arpon -d -i eth2 (for example.) But this doesn't work, because it seems that gksu only works for X apps.
I found that if i do: gnome-terminal -e 'sudo arpon -d -i eth2'
It works, but it leaves me with a terminal window open, and i'd like to be asked for a password gksu style.
Is there a way to do this? With gksu or su-to-root maybe?