On Thu, Jun 18, 2009 at 10:31:09PM +0100, John Rice wrote:
> Shawn Walker wrote:
>> On Jun 18, 2009, at 1:30 PM, [email protected] wrote:
>>> On Thu, Jun 18, 2009 at 01:26:19PM -0500, Shawn Walker wrote:
>>>> On Jun 18, 2009, at 1:24 PM, [email protected] wrote:
>>>>> Packagemanager will need to work correctly in the face of all of these
>>>>> configuration choices.  I don't think the GNOME configuration should
>>>>> overrride the environment or the pkg(5) proxy choices.  If neither are
>>>>> configured, I don't have a problem with consulting the GNOME config,
>>>>> but
>>>>> that should be dynamic, i.e. it changes with changes to the settings.
>>>>
>>>>
>>>> From what I recall, they are unfortunately constrained by the fact that
>>>> since the packagemanager is running as "root", due to GNOME behaviour,
>>>> they don't have on-demand access to the user's proxy settings.   
>>>> Hence why
>>>> they have to get them before executing the pakagemanager through a
>>>> script.
>>>
>>> Would you clarify what you mean here?  I understand that the user's
>>> environment may not available if we're logged in as root, but I assumed
>>> that the client was able to subscribe to updates from gconf?  Is this
>>> not the case?
>>>
>>
>>
>> That is my understanding, but perhaps they'll be able to share the  
>> details.
>>
> Shawn you are correct. We cannot get the user's gconf proxy settings  
> when running a program as root via gksu. The only thing to do is grab  
> the user settings in a script and then launch the app with the  
> appropriate environment setup. This is the case when running the apps  
> from the menu. If you run the apps from the Gnome Terminal it sets up  
> the shell environment correctly for the app.

Okay, I'm not entirely sure I understand, but it's not possible to
connect to gconf when you're root?

Regardless, the launch.py script only checks to see whether the gconf
proxy settings are enabled.  If the user has set http_proxy in the
environment already, we shouldn't overwrite those values.  Shouldn't
this check to see whether a http_proxy has been defined before deciding
whether to get this information from gconf?

-j
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to