X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/572c6194d35ad2791c71aee05d6996da2761b07a..2c41c4404c0d4ec0a0095bc31ab6cc732f2126c1:/src/unix/dialup.cpp?ds=sidebyside diff --git a/src/unix/dialup.cpp b/src/unix/dialup.cpp index a46ef04b1e..2dac8544b8 100644 --- a/src/unix/dialup.cpp +++ b/src/unix/dialup.cpp @@ -32,6 +32,7 @@ #include "wx/process.h" #include "wx/intl.h" #include "wx/app.h" +#include "wx/wxchar.h" #include @@ -245,6 +246,12 @@ wxDialUpManagerImpl::wxDialUpManagerImpl() m_CanUseIfconfig = -1; // unknown m_BeaconHost = WXDIALUP_MANAGER_DEFAULT_BEACONHOST; m_BeaconPort = 80; + SetConnectCommand("pon", "poff"); // default values for Debian/GNU linux + wxChar * dial = wxGetenv(_T("WXDIALUP_DIALCMD")); + wxChar * hup = wxGetenv(_T("WXDIALUP_HUPCMD")); + if(dial || hup) + SetConnectCommand(dial ? wxString(dial) : m_ConnectCommand, + hup ? wxString(hup) : m_HangUpCommand); } wxDialUpManagerImpl::~wxDialUpManagerImpl()