Jean-Pierre.Chretien wrote:
>>>> Opening Preferences->Look&Feel->Colors,
>>>> changing some colors and saving does not seem effective:
>
> [snip]
>
>>>I think that you need to press 'Save' rather than 'Apply' in the
>>>preferences dialog. Have a look in your ~/.lyx/preferences file for
>>>changes to the colours on the main LyX screen and in
>>>~/.lyx/preferences.xform for changes to the appearence of the
>>>xforms widgets (dialogs etc).
>
> I checked with truss: lyx doesn't even try to open the
> preferences.xform file
Could you perhaps apply the attached patch and recompile?
Diagnostic only I'm afraid rather than a cure.
--
Angus
Index: src/frontends/xforms/xforms_helpers.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/xforms_helpers.C,v
retrieving revision 1.54
diff -u -p -r1.54 xforms_helpers.C
--- src/frontends/xforms/xforms_helpers.C 4 Dec 2002 02:57:14 -0000 1.54
+++ src/frontends/xforms/xforms_helpers.C 5 Dec 2003 19:54:14 -0000
@@ -16,6 +16,7 @@
#include "xforms_helpers.h"
+#include "debug.h"
#include "lyxlex.h"
#include "gettext.h"
#include "lyxlength.h"
@@ -280,8 +281,11 @@ const int xformCount = sizeof(xformTags)
bool XformsColor::read(string const & filename)
{
LyXLex lexrc(xformTags, xformCount);
- if (!lexrc.setFile(filename))
+ if (!lexrc.setFile(filename)) {
+ lyxerr << "XformsColor::read(" << filename << ")\n"
+ << "Failed to open file." << std::endl;
return false;
+ }
while (lexrc.isOK()) {
int const le = lexrc.lex();
@@ -322,8 +326,11 @@ bool XformsColor::read(string const & fi
bool XformsColor::write(string const & filename)
{
ofstream os(filename.c_str());
- if (!os)
+ if (!os) {
+ lyxerr << "XformsColor::write(" << filename << ")\n"
+ << "Failed to open file." << std::endl;
return false;
+ }
os << "###"
<< "### file " << filename << "\n\n"