diff options
author | Niels Weber <niels.weber@digia.com> | 2014-07-10 12:51:20 +0200 |
---|---|---|
committer | Niels Weber <niels.weber@digia.com> | 2014-07-10 13:03:32 +0200 |
commit | 519cf01c4e99fed3315a2d11829a70254ca88dd7 (patch) | |
tree | c76e74149def1d16c25c25378badda0c313be020 /src/sdk | |
parent | b1d6b3ba7b1cdebfe188d04f511a80b4a1e5be27 (diff) |
Remove ubuntu hack that should be no longer necessary.
Change-Id: I698b83cbbd9fd1b8f2ed3bb52cdb2849ef1e7e1c
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src/sdk')
-rw-r--r-- | src/sdk/installerbase.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp index c29e83127..f31e290a0 100644 --- a/src/sdk/installerbase.cpp +++ b/src/sdk/installerbase.cpp @@ -64,9 +64,6 @@ #include <QTranslator> #include <iostream> -#if defined(Q_OS_UNIX) -# include <fstream> -#endif #define QUOTE_(x) #x #define QUOTE(x) QUOTE_(x) @@ -102,29 +99,6 @@ int main(int argc, char *argv[]) // object and later starting the GUI application, we now parse the arguments first. const QStringList args = QInstaller::parseCommandLineArgs(argc, argv); -// hack to use cleanlooks if it is under Ubuntu -#if defined(Q_OS_UNIX) && !defined(Q_OS_OSX) - std::string standardString; - std::string cleanLooks ="-style=cleanlooks"; - std::ifstream input("/etc/os-release"); - bool isUbuntu = false; - while (std::getline(input, standardString)) { - if (standardString == "ID=ubuntu") - isUbuntu = true; - } - - if (isUbuntu) { - argc++; - char **newArgv = new char* [argc]; - newArgv[0] = argv[0]; - newArgv[1] = const_cast<char*>(cleanLooks.data()); - for (int i = 1; i < argc-1; ++i) { - newArgv[i+1] = argv[i]; - } - argv = newArgv; - } -#endif - qsrand(QDateTime::currentDateTime().toTime_t()); const KDSelfRestarter restarter(argc, argv); KDRunOnceChecker runCheck(QLatin1String("lockmyApp1234865.lock")); |