-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove misleading deprecation of old support directory #3613
Remove misleading deprecation of old support directory #3613
Conversation
supportDirectory.string().c_str()); | ||
} | ||
#endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! Can you remove the includes above for boost/filesystem/path, boost/filesystem/operations, and SC_Filesystem? This is the only place they're needed in this file (I guess I should have put SC_Filesystem in the ifdef when I last edited this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Done.
d28cdb8
to
143a176
Compare
@aspiers - would you mind removing the include for I have this change locally, so I can just push it myself to this branch if you're ok with that. |
On UNIX-like systems, if SuperCollider is compiled from source into the user's home directory via: cmake -DCMAKE_INSTALL_PREFIX=$HOME make install then Platform.systemAppSupportDir and Platform.resourceDir will be set to $HOME/share/SuperCollider This is due to CMakeLists.txt containing the definition of SC_DATA_DIR: elseif(UNIX) add_definitions(-DSC_DATA_DIR="${CMAKE_INSTALL_PREFIX}/share/SuperCollider") endif() which is then consumed by common/SC_Filesystem_unix.cpp. Unfortunately, this resulting path is identical to the old location for the *user* support directory, so it triggers a misleading warning. However this deprecation was introduced by 2b77ef6 in August 2011, so it should be safe to remove it by now. Fixes supercollider#3367.
143a176
to
9cf80b8
Compare
Done but yeah, feel free to push yourself in future if you don't want to wait :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
On UNIX-like systems, if SuperCollider is compiled from source into the user's home directory via:
then
Platform.systemAppSupportDir
andPlatform.resourceDir
will be set toThis is due to
CMakeLists.txt
containing the definition ofSC_DATA_DIR
:which is then consumed by
common/SC_Filesystem_unix.cpp
.Unfortunately, this resulting path is identical to the old location for the user support directory, so it triggers a misleading warning. However this deprecation was introduced by 2b77ef6 in August 2011, so it should be safe to remove it by now.
Fixes #3367.