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;
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");
return FALSE;
if (admin == NULL)
ngroups = getgroups (1024, groups);
perror ("getgroups");
return FALSE;
if (ngroups < 0) {
}
for (i = 0; i < ngroups; ++i) {
return TRUE;
if (groups[i] == admin->gr_gid)
}
return FALSE;
}
/* System wide proxy settings */
g_signal_ connect (G_OBJECT (gtk_builder_ get_object (panel- >priv-> builder, "system_ proxy_button" )), "clicked",
G_ CALLBACK (on_proxy_ apply_system_ wide), panel);
gtk_widget_ hide (GTK_WIDGET (gtk_builder_ get_object (panel- >priv-> builder, "system_ proxy_button" )));
if (is_admin ()) {
} else
Perhaps the cause is this change? /bugs.launchpad .net/ubuntu/ +source/ policykit- 1/+bug/ 893842
"Move "admin" group to "sudo""
https:/