diff --git a/CMakeLists.txt b/CMakeLists.txt index 58bf2cf2f..4af2b26be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -141,6 +141,16 @@ else (CMAKE_SYSTEM_NAME MATCHES "Linux") endif (CMAKE_SYSTEM_NAME MATCHES "Linux") file(GLOB sdk_headers "src/core/sdk/*.h") +file(GLOB themes "src/musikbox/data/themes/*.json") + +file(COPY ${themes} + DESTINATION bin/themes +) + +install( + FILES ${themes} + DESTINATION share/musikcube/themes +) install( FILES ${sdk_headers} diff --git a/src/musikbox/cursespp/Colors.cpp b/src/musikbox/cursespp/Colors.cpp index 344ee2b97..e8c60eff2 100755 --- a/src/musikbox/cursespp/Colors.cpp +++ b/src/musikbox/cursespp/Colors.cpp @@ -228,7 +228,7 @@ struct Theme { std::wstring u16fn = u8to16(fn); FILE* file = _wfopen(u16fn.c_str(), L"rb"); #else - FILE* file = fopen(fn, "rb"); + FILE* file = fopen(fn.c_str(), "rb"); #endif if (!file) { return false;