Re: the location of "sheets" passed to Dia
- From: Hans Breuer <hans breuer org>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: the location of "sheets" passed to Dia
- Date: Fri, 19 Dec 2008 23:11:13 +0100
At 19.12.2008 20:56, Sameer Sahasrabuddhe wrote:
Hello,
When I tried to create a SISSI object, Dia crashed after showing a
small blank dialog, that never managed to render itself. Fixed that in
a patch elsewhere, so now here's what the dialog says:
Couldn't open:
'/home/sameerds/Dia/trunk/share/dia/sheets/SISSI/1.xml' for reading.
Earlier I used to compile Dia with default arguments, so the same
dialog earlier showed the following message:
Couldn't open: '/usr/local/share/dia/sheets/SISSI/1.xml' for reading.
So I tried with a "--prefix=`pwd`" argument to autogen.sh, but it
still didn't work. The reason is that after running make, the location
of the sheets directory is "/home/sameerds/Dia/trunk/sheets/". I
suppose I could use yet another argument to autogen.sh, for the
"datarootdir" variable and similarly for other related variables. But
I also noticed that app/run_dia.sh has an environment variable called
DIA_SHEET_PATH ... is it meant for the same purpose?
It is not.
If it is, then
the Dia code never checks for this environment variable.
lib/sheet.c(load_all_sheets) has
sheet_path = getenv("DIA_SHEET_PATH");
The function
dia_get_data_directory() in lib/dia_dirs.c only uses the variable
DATADIR which is set using a compiler argument.
The first is pointing to multiple directories and the latter is one
directory initialized on *NIX by the auto-tools. On win32 it is
resolved at runtime because fixed installation diors are not common there.
Hans
-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it. -- Dilbert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]