Skip to content

Commit

Permalink
Remove support to use non standard plugin dir
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed May 30, 2023
1 parent dcdd84f commit b56f22b
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 68 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ if(UNIT_TESTING)
endif()
include(CTest)


include(OCConfigPluginDir)
include(OCBundleResources)
include(OCApplyCommonSettings)

Expand Down
35 changes: 0 additions & 35 deletions cmake/modules/OCConfigPluginDir.cmake

This file was deleted.

3 changes: 0 additions & 3 deletions src/libsync/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ elseif(UNIX)
list(APPEND libsync_SRCS platform_mac.mm platform_mac_deprecated.mm)
else()
list(APPEND libsync_SRCS platform_unix.cpp)
if(OC_PLUGIN_DIR)
set_source_files_properties(platform_unix.cpp PROPERTIES COMPILE_DEFINITIONS OC_PLUGIN_DIR="${OC_PLUGIN_DIR}")
endif()
endif()
endif()

Expand Down
9 changes: 0 additions & 9 deletions src/libsync/platform_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,5 @@ void UnixPlatform::setLimitsForCoreDumps()
}
}

void UnixPlatform::setApplication(QCoreApplication *application)
{
Platform::setApplication(application);

#if defined(OC_PLUGIN_DIR)
const QString pluginDirPath = QDir(QCoreApplication::applicationDirPath()).filePath(QStringLiteral(OC_PLUGIN_DIR));
application->addLibraryPath(pluginDirPath);
#endif
}

} // namespace OCC
2 changes: 0 additions & 2 deletions src/libsync/platform_unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class UnixPlatform : public Platform

~UnixPlatform() override;

void setApplication(QCoreApplication *application) override;

private:
void setLimitsForCoreDumps();
};
Expand Down
20 changes: 3 additions & 17 deletions src/libsync/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,29 +397,15 @@ QString Theme::aboutVersions(Theme::VersionFormat format) const
}
}


#if defined(OC_PLUGIN_DIR)
const QString pluginDirComment = QCoreApplication::translate("ownCloudTheme::pluginDir", "Plugin dir: %1%2").arg(QDir(QCoreApplication::applicationDirPath()).filePath(QStringLiteral(OC_PLUGIN_DIR)), br);
#else
const QString pluginDirComment = QString();
#endif

return QCoreApplication::translate("ownCloudTheme::aboutVersions()",
"%1 %2%7"
"%8"
"Libraries Qt %3, %4%7"
"%9"
"Using virtual files plugin: %5%7"
"%6")
.arg(appName(),
_version,
qtVersionString,
QSslSocket::sslLibraryVersionString(),
Vfs::modeToString(VfsPluginManager::instance().bestAvailableVfsMode()),
QSysInfo::productType() % QLatin1Char('-') % QSysInfo::kernelVersion(),
br,
gitUrl,
pluginDirComment);
.arg(appName(), _version, qtVersionString, QSslSocket::sslLibraryVersionString(),
Vfs::modeToString(VfsPluginManager::instance().bestAvailableVfsMode()), QSysInfo::productType() % QLatin1Char('-') % QSysInfo::kernelVersion(), br,
gitUrl);
}


Expand Down

0 comments on commit b56f22b

Please sign in to comment.