Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Williams2018-05-23 10:51:43 -0400
committerAlexander Kurtakov2018-06-06 08:25:03 -0400
commit010ef698fc87044d3f105fa4db68d85b8632940b (patch)
tree1e4d754e928f1906d8ef325bc7f15be3aa9172b5 /bundles/org.eclipse.core.net/natives/unix/gnomeproxy.h
parent5147ed2f5c66369f6abdea0725c76e3de4c2c335 (diff)
downloadeclipse.platform.team-010ef698fc87044d3f105fa4db68d85b8632940b.tar.gz
eclipse.platform.team-010ef698fc87044d3f105fa4db68d85b8632940b.tar.xz
eclipse.platform.team-010ef698fc87044d3f105fa4db68d85b8632940b.zip
Use GSettings instead of GConf2 to fetch proxy settings from GNOME. Instead it now uses the following GSettings schemas for proxies: org.gnome.system.proxy org.gnome.system.proxy.http org.gnome.system.proxy.https org.gnome.system.proxy.socks org.gnome.system.proxy.ftp You can get/set values for the keys in each of these schemas by running gsettings [get/set] schema key value. For example, to set the SOCKS proxy host, run: gsettings set org.gnome.system.proxy.socks host <value> To test in Eclipse, import the org.eclipse.core.net and org.eclipse.core.net.linux.x86_64 projects into your workspace. Launch a child Eclipse that depends on these two workspace plugins, and make sure the child Eclipse launches with the argument: -Dorg.eclipse.core.net.enableGnome as this enables the GNOME proxy functionality. In the child Eclipse, go to Window -> Preferences -> General -> Network connections. Selecting the "native" combo option will pull in proxy/network settings as set via GNOME. Change-Id: I0f620275aa15205245ae4156d9ed63ebf20c3568 Signed-off-by: Eric Williams <ericwill@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.core.net/natives/unix/gnomeproxy.h')
-rw-r--r--bundles/org.eclipse.core.net/natives/unix/gnomeproxy.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.core.net/natives/unix/gnomeproxy.h b/bundles/org.eclipse.core.net/natives/unix/gnomeproxy.h
index cf0e8d712..8dab51c91 100644
--- a/bundles/org.eclipse.core.net/natives/unix/gnomeproxy.h
+++ b/bundles/org.eclipse.core.net/natives/unix/gnomeproxy.h
@@ -10,26 +10,26 @@ extern "C" {
/* Inaccessible static: isGnomeLibLoaded */
/*
* Class: org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider
- * Method: gconfInit
+ * Method: gsettingsInit
* Signature: ()V
*/
-JNIEXPORT void JNICALL Java_org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider_gconfInit
+JNIEXPORT void JNICALL Java_org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider_gsettingsInit
(JNIEnv *, jclass);
/*
* Class: org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider
- * Method: getGConfProxyInfo
+ * Method: getGSettingsProxyInfo
* Signature: (Ljava/lang/String;)Lorg/eclipse/core/internal/net/ProxyData;
*/
-JNIEXPORT jobject JNICALL Java_org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider_getGConfProxyInfo
+JNIEXPORT jobject JNICALL Java_org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider_getGSettingsProxyInfo
(JNIEnv *, jclass, jstring);
/*
* Class: org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider
- * Method: getGConfNonProxyHosts
+ * Method: getGSettingsNonProxyHosts
* Signature: ()[Ljava/lang/String;
*/
-JNIEXPORT jobjectArray JNICALL Java_org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider_getGConfNonProxyHosts
+JNIEXPORT jobjectArray JNICALL Java_org_eclipse_core_internal_net_proxy_unix_UnixProxyProvider_getGSettingsNonProxyHosts
(JNIEnv *, jclass);
#ifdef __cplusplus

Back to the top