2
* This file is part of system-settings
4
* Copyright (C) 2013 Canonical Ltd.
6
* Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8
* This program is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License version 3, as published
10
* by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranties of
14
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
* PURPOSE. See the GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
24
#include <QGuiApplication>
25
#include <QProcessEnvironment>
27
using namespace SystemSettings;
29
int main(int argc, char **argv)
31
QGuiApplication app(argc, argv);
33
/* read environment variables */
34
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
35
if (environment.contains(QLatin1String("SS_LOGGING_LEVEL"))) {
37
int value = environment.value(
38
QLatin1String("SS_LOGGING_LEVEL")).toInt(&isOk);
40
setLoggingLevel(value);
43
initTr(I18N_DOMAIN, NULL);