The button is only shown if you are in the admin group.  On one of my
laptops, my user is, on another fresh install, it is not.  I do not know
why that is, but the logic needs to be re-examined:

static gboolean
is_admin ()
{
        gid_t groups [1024];
        int i, ngroups;
        struct group *admin;

        admin = getgrnam ("admin");
        if (admin == NULL)
                return FALSE;

        ngroups = getgroups (1024, groups);
        if (ngroups < 0) {
                perror ("getgroups");
                return FALSE;
        }

        for (i = 0; i < ngroups; ++i) {
                if (groups[i] == admin->gr_gid)
                        return TRUE;
        }

        return FALSE;
}


        /* System wide proxy settings */
        if (is_admin ()) {
                g_signal_connect (G_OBJECT (gtk_builder_get_object 
(panel->priv->builder, "system_proxy_button")), "clicked",
                                  G_CALLBACK (on_proxy_apply_system_wide), 
panel);
        } else
                gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object 
(panel->priv->builder, "system_proxy_button")));


Perhaps the cause is this change?
"Move "admin" group to "sudo""
https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/893842

** Changed in: gnome-control-center (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/967978

Title:
  missing "apply system-wide" in network>proxy

Status in “gnome-control-center” package in Ubuntu:
  Confirmed

Bug description:
  1) 12.04 LTS
  2) gnome-control-center version 3.3.90
  3) Set the system-wide proxy settings to access the Internet
  4) Cannot find the "Apply system-wide" (or similar) option.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: gnome-control-center 1:3.3.90-0ubuntu4
  ProcVersionSignature: Ubuntu 3.2.0-17.27-generic-pae 3.2.6
  Uname: Linux 3.2.0-17-generic-pae i686
  NonfreeKernelModules: wl
  ApportVersion: 1.93-0ubuntu2
  Architecture: i386
  Date: Thu Mar 29 12:15:11 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120301)
  ProcEnviron:
   LANGUAGE=en_PH:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_PH.UTF-8
   SHELL=/bin/bash
  SourcePackage: gnome-control-center
  UpgradeStatus: Upgraded to precise on 2012-03-29 (0 days ago)
  usr_lib_gnome-control-center:
   activity-log-manager-control-center 0.9.2-0ubuntu2
   deja-dup                            21.90-0ubuntu1
   gnome-bluetooth                     3.2.2-0ubuntu2
   indicator-datetime                  0.3.90-0ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/967978/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to