On Jan 5, 2006, at 5:01 AM, Jean-Marc Lasgouttes wrote:
Anders> - "New from Template..." gives a Open dialogue in the Anders> /Applications directory. Templates are in the (hidden) Anders> LyX-package and difficult to access from this Open-dialogue This is strange. Bennett, do you see this too?
The problem, I take it, is not that Anders is getting an Open dialog rather than a New from Template dialog. (The two look the same on screen, but they behave differently.) Rather, it is that Anders is trying to access template files inside the LyX.app bundle, but the Mac native file browser we now use won't let him inside. (Even setting /Applications/LyX.app/Contents/Resources/LyX/templates as the path in LyX's preferences won't do the trick: it just brings up the / Applications folder.)
There must be a way to get the native browser to go inside application bundles, though I wonder whether that's desirable in general, as it flouts Mac conventions.
An alternative would be to create a new folder at ~/Library/ Application Support/LyX/templates/default in which we copy the default templates from the application bundle (overwriting files that are there) whenever LyX is installed. (User templates could still be left at ~/Library/Application Support/LyX/templates.) This would require clear warnings when the installer that people shouldn't modify files in the default templates folder.
Bennett