icon not found on Fedora >= 17
The client crashes when the icon is not found and the icon is not found because
/bin is a symlink to /usr/bin (http://fedoraproject.org/wiki/Features/UsrMove)
and the logic in tryton/client.py fails on that (/bin/tryton vs /usr/bin/tryton).
the traceback is:
config.py:205:<module>:GError: Failed to open file
'/bin/share/pixmaps/tryton/tryton-icon.png': No such file or directory
Traceback (most recent call last):
File "/bin/tryton", line 39, in <module>
import tryton
File "/usr/lib/python2.7/site-packages/tryton/__init__.py", line 3, in
import client
File "/usr/lib/python2.7/site-packages/tryton/client.py", line 18, in <module>
from tryton import config
File "/usr/lib/python2.7/site-packages/tryton/config.py", line 205, in <module>
os.path.join(PIXMAPS_DIR, 'tryton-icon.png').encode('utf-8'))
GError: Failed to open file '/bin/share/pixmaps/tryton/tryton-icon.png': No such
file or directory
The problem appears when /bin is before /usr/bin in the $PATH and exists in
tryton 2.2 and 2.4 (also in olders I'd suppose)
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
tryton-path.patch | @sharkcz | 2012-09-11 20:16:24.420000 UTC | text/plain |