-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
82 lines (67 loc) · 3.49 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
2009-08-13 Denilson Figueiredo de Sá <[email protected]>
* (misc): Released as version 0.3.
* browser-selector: Button box layout change from right to center.
2009-08-12 Dalton Matos Coelho Barreto <[email protected]>
* browser-selector: Added Esc-key handler.
2009-08-12 Denilson Figueiredo de Sá <[email protected]>
* (misc): Version 0.3 almost done.
* README: Added a nice README file.
* ChangeLog: Slightly reformatted this ChangeLog.
* browser-selector: Changed tabs to spaces.
* (misc): Published this project at:
https://github.com/denilsonsa/browser-selector/
This is the first time this source code is shared with the world!
2007-07-06 Denilson Figueiredo de Sá <[email protected]>
* (misc): "Released" as version 0.2.
* browser-selector: Found the cause of BUG1 and fixed it.
<BUG1>
Cause:
When wengophone is run, it requires a custom $LD_LIBRARY_PATH environment
variable. This variable is also passed to any child processes. So, when
wengophone tries to run this script (by calling $BROWSER), that variable
messes with GTK+ libraries.
When running wengophone, LD_LIBRARY_PATH contains "/opt/wengophone/". There
is a libpng12.so.0 file inside that directory. So, when GTK+ tries to load
libpng, the wrong library is loaded from wrong place, and the script
receives an ImportError exception.
Solution 1 (does not work):
Add one of the following lines before importing gtk:
del os.environ["LD_LIBRARY_PATH"]
os.environ["LD_LIBRARY_PATH"]=""
Solution 2 (also does not work):
Changing the very first line of the script did not work. I tried these
interpreters:
#!/bin/env -i python
#!/bin/env -u LD_LIBRARY_PATH python
#!/usr/bin/python -E
Solution 3 (should work, but I don't want it):
Adding a little shell wrapper script should work, but this is against
browser-selector design of having everything in only one file. So I won't
implement this solution.
Solution 4 (a hack that actually works):
This is a somewhat messy hack, but works. If an ImportError exception is
caught, then the script will check if LD_LIBRARY_PATH var is set. If it is,
then it will be cleared and the script will call itself (yes, recursive)
with a new environment (using execvlp()). If that environment variable is
unset or blank, then the ImportError exception will just be raised again.
</BUG1>
2007-07-05 Denilson Figueiredo de Sá <[email protected]>
* (misc): "Released" as version 0.1.
* (misc): Initial version. All main features were implemented.
* browser-selector: There is a nasty bug when launching this script from
wengophone program.
<BUG1>
Summary: Launching this script from wengophone fails when trying to import gtk
Reporter: Denilson
Description:
On my Gentoo system, this script runs perfectly from shell, but not from
BROWSER variable. Actually, this only happens when trying to launch it from
wengophone program (launching from googleearth works). This is the message:
Traceback (most recent call last):
File "/home/denilson/python/browser-selector/browser-selector-0.1", line 7, in ?
import gtk
File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 48, in ?
from gtk import _gtk
ImportError: /usr/lib/libcairo.so.2: symbol png_set_expand_gray_1_2_4_to_8, version PNG12_0 not defined in file libpng12.so.0 with link time reference
xdg-open no method available for opening 'http://www.wengo.fr/public/public.php?page=subscribe_wengos&wl=wengo&lang='
</BUG1>