Mercurial > projects > package-update-indicator
comparison 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 |
comparison
equal
deleted
inserted
replaced
5:a4020e99e550 | 6:2477a6151087 |
---|---|
404 "are not supported.")); | 404 "are not supported.")); |
405 transition_state(self); | 405 transition_state(self); |
406 return; | 406 return; |
407 } | 407 } |
408 | 408 |
409 pui_backend_set_proxy(self->backend, g_getenv("http_proxy"), | |
410 g_getenv("https_proxy"), g_getenv("ftp_proxy"), | |
411 g_getenv("socks_proxy"), g_getenv("no_proxy"), NULL); | |
412 | |
409 g_settings_bind(self->settings, "refresh-interval", self->backend, | 413 g_settings_bind(self->settings, "refresh-interval", self->backend, |
410 "refresh-interval", G_SETTINGS_BIND_GET); | 414 "refresh-interval", G_SETTINGS_BIND_GET); |
411 g_settings_bind(self->settings, "use-mobile-connection", self->backend, | 415 g_settings_bind(self->settings, "use-mobile-connection", self->backend, |
412 "use-mobile-connection", G_SETTINGS_BIND_GET); | 416 "use-mobile-connection", G_SETTINGS_BIND_GET); |
413 | 417 |