Mercurial > projects > package-update-indicator
diff pui-application.c @ 6:2477a6151087
Make PackagKit use the user's network proxies
Pick up network proxies from the user's environment and make PackagKit use
them. Setting network proxies is a privileged operation, so it is only
attempted if the user is allowed to use the polkit action
org.freedesktop.packagekit.system-network-proxy-configure without
authentication.
author | Guido Berhoerster <guido+pui@berhoerster.name> |
---|---|
date | Tue, 19 Jun 2018 15:44:36 +0200 |
parents | 3d72ca76538d |
children | adba37525ee5 |
line wrap: on
line diff
--- a/pui-application.c Sun Jun 17 17:05:16 2018 +0200 +++ b/pui-application.c Tue Jun 19 15:44:36 2018 +0200 @@ -406,6 +406,10 @@ return; } + pui_backend_set_proxy(self->backend, g_getenv("http_proxy"), + g_getenv("https_proxy"), g_getenv("ftp_proxy"), + g_getenv("socks_proxy"), g_getenv("no_proxy"), NULL); + g_settings_bind(self->settings, "refresh-interval", self->backend, "refresh-interval", G_SETTINGS_BIND_GET); g_settings_bind(self->settings, "use-mobile-connection", self->backend,