GTG

gtg broken when installed in /usr/local

Bug #429723 reported by Luca Invernizzi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
High
Luca Invernizzi

Bug Description

The data directory is chosen in GTG/__init__.py

LOCAL_ROOTDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
DIST_ROOTDIR = "/usr/share/gtg"
 [...]
#GTG directories setup
if not os.path.isdir( os.path.join(LOCAL_ROOTDIR,'data') ) :
    DATA_DIR = DIST_ROOTDIR
else:
    DATA_DIR = os.path.join(LOCAL_ROOTDIR,'data')

Therefore, DATA_DIR cannot be /usr/local/share/gtg, which is the default data directory if gtg is installed via "python setup.py install".
 If that is done, gtg will output several errors due to missing files in /usr/share (e.g.
 Failed to open file '/usr/share/gtg/icons/hicolor/16x16/apps/rtm_image.png': No such file or directory)

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

I looked into it. This patch will solve the problem.

Paulo Cabido (pcabido)
Changed in gtg:
assignee: nobody → Luca Invernizzi (invernizzi)
importance: Undecided → High
status: New → Fix Committed
Changed in gtg:
milestone: none → 0.2
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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