Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
64f26d3f
Commit
64f26d3f
authored
Oct 21, 2010
by
Daniel Molkentin
Browse files
use http_proxy variable for proxy detection on linux
Reviewed-by: con
parent
7b043ba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/main.cpp
View file @
64f26d3f
...
...
@@ -34,6 +34,7 @@
#include
<extensionsystem/iplugin.h>
#include
<QtCore/QDir>
#include
<QtCore/QUrl>
#include
<QtCore/QTextStream>
#include
<QtCore/QFileInfo>
#include
<QtCore/QDebug>
...
...
@@ -221,8 +222,16 @@ int main(int argc, char **argv)
}
// Make sure we honor the system's proxy settings
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
QUrl
proxyUrl
(
QString
::
fromLatin1
(
qgetenv
(
"http_proxy"
)));
if
(
proxyUrl
.
isValid
())
{
QNetworkProxy
proxy
(
QNetworkProxy
::
HttpCachingProxy
,
proxyUrl
.
host
(),
proxyUrl
.
port
(),
proxyUrl
.
userName
(),
proxyUrl
.
password
());
QNetworkProxy
::
setApplicationProxy
(
proxy
);
}
#else
QNetworkProxyFactory
::
setUseSystemConfiguration
(
true
);
#endif
// Load
ExtensionSystem
::
PluginManager
pluginManager
;
pluginManager
.
setFileExtension
(
QLatin1String
(
"pluginspec"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment