2 * This file is part of system-settings
4 * Copyright (C) 2014 Canonical Ltd.
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published
8 * by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranties of
12 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
13 * PURPOSE. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program. If not, see <http://www.gnu.org/licenses/>.
21#include <qpa/qplatformnativeinterface.h>
23#include <QGuiApplication>
37 QProcess::startDetached("initctl start ubuntu-system-settings-wizard-cleanup");
40int main(int argc, const char *argv[])
42 bool isMirServer = false;
43 if (qgetenv("QT_QPA_PLATFORM") == "ubuntumirclient") {
44 setenv("QT_QPA_PLATFORM", "mirserver", 1 /* overwrite */);
48 QGuiApplication::setApplicationName("System Settings Wizard");
49 QGuiApplication *application = new QGuiApplication(argc, (char**)argv);
51 bindtextdomain(I18N_DOMAIN, NULL);
52 textdomain(I18N_DOMAIN);
54 QQuickView* view = new QQuickView();
55 view->setResizeMode(QQuickView::SizeRootObjectToView);
56 view->setTitle("Welcome Wizard");
58 QString rootDir = qgetenv("UBUNTU_SYSTEM_SETTINGS_WIZARD_ROOT"); // for testing
59 if (rootDir.isEmpty())
60 rootDir = WIZARD_ROOT;
62 QString modulesDir = qgetenv("UBUNTU_SYSTEM_SETTINGS_WIZARD_MODULES"); // for testing
63 if (modulesDir.isEmpty())
64 modulesDir = PLUGIN_PRIVATE_MODULE_DIR;
67 view->engine()->addImportPath(modulesDir + "/Ubuntu/SystemSettings/Wizard/NonMir");
69 view->engine()->addImportPath(modulesDir);
70 view->engine()->addImportPath(PLUGIN_QML_DIR);
71 view->engine()->addImportPath(SHELL_PLUGINDIR);
74 view->rootContext()->setContextProperty("pageList", &pageList);
75 view->setSource(QUrl(rootDir + "/ubuntu/settings/wizard/qml/main.qml"));
76 view->setColor("transparent");
78 QObject::connect(view->engine(), &QQmlEngine::quit, handleQuit);
81 view->showFullScreen();
86 int result = application->exec();
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list