Comics: add proxy support

Bug #419048 reported by Wittke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn Extras
Invalid
Medium
Moses Palmér

Bug Description

Comics does not support proxy usage.

Im using awn & awn extras Version 0.3.2.1-0ubuntu3 in Jaunty from Jaunty Repository universe.

In detail: Im behind a firewall with proxy requires user name and password.

Mark Lee (malept)
tags: added: applet comics proxy
Changed in awn-extras:
assignee: nobody → Moses Palmér (mosespalmer)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Wittke (rwittke) wrote :

I was able to workaroung it for Comics Dilbert, by adding "export http_proxy=http://user:pass@ip:port/ in awn-autostart for autostartup and avant-window-navigator when manually starting it. I did not tested it what happens next, for update Dilbert., I do not restart my comp all day. And Im not sure that this is a secure way to do that.

Revision history for this message
Moses Palmér (mosespalmer) wrote :

Did that solution work?

Unfortunately, Python on *nix does not retrieve the proxy settings by itself. It does read the environment variable that you have set, and it gives you (the programmer that is) the possibility to specify the proxy settings yourself, but then you (again, the programmer) would of course need to know them.

I do not think that it would be a good idea for the Comics! applet to provide these settings.

Is there an AWN developer that knows whether any of the required dependencies of AWN provide a way to determine proxy settings?

Revision history for this message
Mark Lee (malept) wrote :

There unfortunately isn't a uniform way to do so, as far as I know.

In theory, since the Comics! applet uses urllib, there should automatically be http_proxy support (see <http://docs.python.org/library/urllib.html#urllib.urlopen>). If it doesn't work, I don't know why.

Revision history for this message
Wittke (rwittke) wrote :

I was able to solve it by adding the line export http_proxy=http://user:pass@ip:port/ to both files awn-autostart for autostartup and avant-window-navigator. I will set this for my user as user variable. Dilbert was also updated at next day automatically. May it could be a nice feature for next versions of Ubuntu to set also this variable to system by setting up Network-Proxy as a flag or by default.

Revision history for this message
Mark Lee (malept) wrote :

Wittke:

To be clear, which applet are you referring to? There are two comic-fetching applets in Awn Extras: Comic (no s), which has a Dilbert icon, and Comics! (s plus exclamation point), which Moses maintains.

Revision history for this message
Wittke (rwittke) wrote : Re: [Bug 419048] Re: Comics: add proxy support

Sorry if I was not clear by reporting the bug.

Its the one which is containing dilbert.

kind regards
Rolf

Revision history for this message
Mark Lee (malept) wrote :

This bug is about the other applet, for two reasons:

1) Comic is unmaintained and will be removed in the 0.4 series.
2) We have not yet verified if the Comics! applet works with proxies, while you have verified that comic does.

Revision history for this message
Moses Palmér (mosespalmer) wrote :

This is not a bug in the Comics! applet nor in AWN.

Changed in awn-extras:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.