summaryrefslogtreecommitdiffstats
path: root/src/inkscape-main.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add extensions directory in user folder to PYTHONPATHPatrick Storz2019-06-141-15/+13
| | | | | This allows users to install modules there and use them easily within other modules (for example required for extension manager)
* Ask Python extensions to return UTF-8 dataKarl Cheng2019-05-171-0/+3
| | | | | | | | | | | By default, Python 2.x will encode output as ASCII to STDOUT/STDERR if the output is piped. This commit explicitly requests UTF-8 output by setting the PYTHONIOENCODING environment variable. Note this will not fix text encoding problems where the extension itself does not support Unicode properly. Refs: https://gitlab.com/inkscape/extensions/merge_requests/90
* Add inkex/deprecated-simple to PYTHONPATHThomas Holder2019-04-281-6/+14
| | | | Closes #223
* Usage of get_program_dir() is more appropriate herePatrick Storz2019-03-301-1/+1
| | | | | It points at the same folder currently, but this will change with https://gitlab.com/inkscape/inkscape/issues/82
* Remove "get_extensions_path()"Patrick Storz2019-03-301-3/+9
| | | | | | | | | | Contrary to what the name and placing suggest it's not a general utility function but a specialized function that constructs the full value to set for PYTHONPATH. Despite the misleading placement most functionality is unneeded: * INKSCAPE_EXTENSIONDIR should always be absolute * g_setenv recommends UTF-8 on Windows
* Add inscape to search pathPatrick Storz2019-03-301-0/+10
| | | | | | | | | | | | This primarily allows extensions to simply call "inkscape" without requiring the user to modify environment variables or worrying about different versions of inkscape on the same machine (as we prefix the search path). We did this already for Windows but the code was removed in db05b842cba28f01b431eee890537959aa2d8fe3 Partially fixes https://gitlab.com/inkscape/inkscape/issues/115
* Restore "Add inkscape root directory to DLL search path"Patrick Storz2019-03-301-0/+15
| | | | | | | | See ecfc9efaf66d054fda239f48ef984190a89e6bae for details. This was dropped in db05b842cba28f01b431eee890537959aa2d8fe3 Partial fix for https://gitlab.com/inkscape/inkscape/issues/115
* An a few more config.h fixesPatrick Storz2019-03-281-4/+0
|
* Restore set_extensions_env()Thomas Holder2019-03-051-0/+8
| | | | | | Function got lost in 408cb49b Fixes #60
* Turn InkscapeApplication into singleton.Tavmjong Bah2019-02-151-2/+2
|
* Minor tweaks.Tavmjong Bah2018-12-101-1/+1
|
* Gtk/Gio templating of main inkscape application class to allow commandline ↵Marc Jeanmougin2018-12-091-2/+4
| | | | usage when graphic server is not available
* Rewrite of main.cpp using InkscapeApplication (Gtk::Application)Tavmjong Bah2018-11-181-0/+36
Use Gio::File for accessing files. Use Gio options to handle command line arguments. Use Gio::Actions for some command line arguments. Move file export code to src/io/file-export-cmd.h/.cpp. Make into class.