summaryrefslogtreecommitdiff
path: root/libs/ardour/filesystem_paths.cc
AgeCommit message (Collapse)Author
2017-04-19Use PBD::string_to/to_string in ARDOUR::user_config_directory_name()Tim Mayberry
The numeric formatting is equivalent without requiring a LocaleGuard or the global C++ locale is "C".
2016-09-28allow to get custom/product/version independent cach dirRobin Gareus
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-10-04globally remove all trailing whitespace from ardour code base.Paul Davis
Paul Davis was responsible for introducing almost all of this.
2015-08-19fix error-levelRobin Gareus
2015-08-19code consistency and hints for static analysisRobin Gareus
2015-08-18Add utility function to get windows packaging directory to avoid memory leaksTim Mayberry
There were a few other small leaks in pbd and evoral test code but I didn't bother changing them. Perhaps this function would be better off in PBD:: so it can be used everywhere.
2015-08-03VST cache rework (part one)Robin Gareus
Don’t clutter up actual vst-plugin dirs with additional files. Use dedicated folder for VST info-cache; use sha1-hash (of absolute dll path) for .fsi file. Use a single blacklist file (one path per line) instead of individual .fsb files per plugin.
2015-06-29fix crash caused by missing return; add explanatory commentsPaul Davis
2015-06-29fix typo in Tracks buildPaul Davis
2015-06-29initial incorporation of Tracks' automatic reconnect features, based on ↵Paul Davis
current Tracks code
2015-03-31move "been here before" path concept into libardour, and use it ↵Paul Davis
appropriately at startup
2015-03-11efficiency is overrated - don't cache the return value of ↵Paul Davis
user_config_directory_name() since it can be called with different arguments
2015-03-11only create user configuration directory if no explicit version was givenPaul Davis
2015-03-11hide user_config_dir_name; alter API for user_config_dir() to allow ↵Paul Davis
specification of a version number
2015-01-05prepare for 'ardour4'Robin Gareus
2015-01-05update windows user_cache_directory(): same pattern as config dirRobin Gareus
2014-12-23fix and cleanup c404ef98 (windows config dir)Robin Gareus
2014-12-22don't append .config to %LOCALAPPDATA%\<ProgramName>\Robin Gareus
::user_config_directory() could use some general cleanup an x-platform consolidation, but today is not the day.
2014-08-28Add an extra folder to get searched (on Windows only) when looking for ↵John Emmas
config files. This is a preliminary test to find out if 'All Users' would be a better place for our (writable) config files, as opposed to the user's personal 'AppData' folder (which we used in Mixbus2). N.B. this should not effect any previous operations on Windows or non-Windows platforms.
2014-03-19Use glibmm to simplify my earlier efforts with 'user_config_directory()' and ↵John Emmas
'user_cache_directory()' (improves my previous commit from 10th Mar 2014)
2014-03-19Modify 'ardour_config_search_path()' and 'ardour_data_search_path()'John Emmas
1) So that the Windows version will use appropriate environment variables (if they exist) 2) So that we don't exit if the env vars can't be found (we can still return some kind of path so just alert the user)
2014-03-10Just noticed a small problem with my previous commit. Windows config files ↵John Emmas
should be in 'Application Data/PROGRAM_NAME' rather than directly in 'Application Data'
2014-03-10Modify 'user_config_directory()' and 'user_cache_directory()' so that (on ↵John Emmas
Windows) they'll always return a directory that's guaranteed to be writable (in Windows, this isn't always true for the user's home folder)
2014-02-26add note to filesystem pathsRobin Gareus
used e.g. for personal (non system wide) VST cache.
2014-02-24preparations for VST blacklist (paths)Robin Gareus
2013-09-06Rename SearchPath class SearchpathTim Mayberry
Windows headers define SearchPath which means we have to undefine it where necessary. This is a pain and can be tricksy, so I feel renaming the class slightly is the easiest solution.
2013-08-04'libs/ardour' - Platform specific changes and includesJohn Emmas
2013-07-13Add config/data filesystem paths to search on windowsPaul Davis
2012-06-23Use static string in ARDOUR::user_config_directoryTim Mayberry
This code only needs to run once to determine/create users config directory git-svn-id: svn://localhost/ardour2/branches/3.0@12838 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Replace use of PBD::sys::path in ARDOUR::user_config_directoryTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12837 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Simplify ardour_*_search_path functionsTim Mayberry
Also fixes portability but windows build will likely not rely on env variables git-svn-id: svn://localhost/ardour2/branches/3.0@12836 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use std::string instead of PBD::sys::path in pbd/search_path.h, ↵Tim Mayberry
pbd/file_utils.h and ardour/session_dir.h git-svn-id: svn://localhost/ardour2/branches/3.0@12829 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-16Ssshhhhh....Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@12738 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-09Clean up libardour tests a bit.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@12641 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-19Correct error message.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@12330 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-18major rationalization of use of search paths. ardour now has just 4 ↵Paul Davis
functions used to define how external resources are located: ardour_config_search_path() (for system or user specific configuration data), ardour_data_search_path() (for machine, user and system independent data), ardour_dll_directory() (base directory where shared libraries are found) and user_config_directory(). These are now used throughout the code. the config, data and dll paths/directories can be overridden by environment variables. the user config dir is added as the first element of the first two search paths, and use selectively when searching for a few other things. This commit re-enabes ./waf install, and it is believed that it works fully at this point (more testing likely required) git-svn-id: svn://localhost/ardour2/branches/3.0@12326 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-08stop using STATIC_PATHS to define system search pathsPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@12210 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-09change config dir on OS X to ~/Library/Preferences/Ardour3Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@11210 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-01Fix broken whitespace. I'd apologize for the compile times if it was my ↵David Robillard
fault :D git-svn-id: svn://localhost/ardour2/branches/3.0@9654 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-11-08monster commit: transport mgmt changes from 2.X (omnibus edition); make ↵Paul Davis
slave use nframes64_t ; avoid crashes in Drags when commiting reversible transactions that do not exist git-svn-id: svn://localhost/ardour2/branches/3.0@6034 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-14Strip trailing whitespace and fix other whitespace errors (e.g. space/tab ↵David Robillard
mixing). Whitespace changes only. Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-05-12Remove most using declarations from header files.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@5069 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-26Waf: build UI/RC files, menu files, keybinding files, and fix paths in ↵David Robillard
wrapper scripts. Ardour should now build and run when built with waf from a clean svn checkout. git-svn-id: svn://localhost/ardour2/branches/3.0@4676 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-25*** NEW CODING POLICY ***David Robillard
All #include statements that include a header that is a part of a library bundled with ardour MUST use quotes, not angle brackets. Do this: #include "ardour/types.h" NOT this: #include <ardour/types.h> Rationale: This is best practice in general, to ensure we include the local version and not the system version. That quotes mean "local" (in some sense) and angle brackets mean "system" (in some sense) is a ubiquitous convention and IIRC right in the C spec somewhere. More pragmatically, this is required by (my) waf (stuff) for dependencies to work correctly. That is: !!! FAILURE TO DO THIS CAN RESULT IN BROKEN BUILDS !!! Failure to comply is punishable by death by torture. :) P.S. It's not that dramatic in all cases, but this (in combination with some GCC flags specific to the include type) is the best way I have found to be absolutely 100% positive the local ones are being used (and we definitely want to be absolutely 100% positive on that one). git-svn-id: svn://localhost/ardour2/branches/3.0@4655 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-06-02rollback to 3428, before the mysterious removal of libs/* at 3431/3432Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@3435 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-06-02remove empty sigc++2 directoryDoug McLain
git-svn-id: svn://localhost/ardour2/branches/3.0@3432 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-01-13Install everything to *ardour3* instead of *ardour2*.David Robillard
Fix initial display of keys and scroomer on new MIDI tracks. Remove console barf. git-svn-id: svn://localhost/ardour2/trunk@2909 d708f5d6-7413-0410-9779-e7cbd77b26cf
2007-06-27Add ARDOUR::system_data_search_path to ardour/filesystem_paths.hTim Mayberry
git-svn-id: svn://localhost/ardour2/trunk@2062 d708f5d6-7413-0410-9779-e7cbd77b26cf