gtg team mailing list archive
-
gtg team
-
Mailing list archive
-
Message #00186
[Bug 429723] Re: gtg broken when installed in /usr/local
I looked into it. This patch will solve the problem.
** Attachment added: "local.diff"
http://launchpadlibrarian.net/31804659/local.diff
--
gtg broken when installed in /usr/local
https://bugs.launchpad.net/bugs/429723
You received this bug notification because you are a member of Gtg
developers, which is the registrant for Getting Things GNOME!.
Status in Getting Things GNOME!: New
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)
References