Re: Disable roaming for new WWAN connection



On Mon, 2012-07-16 at 20:41 +0200, richter ecos de wrote:
> Hi,
> 
> when I add a new mobile broadband connection, roaming is enabled by default. Could this default be changed somehow (most people like to disable roaming by default, because it's very expensive, at least in Europe).
> 
> If there is no simple way to change this, could somebody tell me which is the right place to patch network manager to change this default?

It's actually done all in the UI.  For nm-applet, this should do it:

diff --git a/src/applet-device-gsm.c b/src/applet-device-gsm.c
index d0da7e4..b7212af 100644
--- a/src/applet-device-gsm.c
+++ b/src/applet-device-gsm.c
@@ -148,6 +148,7 @@ mobile_wizard_done (NMAMobileWizard *wizard,
                              NM_SETTING_GSM_USERNAME, method->username,
                              NM_SETTING_GSM_PASSWORD, method->password,
                              NM_SETTING_GSM_APN, method->gsm_apn,
+                             NM_SETTING_GSM_HOME_ONLY, TRUE,
                              NULL);
                nm_connection_add_setting (connection, setting);
 

Dan

> Thanks & Regards
> 
> Gerald
> 
> 
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> https://mail.gnome.org/mailman/listinfo/networkmanager-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]