On 10/11/05, Ben Fowler <ben.the.mole@...400...> wrote:
I was looking here http://www.inkscape.org/doc/doxygen/html/inkscape_8cpp.php#a38 , where inkscape_load_preferences( ) calls sp_input_load_from_preferences() .
A 'quick and dirty' way round would be to make that call conditional upon the value of use_gui.
(Is this what you meant?)
Yes, approximately.
Are you sure that the console application should load user preferences? User preferences are often pertinent to a user sitting in front of the application and interacting with it, this is why Gnome has a desktop-wide way of loading/saving defaults and preferences (at least I assume it does!).
You may be right, but I'm not prepared to guarantee that the console code never ever uses the prefs. It may still rely on something in some cases. This needs investigating. But in general I agree that it is annoying when a console app has something else that may affect its behavior, apart from the command line params that I give it.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org