summaryrefslogtreecommitdiffstats
path: root/tdecore
Commit message (Collapse)AuthorAgeFilesLines
* Adjusted to TQPtrStack class. This is a minor change.Michele Calgaro2020-05-231-1/+1
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 12602af9287b055dcca2e469f07f554a2e223ffc)
* Check existing XDG folders before localization of the name.Slávek Banko2020-05-181-16/+48
| | | | | | | | | Some standard XDG folders may exist before the information is stored in ~/.config/user-dirs.dirs. Checking existing folders will prevent the creation of localized folders in addition to existing English ones. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit dc699b4fd407fe4e4f887b8f2b3f44a096c9f761)
* Update version number to R14.0.9 development version.Michele Calgaro2020-04-291-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Update version number for R14.0.8 final release.r14.0.8Slávek Banko2020-04-111-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Removed unnecessary comment.Michele Calgaro2020-03-121-2/+0
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 922e81bf4548dcaf96b4e6b4dcfd90f3390a76e5)
* tdehwlib: Add a read of the current switch state before invokingSlávek Banko2020-02-261-0/+1
| | | | | | | | | a switchChanged() signal for an EV_SW input event. This resolves the detection of closing the lid on some hardware. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 8bfa123fb66d2765b7cce78415831a499b4e9e9d)
* tdehwlib: Add event device classification according to the provided switches.Slávek Banko2020-02-231-3/+9
| | | | | | | | This will resolve event device detection on special hardware, for example, the LID switch on Pinebook Pro. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit f68fadda81d0e107d904a08db30bd8cccbbd1a21)
* Prevent tdenetworkmanager from crashing when using unmanaged devices.Michele Calgaro2020-02-221-37/+46
| | | | | | | This relates to bug 2929. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 3192a72a465d6e5051ab77a43e75716bb641441c)
* Remove remaining 'register' instructions.Michele Calgaro2020-02-202-3/+3
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 30606e55f1a570463d837cb110b0bd4adba6643b)
* tdehwlib: Unify units of battery values.Slávek Banko2020-02-161-8/+42
| | | | | | | | | | | The values from energy_* and power_now are converted from mWh and mW to Ah and A, so that the units are equal to values from charge_* and current_now. This resolves issue #68. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit c088fbf55bde4faa68a6d51ba44085bd97c1e4e2)
* tdehwlib: Add allowed access for plugdev group members.Slávek Banko2020-02-091-0/+28
| | | | | | | This is useful if the system no longer supports policy at_console. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 7f7f7322f9986a25ceef33dc2f47853846e2ec88)
* Removed explicit usage of the 'register' keyword.Michele Calgaro2020-01-309-25/+25
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit aa98dbfe80580169f3df12489a77e8b904a1d9b9)
* Fix private API compatibility in TDEGlobalSettings.Slávek Banko2020-01-302-0/+13
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (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 <michele.calgaro@yahoo.it> (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 <michele.calgaro@yahoo.it> (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 <slavek.banko@axis.cz> (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 <selk@dragora.org> (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 <michele.calgaro@yahoo.it> (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 <michele.calgaro@yahoo.it> (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 <slavek.banko@axis.cz> (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 <slavek.banko@axis.cz> (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 <slavek.banko@axis.cz> (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 <slavek.banko@axis.cz> (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 <slavek.banko@axis.cz>
* Update version number for R14.0.7 final release.r14.0.7Slávek Banko2019-12-181-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix FTBFS for build without tdehwlib.François Andriot2019-12-041-0/+4
| | | | | | Signed-off-by: François Andriot <francois.andriot@free.fr> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 82e214c84f333e6b22093ab8ff5afe53aa732cc8)
* Replace Qt branding with TQt ones.Chris2019-08-111-1/+1
| | | | | Signed-off-by: Chris <xchrisx@uber.space> (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 <slavek.banko@axis.cz> (cherry picked from commit 1074eb033654bd5462677ffe694eda7805390284)
* Replace Qt branding with TQt ones.Chris2019-07-241-1/+1
| | | | | Signed-off-by: Chris <xchrisx@uber.space> (cherry picked from commit 90562f7b8a02f050dbe5fffec3d8c709b10713c4)
* Fix incorrect translations of language names.Anton Repko2019-07-211-1/+1
| | | | | Signed-off-by: Anton Repko <anton@a-repko.sk> (cherry picked from commit dd36ea0a096fded7473ad4e64bd88252737012fe)
* Fix incorrect translations of language names.Anton Repko2019-07-211-2/+2
| | | | | Signed-off-by: Anton Repko <anton@a-repko.sk> (cherry picked from commit eeb8782f05517d4cbcfb059ff855384dfd4c0383)
* Fix small typo in prior commit.Slávek Banko2019-07-131-1/+1
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (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 <xchrisx@uber.space> (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 <michele.calgaro@yahoo.it> (cherry picked from commit 32566accdab31f598381e7e68330055f4a7178f1)
* tdehw: improved code for mount table.Michele Calgaro2019-07-052-20/+18
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 09835dceb73b0e814fb7b2e915b8055d67fa83c9)
* Added timestamp to debug backend (kdDebug, kdWarning, ...).Michele Calgaro2019-04-271-5/+7
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (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 <slavek.banko@axis.cz>
* Fix CMake build dependencies for tests.Slávek Banko2019-03-031-0/+6
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (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 <michele.calgaro@yahoo.it>
* 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 <slavek.banko@axis.cz> (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 <slavek.banko@axis.cz> (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 <michele.calgaro@yahoo.it> (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 <michele.calgaro@yahoo.it> (cherry picked from commit 75d48a810c74c63d71058df44a7d70ed4ba1c28e)
* Updated version number to R14.0.6 [DEVELOPMENT].Michele Calgaro2018-08-161-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* 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 <michele.calgaro@yahoo.it>
* 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 <michele.calgaro@yahoo.it>
* 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 <slavek.banko@axis.cz> (cherry picked from commit aa83c86cd30e77bad7fdb2b047ce256a24c883b5)