summaryrefslogtreecommitdiffstats
path: root/src/path-prefix.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* macOS bundle support for append_inkscape_datadirThomas Holder2019-11-051-1/+9
|
* append_inkscape_datadir: Canonicalize inkscape_datadir separatelyPatrick Storz2019-06-141-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)
* append_inkscape_datadir: Always canonicalize full filenamePatrick Storz2019-06-141-9/+5
| | | | Avoids potentially dangerous mix of different path separators.
* Some anti-aliasingPatrick Storz2019-03-311-1/+1
|
* Remove "get_extensions_path()"Patrick Storz2019-03-301-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
* Remove unused "get_datadir_path()"Patrick Storz2019-03-301-26/+0
| | | | | This should be a function in Inkscape::IO::Resource (which it already references) if re-added.
* Add inscape to search pathPatrick Storz2019-03-301-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
* Clarify licensesMax Gaukler2018-11-081-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
* Remove #include "config.h" wherever possibleEduard Braun2018-10-011-4/+1
|
* Use _WIN32 instead of WIN32Eduard Braun2018-10-011-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
* Canonicalize path read from INKSCAPE_DATADIR environment variableEduard Braun2018-09-301-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.
* Fix codding styleJabiertxo Arraiza Cenoz2018-07-251-6/+6
|
* Add some Marting sugestions about main.cpp in MRJabiertxo Arraiza Cenoz2018-07-251-0/+61
|
* Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin2018-05-041-1/+1
| | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-291-1/+1
|
* Fix a compiler warningEduard Braun2017-12-041-1/+1
|
* Generalize support for INKSCAPE_DATADIR environment variableEduard Braun2017-12-041-19/+17
| | | | | Now works unless configured with ENABLE_BINRELOC or ENABLE_OSX_APP_LOCATIONS
* Pull custom code from prefix.h/cppEduard Braun2017-12-041-0/+76
These files are actually part of BinReloc Inkscape specific code is in path-prefix.h (and now path-prefix.cpp)