Skip to content

Commit

Permalink
Remove Qt plugins path rewriting
Browse files Browse the repository at this point in the history
  • Loading branch information
crackedmind authored and berkus committed Dec 20, 2017
1 parent 59ee61a commit 6ffc8d3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion Telegram/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ if (LINUX)
SourceFiles/platform/linux/notifications_manager_linux.cpp
SourceFiles/platform/linux/specific_linux.cpp
)
set(tg_RESOURCES Resources/qrc/telegram_linux.qrc)
endif()

list(APPEND tg_RESOURCES
Expand Down
2 changes: 0 additions & 2 deletions Telegram/Resources/etc/qt_linux.conf

This file was deleted.

5 changes: 0 additions & 5 deletions Telegram/Resources/qrc/telegram_linux.qrc

This file was deleted.

6 changes: 1 addition & 5 deletions Telegram/SourceFiles/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ int main(int argc, char *argv[]) {
// both are finished in Application::closeApplication
Logs::start(); // must be started before Platform is started
Platform::start(); // must be started before QApplication is created
#if defined(Q_OS_LINUX64)
QCoreApplication::addLibraryPath("/usr/lib64/qt5/plugins");
#else
QCoreApplication::addLibraryPath("/usr/lib/qt5/plugins");
#endif

qputenv("QT_STYLE_OVERRIDE", "qwerty");
qunsetenv("QT_QPA_PLATFORMTHEME");

Expand Down

0 comments on commit 6ffc8d3

Please sign in to comment.