Ticket #281: paprefs-enable-remote-access-by-default.patch

File paprefs-enable-remote-access-by-default.patch, 0.9 kB (added by rodrigo, 4 months ago)

Patch with work around to enable that setting by default

  • paprefs-0.9.6//src/paprefs.cc

    old new  
    364364 
    365365    ignoreChanges = TRUE; 
    366366 
     367    if (!gconf->dir_exists(PA_GCONF_PATH_MODULES"/remote-access")) { 
     368        /* set default configuration */ 
     369        gconf->set(PA_GCONF_PATH_MODULES"/remote-access/enabled", true); 
     370    } 
     371 
    367372    remoteAccessCheckButton->set_active(gconf->get_bool(PA_GCONF_PATH_MODULES"/remote-access/enabled")); 
    368373    zeroconfPublishCheckButton->set_active(gconf->get_bool(PA_GCONF_PATH_MODULES"/remote-access/zeroconf_enabled")); 
    369374    anonymousAuthCheckButton->set_active(gconf->get_bool(PA_GCONF_PATH_MODULES"/remote-access/anonymous_enabled"));