desktop: Modem: cleaned up pppd permissions checks, and GUI su wrapper
commitbb4a29f71c0db457c5dfb2912f01d62a3d8f836b
authorChris Frey <cdfrey@foursquare.net>
Mon, 30 Apr 2012 06:59:29 +0000 (30 02:59 -0400)
committerChris Frey <cdfrey@foursquare.net>
Mon, 30 Apr 2012 06:59:29 +0000 (30 02:59 -0400)
treee7227c355b3b71dc85af9ffca4066db0090defdc
parentce2d87afd71d2b7abe86bc53fab2477df6c7744a
desktop: Modem: cleaned up pppd permissions checks, and GUI su wrapper

First, the code checking pppd permissions and running tests to make
sure we can execute pppd with the permissions we have were broken.
This commit makes better use of ProgramDetect's values, since we
can't rely on ExecHelper's Run() return for permission status.

Also, not all systems have gksu, so add the ability to set this
at compile time with the --with-guisu compile option.  By default,
it searches for gksu (for Debian), beesu (for Fedora), and kdesu
(for openSUSE) in that order.
desktop/configure.ac
desktop/src/Makefile.am
desktop/src/ModemDlg.cc