summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Use #include <QtModule/file> syntax in all headersv1.1_QtAS5.8Robert Griebl2017-03-1526-37/+33
| | | | | | | Also removed a few exception.h includes, since they are not needed anymore. Change-Id: I4d9bfb7fab61c2f07a4f2928c5cf4705487f2f5d Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Fix app icon not updating on app installationRobert Griebl2017-03-152-2/+20
| | | | | Change-Id: Ia931f0fd077a03538b2e8dcfd8207fc292ef802b Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix for force-single-process switchBernd Weimer2017-03-151-2/+2
| | | | | | | This switch was not obeyed after restructure of manager/main.cpp Change-Id: I02a052dd53e729a592733d1edc75eda9074bab6a Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Automatically set the x-bit on Windows when packagingRobert Griebl2017-03-141-0/+9
| | | | | | | | Windows file-systems do not have an x-bit, so we try to automatically set it when packaging files that start with a standard ELF header. Change-Id: I09d42abbc8752bbc892ef77a0b77be2c91a014bd Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix race condition in the controller when apps quit immediatelyRobert Griebl2017-03-141-17/+21
| | | | | Change-Id: If77156dc3353a1fff3fe68b843b9bbbbc0157d59 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Add debug output in the installer cleanup routineRobert Griebl2017-03-141-0/+9
| | | | | Change-Id: I4746d163ae625ab9a19f064e02ee0de006a7d445 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Workaround for MSVC2013 bugRobert Griebl2017-03-141-0/+4
| | | | | | | | | You need to explicitly capture 'this', if you only want to call a static member function of the class. Since here 'this' is the same as qApp, we can still get away without a capture. Change-Id: I9c04256a7eb27ba32a8b1c1b2a2899345ecbb497 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Fix DBus annotationRobert Griebl2017-03-141-1/+1
| | | | | Change-Id: I6a07d6f7d08635f3bca7b0cb0c00370e777c5bfe Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Suppress unnecessary qmake outputRobert Griebl2017-03-141-2/+5
| | | | | Change-Id: I2b3b7958e0c0a64ddaf116da2a3aa5e96a456160 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Do not print an empty StartupTimer reportRobert Griebl2017-03-141-1/+1
| | | | | Change-Id: I92e78ca1584d34dc018daf9eaa8adbc86412e460 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Make includes Qt module compliantRobert Griebl2017-03-146-3/+6
| | | | | Change-Id: Ie2bf41fad58d109e843e36fb60c72259116326af Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Fix MSVC2015 64-bit warningsRobert Griebl2017-03-142-4/+4
| | | | | Change-Id: If83e7106885a075e1083c01c2f2c90bc5cb5df5a Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Remove empty file global.cppRobert Griebl2017-03-142-1/+0
| | | | | Change-Id: Iab55b45428e18f891e7a56ddf798fbd1af0f3bf6 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Replace all foreach loops with C++11 ranged-for loopsRobert Griebl2017-03-1438-111/+133
| | | | | | | Also replaced a few loops with more efficient implementations. Change-Id: I56f9242a410741fc5e7a291be7c6090c599b7666 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Correct system monitor model resizingBernd Weimer2017-03-141-4/+5
| | | | | Change-Id: Ic249b61321adc3a8f2eb594952eb16746f4423ec Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Replace C++03 throw(Exception) specifications with C++11 noexcept(false)Robert Griebl2017-03-1436-152/+165
| | | | | | | | | | Newer clang versions already complain about throw(foo) being deprecated in C++17. Of course MSVC2013 has no support for plain noexcept(bool), so we have to make do with the unwieldly Q_DECL_NOEXCEPT_EXPR(false) as long as we need to support it. Change-Id: Id5d6890213fa019753dec624b71db8aefe010e7c Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Replace all 0-pointers with C++11 nullptrRobert Griebl2017-03-1458-115/+116
| | | | | Change-Id: I86eebd1bc81cab41ab4278c3223984c87ef1c96e Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Restructure manager/main.cppRobert Griebl2017-03-138-658/+881
| | | | | | | | This file has grown so much that it was overdue to split the main() function down into more manageable parts. Change-Id: If5d4bd184c4cbb4a018623875e648fc7197342ce Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* common-lib cleanupRobert Griebl2017-03-1349-685/+910
| | | | | | | | | | global.{h,cpp} and utilities.{h,cpp} have become the kitchensink of the AM. This commit splits out the logging functionality from global.{h,cpp} into the new files logging.{h,cpp} and also the crash handling functionality from utilities.{h,cpp} into the new crashhandler.{h,cpp} Change-Id: Idffdb424b1cbd8d92eb60b0ac7f08e17a46c749b Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Replace the setProcessTitle implementationRobert Griebl2017-03-106-75/+272
| | | | | | | | | This implementation is a lot less nice, but at least we are not relying on special prctl functionality being available in the kernel or even requiring POSIX capabilities. Change-Id: I2b5b2d598e179c741e1aed8e3c0d557cb6b521c8 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Remove obsolete codeRobert Griebl2017-03-104-18/+2
| | | | | Change-Id: Iadd88353b5a5bdb60ada7ac52404c56ad9698d89 Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* Simplify StartupTimer usageRobert Griebl2017-03-104-52/+60
| | | | | | | This is also in preparation of the manager/main.cpp split up. Change-Id: I480cadd2a292cf3770eddd81d6f875ff64ce4361 Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* Fix error string check in auto testRobert Griebl2017-03-101-1/+1
| | | | | Change-Id: I5b4a7d015b35bee65797a1bd869ad4a127afbb66 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix output redirection in softwarecontainersRobert Griebl2017-03-101-1/+1
| | | | | Change-Id: I23c22333d22cf41b00a88fc25baedc65c0412b3d Reviewed-by: Kursat Kobya <kursat.kobya@pelagicore.com>
* Remove additionalConfigurationBernd Weimer2017-03-0911-59/+22
| | | | | | | | | The additionalConfiguration key in config files, as well as the property have already been marked deprecated. Support for this will be finally removed now. Change-Id: Ib139e3d0f6baf2944e2f56fdf4da810eac138894 Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
* Fix Application::mergeIntoRobert Griebl2017-03-091-5/+6
| | | | | | | | * documentUrl was ignored * aligned the order of assignments with the actual member layout Change-Id: Id6abcb6ee8b521bcefc61ecf18090b9ce7bef40d Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* Improve the error messages for invalid YAML documentsRobert Griebl2017-03-096-18/+63
| | | | | Change-Id: I7c3831b149e32f6a2fcc38423a5439a7633cb4d6 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Adds an API to get the associated application-id of an installation taskRobert Griebl2017-03-092-0/+25
| | | | | Change-Id: Ia1fdf0485190f00a4819dc03dccb8d73fd93a871 Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
* Fix crash when cleaning up the runtimesDominik Holland2017-03-092-2/+3
| | | | | | | | Use a QPointer as the Application might already be deleted when the destructor is called. Change-Id: I5d7993921bd2a7c2cfa5644af76747c6f731a972 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Adds missing documentation for the ApplicationManagerRobert Griebl2017-03-091-0/+43
| | | | | Change-Id: I406964eff9580e59a371f941409bd902c111c370 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Do not crash when a test-case cleanup failsRobert Griebl2017-03-071-1/+6
| | | | | Change-Id: I56110724cf26fc8631e089a23c020f10c53ae287 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix for building against Qt 5.6Robert Griebl2017-03-071-0/+11
| | | | | | | QByteArray::append(int count, char c) was only added in Qt 5.7. Change-Id: Iefc356e9b60e49f3c45b1987c7ff0eed6155edd4 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Further cleanup/improvement of the color output handlerRobert Griebl2017-03-074-81/+101
| | | | | | | | | | | * getOutputInformation does all the low-level handling now * getOutputInformation is for stderr only - this was very confusing and ultimately unnecessary before * console resizing is now also supported on Windows * made the variable naming a bit more meaningful Change-Id: Ice432f6a148a855e7f7085fe1fbf31aa1bd6576d Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Make build on Windows warning freeRobert Griebl2017-03-073-6/+14
| | | | | Change-Id: I98ecf02829651ee6bcb1cb4dccb9ba17de978d50 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix notification action order on system-ui sideRobert Griebl2017-03-071-6/+15
| | | | | | | | | The client side already used a list of single mappings, but the server side was using a plain map. Fixed the server side to use a list of single mappings as well. Change-Id: I5ebdee72df8209be2c6004d80d3558008a59cbb5 Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
* SoftwareContainer: make the bind-mounting of $HOME configurableRobert Griebl2017-03-072-6/+15
| | | | | | | | This bind-mount will fail, if $HOME is not set, which can be the case when the system-ui is started as a service by systemd on a target. Change-Id: I733f22c22f7380f71b9106b5b5e7c6f5199d6ed5 Reviewed-by: Kursat Kobya <kursat.kobya@pelagicore.com>
* Fix application startup interface and add documentationBernd Weimer2017-03-062-16/+37
| | | | | | | | | | | The initialize() function of the startup interface gets the system properties. However, the QML launcher initialized those after the function was called. The order has been changed now. Also added documentation for "plugins" configuration. Change-Id: I5d802ed7cba6ba000de2780e0b858b1ac105368d Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Improve system monitorBernd Weimer2017-03-064-71/+139
| | | | | | | | | | | | | | * Reversed model, so most recent values are at the front * Removed reportingRange property (in favor of count) * Reset model when reportingInterval is changed * Keep "tail" values when reporting is switched off * Removed memoryTotal from model and signal, since it never changes * Marked process monitor as experimental * Updated documentation Change-Id: I1b8ca84ae265f0ff2decab94d43a1b10bfd6082d Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com> Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Optimize colorLogToStderrRobert Griebl2017-03-012-90/+140
| | | | | Change-Id: Ie4a6c29454f785b1d82b5620da8e195bd1eb5523 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Align API with SoftwareContainer plugin exampleKarol Judek2017-03-011-15/+4
| | | | | | Change-Id: I466eb1a37d9447f1580d174b6b4a7b3be0356760 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com> Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fix piping a package to appman-controller install-package via stdinRobert Griebl2017-03-011-1/+1
| | | | | Change-Id: I8f29fd2b1ccb7e6c45ddd07071a750cae698ed8b Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Adapt to the Qt 5.8 way of building helper librariesRobert Griebl2017-02-286-23/+49
| | | | | | | | Otherwise, qmake may screw up the library dependencies: not always, but often for release builds that have an install prefix. Change-Id: Ia0c77a586b11eef801b42eace91cc7cae443f31e Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix console output width calculationRobert Griebl2017-02-281-2/+4
| | | | | Change-Id: I8759aea0635d69e15eddfc934c110fb8eb439a49 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Build fix: make sure to also depend on waylandcompositor-privateRobert Griebl2017-02-273-4/+13
| | | | | | | | Without this, the build may break on Debian when building against the system's Qt, because Debian does not ship the QtWayland private headers. Change-Id: I02fa7babc1e5dd8300e9db6814e94b2766b83875 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix for clazy and clang static code analysis findingsRobert Griebl2017-02-2720-35/+36
| | | | | Change-Id: I97b29073903f0d7bab6c9e1cc4cc5eacf5357393 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Forgot the application map when renaming baseDir to codeDirRobert Griebl2017-02-272-3/+3
| | | | | Change-Id: Iba72d0bed0c1ed88be58d94abb16c7f62677deb0 Reviewed-by: Richard Pannek <richard.pannek@pelagicore.com>
* Refactored the old and the new Wayland compositor into one .h/.cpp fileRobert Griebl2017-02-279-405/+317
| | | | | | | | | | | | We get a lot more #ifdefs this way, but at least nobody can forget the old compositor that easily now when doing changes to the current one. Also, those ifdefs should be gone when we can drop 5.6 support (hopefully when 5.9 is released). As an added bonus, the compositor is now working again with Qt 5.6. Change-Id: I456cc211aca26d2f17c4466568d7dd620779ed63 Reviewed-by: Thomas Senyk <thomas.senyk@pelagicore.com>
* Code and debug output cleanup for application startsRobert Griebl2017-02-236-39/+41
| | | | | | | | This reduces the amount of cryptic output when starting applications in Wayland mode. Change-Id: I0b49b27e8b3322cfe77b1a086b400a0814af8774 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix process shutdown of the sudo serverRobert Griebl2017-02-231-1/+1
| | | | | | | | Calling abort() after receiving SIGHUP in the sudo process would invoke the crash handler, but we just want a clean exit in this case. Change-Id: Iba99cc3e186a8ef7898e3fe27cf0ab265f03dee0 Reviewed-by: Gordan Markus <gordan.markus@pelagicore.com>
* Fix system memory warningsBernd Weimer2017-02-221-1/+1
| | | | | | | | | The top-level system cgroup file "memory.limit_in_bytes" does not reflect the actual amount of installed memory. Hence we use the value retrieved via sysconf calls. Change-Id: I809fd561a4460120eeaf23b8dc4484a814041ba9 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>