summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Disconnect the quit and exit signals of the QQmlApplicationEngine5.10Dominik Holland2018-04-042-1/+3
| | | | | | | | Without this a call of Qt.quit() directly quits appman without waiting for all applications to be stopped. Change-Id: Ic64ee23a05fab829d507d59cc184e20cbcb4edf0 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Replace QtWayland's surface extension with a custom AM extensionRobert Griebl2018-04-0418-104/+618
| | | | | | | | | | | Qt's qt_surface_extension was deprecated with Qt 5.11, so we need a new way to communicate window properties. The new extension does not use a per-surface extension interface anymore, since that makes the code on both sides a lot simpler. Change-Id: I4f908fa5f0fa356c02c132cd32fe44b63deaf15e Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* (Un)register MIME types with QtGui on application (un)installationRobert Griebl2018-04-042-3/+15
| | | | | | | | | This fixes x-scheme-handler/foo MIME-types not working directly after installation in single-process mode. Change-Id: I023a88f6ca420a1c72b2e0dcf99c3f382e02658d Reviewed-by: Alexandra Betouni <ABetouni@luxoft.com> Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
* Explicitly call doneCurrent to work around crash on NUC with eglfsRobert Griebl2018-04-031-6/+8
| | | | | Change-Id: Id5d38edbed398441c85de2b53df010f171dc997a Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Make sure to handle openUrl requests in the main threadRobert Griebl2018-04-031-0/+5
| | | | | Change-Id: If065f14517e3445b0f1a16b1d750aa9e6f569e1d Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add the new GPU reporting also to the modelDominik Holland2018-03-291-0/+3
| | | | | Change-Id: I4ff3d7b2a24622b7a196e21cc4fa8e2ffe36ba08 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fix --no-dlt-logging to disable dlt logging also in apps againDominik Holland2018-03-291-1/+1
| | | | | Change-Id: Ic525bf1e7960644148398cbb86e3ab6eff9e5d23 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Suppress debug output from config file parsingRobert Griebl2018-03-295-13/+13
| | | | | | | | As with the sudo output, these debugs will be replayed later using the DeploymentWarnings category. Change-Id: Iaf7544945006a76e584865f467f951437ce077f1 Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* Make missing installation locations in the config file non-fatalRobert Griebl2018-03-292-4/+2
| | | | | Change-Id: I9092bf5cb60fb9e0ff3e47fe7ce798674ebfc068 Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* Add GPU utilization to the system-monitorRobert Griebl2018-03-275-1/+323
| | | | | | | | | | | Currently, this only works on Linux with Intel or Nvidia chipsets, plus the tools from the respective vendors have to be installed: * nvidia-smi for Nvidia * intel_gpu_top for Intel. In addition, the binary has to be made SUID root, e.g. via sudo chmod +s $(which intel_gpu_top) Change-Id: Ic82888eba26d740074822a9c4bdea9a35772648c Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Move sanity checks in the qml launcherRobert Griebl2018-03-223-40/+45
| | | | | | | | We tested the parameters coming from the AM without being sure that we were being called from the AM at all (--help / --directload) Change-Id: I3928701ef3981b7681174dd030f9b16d463aa512 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Move RunState API from ApplicationManager to ApplicationDaniel d'Andrada2018-03-1710-77/+126
| | | | | | | In order to have a more object-oriented API Change-Id: I4fde0b4805ce384019b2c2c5cc9d16ab7458cb20 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add support for OpenSSL 1.1Robert Griebl2018-03-163-25/+38
| | | | | | | | | | | The AM can cope dynamically with either OpenSSL 1.0 or 1.1 at runtime. (Qt itself in contrast has to be compiled for a specific version). This means we automatically and transparently will use the OpenSSL version that Qt was compiled against. Change-Id: I699bbfea132cefad64504415915657cca0453e4f Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Header cleanup, fixing syncqt warningsRobert Griebl2018-03-169-13/+19
| | | | | Change-Id: Ide43048bd3d5dc9177029ff64e611973d0ee12f4 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Simplify the sudo server interfaceRobert Griebl2018-03-168-85/+61
| | | | | | | Also bring it more in line with how the other APIs work in the AM. Change-Id: I5ec1b4c3313c90808411ca374fac1552142c4372 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fixed the logic of detecting native apps that support the ApplicationInterfaceRobert Griebl2018-03-151-7/+9
| | | | | Change-Id: I5987649f2843fa8f4c7dbb3fe5e7ae37a7cad8ae Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add a deterministic way to start apps on startupRobert Griebl2018-03-154-10/+63
| | | | | | | | | | | | | | Apps that are started before the compositor is ready to accept windows are now delayed until the new (public) property ApplicationManager::windowManagerCompositorReady signals that it is safe to do so. Also, WindowManager::registerCompositorView() can now be called explicitly on the System-UI's root window, so that the registration is done earlier (the AM will always implicitly register that window after the main QML is loaded). Change-Id: Id461af2dcc64258c4fab73a87a4f55aa32ab3654 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Automatically detect if the QML debugger should be enabledRobert Griebl2018-03-152-5/+6
| | | | | | | | We had this code in the qml runtime only - now it's moved to the shared Main class, so that it will also work for the appman itself. Change-Id: Ib1e9852421dec5197575780ca84383f6b081a103 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add support generic support for --no-dlt-loggingRobert Griebl2018-03-154-8/+18
| | | | | | | This simplifies custom appman executables a lot. Change-Id: Iceb5078e036924a6f79df1de77e86471a41aca66 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add support for reading the git SHA1 from .tag produced by the Qt CIRobert Griebl2018-03-081-3/+4
| | | | | Change-Id: Ib427535219a6fc667ac677fe480e5d1a09e4179e Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Make the acknowledge part of appman-controller's install-package optionalRobert Griebl2018-03-062-14/+22
| | | | | | | | | | | | Acknowledging package installations by default could interfere with System-UI logic, so we shouldn't do it by default. There is now a new switch -a/--acknowledge however which will activate the old behavior and forces installation even on minimal System-UIs that do not implement the package acknowledge callback. Change-Id: If7e4faa328a98a231eccf36515bc0e568004d41d Task-number: QTAUTO-835 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add basic bash completion for appman executableBernd Weimer2018-03-023-4/+29
| | | | | | | Also documented start-session-dbus option. Change-Id: Ib5279ef8677b45226720e047c62f217fbe9fba5a Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fix quicklaunchBernd Weimer2018-03-021-1/+4
| | | | | | | | | When a runtime is started through quicklaunch, the application object is not set and hence the application's OpenGL configuration cannot be set. This is stated in the documentation already. Change-Id: I6d2054e8b0f311d64a772d39645f5d9ec1ec9102 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fix "enable-widgets" optionJacques GUILLOU2018-03-011-5/+7
| | | | | Change-Id: I8bebd419b4c75bc7569fcf6c6aa389906924e307 Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* Add new "deployment" logging categoryBernd Weimer2018-02-2810-24/+44
| | | | | | | | | This new logging category has been introduced in order to get finer control on warnings at startup. Also logging is delayed until rules are set. Change-Id: I311d8ba929f474120665c96f854bae4a48f9ebb9 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Remove deprecated XProcessMonitorBernd Weimer2018-02-287-879/+0
| | | | | | | | The XProcessMonitor should not be used any more by now. Instead, the replacement ProcessMonitor is used. Change-Id: If1e07b3e32668ff24557a9221704c6217584a94a Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Set the initial size of the InProcessSurfaceItemv2.0_QtASDominik Holland2018-02-221-0/+2
| | | | | | | | | The InProcessSurfaceItem didn't had an initial size before and wasn't displayed correctly out of the box. Task-number: QTAUTO-790 Change-Id: I94fef26308f79db0d8855fb76dcdacc5ddadf361 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Update monitor example imageBernd Weimer2018-02-222-2/+2
| | | | | | | | This reflects a minor UI change in a previous commit (ca784dc). Also fixed a minor spelling error in the documentation. Change-Id: I8d03be3a2674af85bed368ffe515d578b6ecbdde Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Documentation for the custom-appman exampleRobert Griebl2018-02-213-0/+108
| | | | | | Task-number: QTAUTO-799 Change-Id: I1de503a901309743a378532418ed2561e3b24049 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix smaps parsingBernd Weimer2018-02-213-21/+318
| | | | | | | | | We cannot rely on a fixed position of Size, Rss and Pss tags in smaps files. Task-number: QTAUTO-785 Change-Id: I12da5b5d21da0846ad57252b176fa204db18704f Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Preserve the PID of apps when they crash for better error outputRobert Griebl2018-02-202-2/+7
| | | | | | Task-number: QTAUTO-515 Change-Id: I039199d6bc3cd4964c692dd3448c6d17b3c29998 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix FakeApplicationManagerWindow color updateBernd Weimer2018-02-201-3/+6
| | | | | | | | | This allows to update the color of an ApplicationManagerWindow in single-process mode. Change-Id: I4ea4d5e1de5733899bd12fe4cc7b9901866dbd72 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com> Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Change memory consumption in monitor exampleBernd Weimer2018-02-202-14/+29
| | | | | | | | | | | | In the monitor example the application simulates an increasing memory consumption, rather based on a bug in the JavaScript engine, which lead to other side effects. The new version should be more reliable. Also provided some hints for single-process mode and when no app windows are available. Task-number: QTAUTO-786 Change-Id: I5a055d775d5705487dc6fcdc1a81889f7dd14e07 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix crash when trying to install an app while its runtime is not availableRobert Griebl2018-02-141-2/+3
| | | | | | Task-number: QTAUTO-784 Change-Id: I8e511b4311001c2da1aa3684b1e1d87d5a36ba06 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix flaky QML auto testsBernd Weimer2018-02-082-6/+11
| | | | | Change-Id: I3be3753b03d1363f66513b9e77a1049bfa42d379 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Update minidesk exampleBernd Weimer2018-02-082-3/+3
| | | | | | | | | | Since Qt5.8 and older are not supported any more, the "onPressed" workaround could be removed. Used ApplicationInterface.icon which was added some time ago instead of hard coded string. Change-Id: I2a5a283d8cded5b7f2113068116867439e602063 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Update 3rd-party librariesRobert Griebl2018-02-07125-54820/+5329
| | | | | | | | libarchive to 3.3.2 (also removed unneeded file formats) libyaml to 1.7 Change-Id: I264721b4dda63f5e69e1fe21d33000206a2b881b Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Update Pelagicore copyright headers to 2018Robert Griebl2018-02-07280-280/+280
| | | | | Change-Id: I8d9278053ccdef5a57e51753aa6157941ebcee52 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Remove obsolete liblzma dependencyRobert Griebl2018-02-071-20/+0
| | | | | Change-Id: I953b7879fbbece557a9938c0c86808d2f3cbf25b Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Remove support for Qt 5.6, 5.7 and 5.8Robert Griebl2018-02-0715-320/+21
| | | | | | | | | | | We supported these old version as long as they wouldn't break new features, but that is happening now: Qt < 5.9 does not support including enums of unrelated C++ classes into the QML scope of another exported C++ class. At least this will get rid of nearly all the ugly QT_VERSION #ifdefs we had. Change-Id: I1bc4e9289e685eedb0af7b20e928ed550569196b Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* doc: Add a troubleshooting page with frequently asked questionsDominik Holland2018-02-052-0/+114
| | | | | | | | This should address the most common issues when it comes to appman and get multi-process up running how it is supposed to be. Change-Id: I0bcc56f58c5f098ab1d13d548ea8328d274c5049 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Allow window to be shown in ping-pong testBernd Weimer2018-02-052-2/+2
| | | | | | | | | Auto test tst_windowmapping.qml, wayland_ping_pong did not reliably show the application window. Deferred application hang. Also added output of index to installation state test. Change-Id: I283c62f557b038ad64baac1acc86ad61d8d45057 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* SystemMonitor: add cpuLoad and memoryUsed propertiesDaniel d'Andrada2018-02-022-6/+46
| | | | | | | | | | | If application code is interested only in the latest readings it currently has to deal with signals from SystemMonitor. But it's way more convenient and natural for QML code to manipulate properties than signals as the former leads to declarative code. Change-Id: I8cd2f8ee6410ac2620f7a1d6ee3d4bed759e91c2 Reviewed-by: Vladimir Minenko <vladimir.minenko@pelagicore.com> Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Extend and improve QML auto testsBernd Weimer2018-02-024-3/+92
| | | | | | | | | | | Exposed a new type to QML auto tests that allows to ignore logging messages. In addition assets of QML tests will be copied to the build folder and instead of running the tests in the source folder, they will be run in the build folder again. Change-Id: Ief9d34aed1f74e28f15bd5435723bb6afee7d531 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add bash command completion fileBernd Weimer2018-01-234-0/+135
| | | | | | | It provides command completion for appman-controller and appman-packager. Change-Id: Ic8853c55c8a484fa7fb498f822727f167ad4b2e9 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Overload virtual contains function againBernd Weimer2018-01-172-2/+11
| | | | | | | This basically reverts commit 5e854f43cec14960a189db58fcb8a0d78ddff2c0. Change-Id: I7856f62b6fdbf8966979e237df65d79fa4c464ad Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Make installation task state an enumerationBernd Weimer2018-01-157-60/+80
| | | | | | | | | Changed installation task state from string to enumeration. On the DBus interface it is still a string. This brakes backwards compatibility. Change-Id: I2ed9bfcef24d3b578ce84c2eefb7c1d180ccf7de Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Add monitoring auto testsBernd Weimer2018-01-1111-9/+653
| | | | | | | | Added tests for ProcessMonitor memory (smaps file) parsing and basic QML tests for SystemMonitor. Change-Id: If80a48734ecc1785f7564b668cd5ccc433869010 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Allow to enable Wayland ping-pong againBernd Weimer2018-01-115-4/+81
| | | | | | | Added auto test, as well. Change-Id: I459e94ac399776d9d12c86106a029e322516c222 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* TouchEmulationX11: leave XI2 event intact after processing itDaniel d'Andrada2018-01-112-27/+61
| | | | | | | | | Otherwise the XCB QPA will get a modified event once it processes it after this native filter Change-Id: Idc27edb7d0925ac03f53a7fc8fcdba96be5d89ca Reviewed-by: Lukáš Tinkl <ltinkl@luxoft.com> Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>