 |
 |
how to get X11 app the see proxy settings?
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2000
Location: Upstate NY (cow country)
Status:
Offline
|
|
If I set a web proxy in the System Preferences, how do I get an app running in X11 to use that proxy? I'm sure there is a terminal command for it, but what I want is for the software to automatically use what's in the system prefs.
Background: dcgui-qt retrieves a public hub list from an http server. When the user has to use a proxy server, dcgui-qt cannot get through and retrieve it.
|
|
"Destroy your ego. Trust your brain. Destroy your beliefs. Trust your divinity." -Danny Carey
MacPro Quad 2.66, G4 MDD dual 867, 23" Cinema Display and 17" LCD, G4 Quicksilver dual 800, 12" Powerbook 867, iMac 300 Grape, B&W G3/300 with G4/450 running yellowdog, iPod 5GB, iPod mini, PowerCenter 150, Powercenter 132 tower, Performa 6116, Quadra 700, MacSE, LC II, eMate 300
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
There's not going to be a system-wide setting for X11 apps' use of a proxy. You'll have to configure it on an app-by-app basis. If the app is a KDE of Gnome app, there may be a configuration at that level you can set.
|
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 2000
Status:
Offline
|
|
Many Unix apps retrieve proxy settings from the Unix environment. Before launching the app from the command line:
C style shell:
setenv http_proxy "http://proxy.example.com:80/"
setenv no_proxy "*.example.com"
Bourne style shell:
export http_proxy="http://proxy.example.com:80/"
export no_proxy="*.example.com"
Works the same for FTP proxies, just with the ftp_proxy variables.
- proton
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2000
Location: Upstate NY (cow country)
Status:
Offline
|
|
That helps for the X11 part and for the advanced users. Another aspect of this is that we've ported it to be a native OSX app by using the qt libraries (it is qt based source). In trying to make it as mac-like as possible, can this be done without using the terminal? Something added to the source?
|
|
"Destroy your ego. Trust your brain. Destroy your beliefs. Trust your divinity." -Danny Carey
MacPro Quad 2.66, G4 MDD dual 867, 23" Cinema Display and 17" LCD, G4 Quicksilver dual 800, 12" Powerbook 867, iMac 300 Grape, B&W G3/300 with G4/450 running yellowdog, iPod 5GB, iPod mini, PowerCenter 150, Powercenter 132 tower, Performa 6116, Quadra 700, MacSE, LC II, eMate 300
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status:
Offline
|
|
Couldn't you make the executable a shell script that sets the variables, then launches the app?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2000
Location: Upstate NY (cow country)
Status:
Offline
|
|
|
|
|
"Destroy your ego. Trust your brain. Destroy your beliefs. Trust your divinity." -Danny Carey
MacPro Quad 2.66, G4 MDD dual 867, 23" Cinema Display and 17" LCD, G4 Quicksilver dual 800, 12" Powerbook 867, iMac 300 Grape, B&W G3/300 with G4/450 running yellowdog, iPod 5GB, iPod mini, PowerCenter 150, Powercenter 132 tower, Performa 6116, Quadra 700, MacSE, LC II, eMate 300
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2000
Location: Upstate NY (cow country)
Status:
Offline
|
|
But how do apps know when I set a proxy? What is it that they look at that tells them the proxy? Like if I set a web proxy, when I hit "apply", Safari will automatically use it, even without relaunching it. What does it look at to check and see if there's a proxy set?
|
|
"Destroy your ego. Trust your brain. Destroy your beliefs. Trust your divinity." -Danny Carey
MacPro Quad 2.66, G4 MDD dual 867, 23" Cinema Display and 17" LCD, G4 Quicksilver dual 800, 12" Powerbook 867, iMac 300 Grape, B&W G3/300 with G4/450 running yellowdog, iPod 5GB, iPod mini, PowerCenter 150, Powercenter 132 tower, Performa 6116, Quadra 700, MacSE, LC II, eMate 300
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Dec 2002
Location: Portland, OR
Status:
Offline
|
|
Originally posted by memento:
But how do apps know when I set a proxy? What is it that they look at that tells them the proxy? Like if I set a web proxy, when I hit "apply", Safari will automatically use it, even without relaunching it. What does it look at to check and see if there's a proxy set?
You might ask that one in the developer forum. I believe that is a Cocoa thing. (nsnetwork or something?)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|