summaryrefslogtreecommitdiffstats
path: root/src/path-prefix.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-11-05macOS bundle support for append_inkscape_datadirThomas Holder1-1/+9
2019-06-14append_inkscape_datadir: Canonicalize inkscape_datadir separatelyPatrick Storz1-3/+15
g_canonicalize_filename() needs the second parameter to be absolute which INKSCAPE_DATADIR is not guaranteed to be (e.g. when supplied via environment variable). (follow up to 812f50f709384d6c59587c9f1706e401600291a6)
2019-06-14append_inkscape_datadir: Always canonicalize full filenamePatrick Storz1-9/+5
Avoids potentially dangerous mix of different path separators.
2019-03-31Some anti-aliasingPatrick Storz1-1/+1
2019-03-30Remove "get_extensions_path()"Patrick Storz1-38/+2
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
2019-03-30Remove unused "get_datadir_path()"Patrick Storz1-26/+0
This should be a function in Inkscape::IO::Resource (which it already references) if re-added.
2019-03-30Add inscape to search pathPatrick Storz1-0/+65
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
2018-11-08Clarify licensesMax Gaukler1-15/+6
- add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
2018-10-01Remove #include "config.h" wherever possibleEduard Braun1-4/+1
2018-10-01Use _WIN32 instead of WIN32Eduard Braun1-2/+2
The former is guaranteed to be set for any compiler targeting win32, the latter is implementation dependent (but works for gcc) See also http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system
2018-09-30Canonicalize path read from INKSCAPE_DATADIR environment variableEduard Braun1-0/+4
Most importantly this will ensure an absolute path is used. While relative paths worked in principle some strange WinAPI breakage affected Inkscape's ability to properly treat relative paths in all scenarios.
2018-07-25Fix codding styleJabiertxo Arraiza Cenoz1-6/+6
2018-07-25Add some Marting sugestions about main.cpp in MRJabiertxo Arraiza Cenoz1-0/+61
2018-05-04Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin1-1/+1
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin1-1/+1
2017-12-04Fix a compiler warningEduard Braun1-1/+1
2017-12-04Generalize support for INKSCAPE_DATADIR environment variableEduard Braun1-19/+17
Now works unless configured with ENABLE_BINRELOC or ENABLE_OSX_APP_LOCATIONS
2017-12-04Pull custom code from prefix.h/cppEduard Braun1-0/+76
These files are actually part of BinReloc Inkscape specific code is in path-prefix.h (and now path-prefix.cpp)