mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Don't hardcode PLUGINDIR
This commit is contained in:
parent
7fd4a280f0
commit
3a3ccb0834
3 changed files with 0 additions and 21 deletions
|
@ -106,13 +106,6 @@ set(DATADIR "share")
|
|||
endif(WIN32)
|
||||
set(SHAREDIR ${DATADIR})
|
||||
|
||||
if (NOT APPLE)
|
||||
set(PLUGINDIR "${CMAKE_INSTALL_FULL_LIBDIR}/${APPLICATION_SHORTNAME}/plugins" CACHE STRING "Extra path to look for Qt plugins like for VFS. May be relative to binary.")
|
||||
else()
|
||||
# Inside the .app bundle
|
||||
set(PLUGINDIR "../PlugIns" CACHE STRING "Extra path to look for Qt plugins like for VFS. May be relative to binary.")
|
||||
endif()
|
||||
|
||||
#####
|
||||
## handle BUILD_OWNCLOUD_OSX_BUNDLE
|
||||
# BUILD_OWNCLOUD_OSX_BUNDLE was not initialized OR set to true on OSX
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#cmakedefine SYSCONFDIR "@SYSCONFDIR@"
|
||||
#cmakedefine SHAREDIR "@SHAREDIR@"
|
||||
#cmakedefine PLUGINDIR "@PLUGINDIR@"
|
||||
|
||||
#cmakedefine01 GUI_TESTING
|
||||
|
||||
|
|
|
@ -274,19 +274,6 @@ Application::Application(int &argc, char **argv)
|
|||
if (!AbstractNetworkJob::httpTimeout)
|
||||
AbstractNetworkJob::httpTimeout = cfg.timeout();
|
||||
|
||||
#ifdef PLUGINDIR
|
||||
// Setup extra plugin search path
|
||||
QString extraPluginPath = QStringLiteral(PLUGINDIR);
|
||||
if (!extraPluginPath.isEmpty()) {
|
||||
if (QDir::isRelativePath(extraPluginPath))
|
||||
extraPluginPath = QDir(QApplication::applicationDirPath()).filePath(extraPluginPath);
|
||||
qCInfo(lcApplication) << "Adding extra plugin search path:" << extraPluginPath;
|
||||
QStringList pluginPath = libraryPaths();
|
||||
pluginPath.prepend(extraPluginPath);
|
||||
setLibraryPaths(pluginPath);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Check vfs plugins
|
||||
if (Theme::instance()->showVirtualFilesOption() && bestAvailableVfsMode() == Vfs::Off) {
|
||||
qCWarning(lcApplication) << "Theme wants to show vfs mode, but no vfs plugins are available";
|
||||
|
|
Loading…
Reference in a new issue