Re: Linux & Mathematica 4.2:NotebookDirectory is not a known option
- To: mathgroup at smc.vnet.net
- Subject: [mg44015] Re: [mg43982] Linux & Mathematica 4.2:NotebookDirectory is not a known option
- From: John Fultz <jfultz at wolfram.com>
- Date: Fri, 17 Oct 2003 05:14:47 -0400 (EDT)
- Reply-to: jfultz at wolfram.com
- Sender: owner-wri-mathgroup at wolfram.com
It looks to me like the kernel is finding the init.m file for the front end along its own $Path. You didn't say what directory this file is in, but it should be in... ToFileName[FrontEnd`FileName[{$UserAddOnsDirectory, "FrontEnd"}]] Either the init.m file you're looking at is not in that directory, in which case you should probably just remove it (how it got there, who knows?), or the above-named directory is on your kernel's $Path (just evaluate $Path in the kernel to see if this is the case). If the latter is the case, then you need to figure out how it's getting on $Path. It's not there by default. Perhaps some change to $Path is being made by a package which is being auto-loaded during startup. Sincerely, John Fultz jfultz at wolfram.com User Interface Group Wolfram Research, Inc. On Thu, 16 Oct 2003 04:16:22 -0400 (EDT), Steven T. Hatton wrote: > I get the following error message every time I start the kernel: > "SetOptions::optnf: NotebookDirectory is not a known option for > $FrontEnd." > > I seem to recall having found a way to fix this by changing the init.m, > but > I can't remember what that was. It started with the maintanance release > of > 4.2. Does anybody know the fix for this problem? It seems to happen for > any parameter given to SetOptions[$FrontEnd,___]. That is, if I delete > the > NotebookDirectory argument I get a similar error as follows: > > "SetOptions::optnf: NotebooksMenu is not a known option for $FrontEnd." > > This is the init.m, which is what Mathematica created without my > intervention: > > SetOptions[$FrontEnd, > NotebookDirectory:>FrontEnd`FileName[{$RootDirectory, "home", "hattons", > \ > "code", "mma", "mma", "geometry"}, CharacterEncoding -> "iso8859-1"], > NotebooksMenu->{ > "transforms.nb"->{ > FrontEnd`FileName[{$RootDirectory, "home", "hattons", "code", "mma", > "mma", > "geometry"}, "transforms.nb", CharacterEncoding -> "iso8859-1"], True, > False, True}, > "rotations.nb"->{ > FrontEnd`FileName[{$RootDirectory, "home", "hattons", "code", "mma", > "mma", > "geometry"}, "rotations.nb", CharacterEncoding -> "iso8859-1"], True, > False, True}, > "inertialFrames.nb"->{ > FrontEnd`FileName[{$RootDirectory, "home", "hattons", "code", "mma", > "mma", > "geometry"}, "inertialFrames.nb", CharacterEncoding -> "iso8859-1"], > True, > False, True}, > "TransformObjects.nb"->{ > FrontEnd`FileName[{$RootDirectory, "home", "hattons", "code", > "mmaApplications", "GS"}, "TransformObjects.nb", CharacterEncoding -> > "iso8859-1"], True, False, True} > }, > FindSettings->{"FindString"->"transformCur", > "ReplaceString"->"inertialFrame", > "WindowMargins"->{{Automatic, 605}, {487, Automatic}}}, > OptionInspectorSettings->{"WindowSize"->{508, 400}, > "WindowMargins"->{{546, Automatic}, {Automatic, 400}}}, > InterruptSettings->{"WindowMargins"->{{Automatic, 608}, {Automatic, > 506}}}, > HelpBrowserSettings->{"WindowSize"->{948, 627}, > "WindowMargins"->{{271, Automatic}, {Automatic, 146}}} > ]