Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > how to get X11 app the see proxy settings?

how to get X11 app the see proxy settings?
Thread Tools
Mac Elite
Join Date: Feb 2000
Location: Upstate NY (cow country)
Status: Offline
Reply With Quote
Sep 5, 2003, 10:03 AM
 
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
Reply With Quote
Sep 5, 2003, 10:11 AM
 
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
Reply With Quote
Sep 5, 2003, 10:15 AM
 
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
     
memento  (op)
Mac Elite
Join Date: Feb 2000
Location: Upstate NY (cow country)
Status: Offline
Reply With Quote
Sep 5, 2003, 10:42 AM
 
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
Reply With Quote
Sep 5, 2003, 01:11 PM
 
Couldn't you make the executable a shell script that sets the variables, then launches the app?
     
memento  (op)
Mac Elite
Join Date: Feb 2000
Location: Upstate NY (cow country)
Status: Offline
Reply With Quote
Sep 5, 2003, 06:19 PM
 
maybe. I'll ask.
"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
     
memento  (op)
Mac Elite
Join Date: Feb 2000
Location: Upstate NY (cow country)
Status: Offline
Reply With Quote
Sep 7, 2003, 01:09 PM
 
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
Reply With Quote
Sep 8, 2003, 02:23 AM
 
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?)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:21 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2