Skip to content

Commit

Permalink
quick fix for plugin path
Browse files Browse the repository at this point in the history
Signed-off-by: Bindea Cristian <[email protected]>
  • Loading branch information
bindea-cristian committed Apr 8, 2024
1 parent 60b2db2 commit e7605f0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
9 changes: 6 additions & 3 deletions common/src/scopyconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ QString scopy::config::localPluginFolderPath()
#if defined __APPLE__
return QCoreApplication::applicationDirPath() + "/plugins/plugins";
#endif

return SCOPY_PLUGIN_BUILD_PATH;
// TODO: a check for ARM
// Quickfix for testing purposes
return QCoreApplication::applicationDirPath() + "/../share/plugins";
}

QString scopy::config::defaultTranslationFolderPath() { return SCOPY_TRANSLATION_INSTALL_PATH; }
Expand All @@ -38,7 +39,9 @@ QString scopy::config::localTranslationFolderPath()
return QCoreApplication::applicationDirPath() + "/translations";
#endif

return SCOPY_TRANSLATION_BUILD_PATH;
// TODO: a check for ARM
// Quickfix for testing purposes
return QCoreApplication::applicationDirPath() + "/../share/translations";
}

QString scopy::config::preferencesFolderPath()
Expand Down
6 changes: 5 additions & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ endif()
option(WITH_PYTHON "Enable Python" ON)
if(${WITH_PYTHON})
set(Python_ADDITIONAL_VERSIONS 3)
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
if(CMAKE_SYSTEM_PROCESSOR MATCHES arm)
find_package(Python3 REQUIRED COMPONENTS Interpreter)
else()
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
endif()
set(PYTHON_VERSION python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
set(PYTHON_VERSION ${PYTHON_VERSION} PARENT_SCOPE)
if(NOT Python3_FOUND)
Expand Down
4 changes: 3 additions & 1 deletion core/src/scopymainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ void ScopyMainWindow::loadDecoders()
#if defined __APPLE__
QString path = QCoreApplication::applicationDirPath() + "/decoders";
#else
QString path = "decoders";
// TODO: a check for ARM
// Quickfix for testing purposes
QString path = QCoreApplication::applicationDirPath() + "/../lib/decoders";
#endif

bool success = true;
Expand Down

0 comments on commit e7605f0

Please sign in to comment.