From e4cb9703cc6810dbe07070b485ea866f00ba9252 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 8 Jul 2016 10:06:49 +0200 Subject: gui, api, proto/wine: get rid of library path as exported symbol There's no need to do that. It never changes unless the toolchain changes. --- opentrack/plugin-support.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'opentrack/plugin-support.hpp') diff --git a/opentrack/plugin-support.hpp b/opentrack/plugin-support.hpp index a55526a9..a26d7f08 100644 --- a/opentrack/plugin-support.hpp +++ b/opentrack/plugin-support.hpp @@ -62,8 +62,7 @@ struct dylib final { if (filename.size() == 0) return; - QString fullPath = QCoreApplication::applicationDirPath() + "/" + filename; - handle = new QLibrary(fullPath); + handle = new QLibrary(filename); handle->setLoadHints(QLibrary::PreventUnloadHint | handle->loadHints()); struct _foo { @@ -113,9 +112,7 @@ struct dylib final { }; const Type filters_t[] = { Filter, Tracker, Protocol }; - static const QString libexec_path(QStringLiteral("./") + library_path); - - QDir settingsDir(libexec_path); + QDir settingsDir(library_path); QList> ret; @@ -129,7 +126,7 @@ struct dylib final { { QIcon icon; QString longName; - auto lib = std::make_shared(libexec_path + QStringLiteral("/") + filename, t); + auto lib = std::make_shared(library_path + filename, t); qDebug() << "Loading" << filename; std::cout.flush(); if (!get_metadata(lib, longName, icon)) -- cgit v1.2.3