summaryrefslogtreecommitdiffstats
path: root/tdecore
Commit message (Collapse)AuthorAgeFilesLines
* Fix private API compatibility in TDEGlobalSettings.Slávek Banko2020-01-302-0/+13
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit f29aa92d38e9e1f353ed48f7952150437db8c890)
* Make sure XDG folders are created prior to their usage.Michele Calgaro2020-01-301-1/+36
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit de79e754fa8118d34ea804d6b4fb7056b65487fd)
* Improved support for XDG folders without requiring xdg-user-dirs to be ↵Michele Calgaro2020-01-303-115/+167
| | | | | | | installed. Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 394c9f5c0e1b464aa8bc22bd65c5268acd43994d)
* tdehwlib: Adjusted parsing of battery informationSlávek Banko2020-01-231-8/+24
| | | | | | | | | | | | + Added reading of estimated time to fully charged battery (time_to_full_now) The remaining time is calculated if the value is not provided in the battery information. If the battery does not provide charging current information, the estimated time to charge the battery cannot be calculated. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit ecd1e4bd401a00be11f4d8bbaff01718f29f9118)
* Redirect some headers noticed by the compilerMatías Fonzo2020-01-231-1/+1
| | | | | | | | | | | | /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h> /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/signal.h> to <signal.h> Note: <sys/signal.h> has been removed from the tdeio/tdeio/connection.cpp source - it was already declared. Signed-off-by: Matías Fonzo <[email protected]> (cherry picked from commit c2adce2e133c167567df8607a32a420a9825f695)
* Added support for XDG_PICTURES_DIR and XDG_TEMPLATES_DIR in TDE global settings.Michele Calgaro2020-01-122-3/+38
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit aca6b3d42409234a19e2910443d511328c0b025a)
* Fix handling of XDG directories in TDEConfigBase. This relates to issue #60.Michele Calgaro2020-01-121-6/+32
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 3a4f7f51cfb88ab6b34918e8f79dea027d02b411)
* tdehwlib: Fix parsing of CPU cores frequency informationSlávek Banko2020-01-091-77/+71
| | | | | | | | | | | | | | | | | + The current frequency is parsed from the scaling_cur_freq file If the current frequency is not found in /proc/cpuinfo, the attempt to read value from cpuinfo_cur_freq failed because only root can read this file. + The have_frequency flag is not set when parsing current frequency from sysfs Setting the have_frequency flag after parsing current frequency for the first core caused the current frequency not to be parsed for other cores. + Frequency characteristics are parsed for all cores The assumption that the frequency characteristics for all cores will be the same as the first core is no longer reliable. There are heterogeneous architectures - for example ARM big.LITTLE. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit ba82cdf5be78b46889dc0d1e3906e353489925ad)
* tdehw: Fix wrong merge location in prior commit.Slávek Banko2020-01-081-3/+3
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 8856d5dde1a086f94b6875fd96fa6d3e479de170)
* tdehwlib: Adjusted parsing of battery informationSlávek Banko2020-01-082-10/+36
| | | | | | | | | | | | | | | | | | | | | | | + Added initialization of all values Some batteries do not provide all values and, without initialization, values may contain dubious data. + Added reading of current battery capacity value in percent (capacity) Some batteries may provide the current capacity value in percent instead of the current energy value. + Added check whether the battery provides current energy value (charge_now or energy_now) The current energy is calculated if the value is not provided in the battery information. + Added reading of estimated time to empty battery (time_to_empty_now) The remaining time is calculated if the value is not provided in the battery information. If the battery does not provide charging current information, the estimated time to charge the battery cannot be calculated. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 86c1d896c748bf5117ccfe28b20e48a7e2a70c8d)
* tdehwlib: Classify the charger as an AC adapter, not as a battery.Slávek Banko2020-01-081-0/+1
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 3b0f07f2cdf3c5228b6d38b33fb5f2bc8fa0542d)
* Updated version number to R14.0.8 [DEVELOPMENT].Slávek Banko2020-01-021-2/+2
| | | | Signed-off-by: Slávek Banko <[email protected]>
* Update version number for R14.0.7 final release.r14.0.7Slávek Banko2019-12-181-1/+1
| | | | Signed-off-by: Slávek Banko <[email protected]>
* Fix FTBFS for build without tdehwlib.François Andriot2019-12-041-0/+4
| | | | | | Signed-off-by: François Andriot <[email protected]> Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 82e214c84f333e6b22093ab8ff5afe53aa732cc8)
* Replace Qt branding with TQt ones.Chris2019-08-111-1/+1
| | | | | Signed-off-by: Chris <[email protected]> (cherry picked from commit 038c996bec50007829807a09bd1eeaea19516897)
* Security: remove support for $(...) in config keys with [$e] marker.Slávek Banko2019-08-092-32/+1
| | | | | | | | | | | | | | | | It is very unclear at this point what a valid use case for this feature would possibly be. The old documentation only mentions $(hostname) as an example, which can be done with $HOSTNAME instead. Note that $(...) is still supported in Exec lines of desktop files, this does not require [$e] anyway (and actually works better without it, otherwise the $ signs need to be doubled to obey tdeconfig $e escaping rules...). Based on KDE Frameworks 5 kconfig patch for CVE-2019-14744. This resolves issue #45. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 1074eb033654bd5462677ffe694eda7805390284)
* Replace Qt branding with TQt ones.Chris2019-07-241-1/+1
| | | | | Signed-off-by: Chris <[email protected]> (cherry picked from commit 90562f7b8a02f050dbe5fffec3d8c709b10713c4)
* Fix incorrect translations of language names.Anton Repko2019-07-211-1/+1
| | | | | Signed-off-by: Anton Repko <[email protected]> (cherry picked from commit dd36ea0a096fded7473ad4e64bd88252737012fe)
* Fix incorrect translations of language names.Anton Repko2019-07-211-2/+2
| | | | | Signed-off-by: Anton Repko <[email protected]> (cherry picked from commit eeb8782f05517d4cbcfb059ff855384dfd4c0383)
* Fix small typo in prior commit.Slávek Banko2019-07-131-1/+1
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit e1ef15d04d1a3f5fcfb07bcf99c6647580b32b6f)
* Update and promote new TDE websites, replace branding and do slight refactoring.Chris2019-07-131-3/+5
| | | | | Signed-off-by: Chris <[email protected]> (cherry picked from commit e53c04d5d3f91cc4857d647d0a39c350a1c9eed7)
* tdehw: avoid crashing kded when using udisks/udisks2 to operate onMichele Calgaro2019-07-071-0/+6
| | | | | | | drives that contain dashes. This relates to issue #32. Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 32566accdab31f598381e7e68330055f4a7178f1)
* tdehw: improved code for mount table.Michele Calgaro2019-07-052-20/+18
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 09835dceb73b0e814fb7b2e915b8055d67fa83c9)
* Added timestamp to debug backend (kdDebug, kdWarning, ...).Michele Calgaro2019-04-271-5/+7
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 0e7f9b8db10ef4c4fbc414bf2c6d804265c54ca4)
* Updated version number to R14.0.7 [DEVELOPMENT].Slávek Banko2019-03-311-2/+2
| | | | Signed-off-by: Slávek Banko <[email protected]>
* Fix CMake build dependencies for tests.Slávek Banko2019-03-031-0/+6
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 8fc2a6ca26ff8a6aaffc57357be865a8dcfecbd8)
* Removed "DEVELOPMENT" from TDE version in preparation for R14.0.6 release.Michele Calgaro2019-03-031-1/+1
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* tdehwlib: Fix the flag setting whether the storage device contains the file ↵Slávek Banko2019-02-271-1/+1
| | | | | | | | | system. This resolves bug 2232, bug 2607 and bug 2946. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit dfe3c9649f649f2dbd7eac60e3847d4e978e24f4)
* Use system libdir when searching for dynamically loaded libraries.Slávek Banko2019-02-271-4/+4
| | | | | | | This prevents finding an incorrect architecture on multi-arch systems. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 8a859540c3cb306844288144a06028dc302408d6)
* Fixed support for logind power state calls.Michele Calgaro2019-02-241-35/+34
| | | | | | | This resolves bug 2661 and bug 2975. Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit c49ee53043b73fac7fe7e956360f1e3cdc342c6e)
* Conversion exitkde -> exittde in knotify.evertsrc file. This relates toMichele Calgaro2018-11-021-1/+1
| | | | | | | bug 2283. Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 75d48a810c74c63d71058df44a7d70ed4ba1c28e)
* Updated version number to R14.0.6 [DEVELOPMENT].Michele Calgaro2018-08-161-2/+2
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Revert "Revert "Fix bug reports link in about dialog""Michele Calgaro2018-07-261-2/+4
| | | | | | | The reversion was done by mistake and inadvertently. Sorry for the mess :-( This reverts commit dcb480334c2e8a53fd5ca421b6bd686ea594d4ac.
* Removed "DEVELOPMENT" from TDE version in preparation for R14.0.5Michele Calgaro2018-07-261-1/+1
| | | | | | release (this time ok). Signed-off-by: Michele Calgaro <[email protected]>
* Revert "Removed "DEVELOPMENT" from TDE version in preparation for R14.0.5"Michele Calgaro2018-07-261-1/+1
| | | | | | due to unwanted change inclusion. This reverts commit 398bc87ef9d0ca9264b2d8bce7b8c2e3f134f49c.
* Revert "Fix bug reports link in about dialog"Michele Calgaro2018-07-261-4/+2
| | | | This reverts commit 69fc44f5d55b813aeeb0c06473ceede28400e7bf.
* Removed "DEVELOPMENT" from TDE version in preparation for R14.0.5Michele Calgaro2018-07-261-1/+1
| | | | | | release. Signed-off-by: Michele Calgaro <[email protected]>
* Fix bug reports link in about dialogSlávek Banko2018-06-301-2/+4
| | | | | | | | Update bug reports url to bugs.trinitydesktop.org This resolves bug 2935 Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit aa83c86cd30e77bad7fdb2b047ce256a24c883b5)
* Add search for utempter helperSlávek Banko2018-02-131-2/+2
| | | | | | | This resolves Bug 2841 Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit a14adb9ab9c50cbcd95a2d2e3f42c41fecf73fb0)
* Fix crash in tdehwlib if /sys/devices/system/cpu/cpu* is not accessibleSlávek Banko2017-09-231-3/+5
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 051acc7df5ff02d7bb1ad92b9be95efdc553d6c0)
* Add brightness keys supportRoman Savochenko2017-07-311-0/+10
| | | | | | | This relates to bug 2781 Signed-off-by: Roman Savochenko <[email protected]> (cherry picked from commit 4dd179aaa3f53335428c2fda5b3d356d19349f28)
* tdecore/tdeconfig_compiler: Always use tqt names of objects in the generated ↵Slávek Banko2017-07-221-9/+9
| | | | | | | files Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 68d315af1010f322cfffe58e0c2450736c4638ee)
* tdehwlib: Use TDENetworkDevice in TDENetworkConnectionManager instead of MAC ↵Slávek Banko2017-06-175-159/+51
| | | | | | | | | | | | | | | | | | address Use interface name in TDENetworkConnectionManager_BackendNM instead of MAC address This relates to bug 2748 The name of the network interface seems to be a more stable identifier than the MAC address because the MAC address can be changed easily or even automatically - see randomization of MAC addresses on wireless interfaces. Therefore, the use of the MAC address as a network interface identifier was abandoned. Beware, this change is an API / ABI change! However, most changes are internal and the only one affected is application TDENetworkManager. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit e0fd34a1bd2c6412171bcceb19520d129bbcb66d)
* tdehwlib: Add a rule for classifying parport deviceSlávek Banko2017-06-171-1/+2
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit eb6f8213d42aac2911c7b8880628c786b0223935)
* tdehwlib: Add a rule for classifying remote control devicesSlávek Banko2017-06-171-0/+4
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit cc4f1996df344ff06b34931a362037af25a66ef9)
* tdehwlib: Allow to gather connection information on virtual net devicesSlávek Banko2017-06-171-1/+2
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit d1280c31d9394e157c10d1d9a493763f03c3d285)
* tdehwlib: Allow to classify virtual devices by subsystemSlávek Banko2017-06-171-3/+3
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit a73511a98d46bd9cceff8da7819b8ab523b9ad6c)
* Fix memory leak after processing udev_monitorSlávek Banko2017-03-251-0/+3
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit d2b61ae9dac0e38c8f2853a41a3fb194fd794cf7)
* Fix memory leak after processing udev_deviceSlávek Banko2017-03-251-0/+2
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 1a5bc0e4ffef4e8baef9f3554ba3184fbc674211)
* Fix memory leak after use XGetAtomNameSlávek Banko2017-03-251-2/+5
| | | | | Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit ab525f2baada44f6dd8c80970c2875a0b19b3a05)