summaryrefslogtreecommitdiffstats
path: root/tdecore
Commit message (Collapse)AuthorAgeFilesLines
* tdehwlib: Add regular monitoring of power supply device status,Slávek Banko2020-10-071-1/+10
| | | | | | | | | to be able to generate a signal when the power state changes, if the signal is not generated from udev. This resolves issue TDE/tde#30. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Removed additional code formatting modelines.Michele Calgaro2020-09-272-2/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Removed code formatting modelines.Michele Calgaro2020-09-2758-74/+45
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* kpty: prevent to open pseudo ttys twice for openpty(3) platformsOBATA Akio2020-08-311-25/+38
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Add support of posix_openpt(2) to open master pseudo terminal deviceOBATA Akio2020-08-311-1/+5
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Add `getservbyname_r` prototype detection to CMakeOBATA Akio2020-08-171-2/+0
| | | | | | OpenBSD's prototype is differ than glibc's one, but it is declared. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Link external library for backtrace in tdecore.Slávek Banko2020-08-171-0/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Allow to use backtrace(3) external library for kdebugOBATA Akio2020-08-171-1/+5
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix to use configured openpty usability conditionOBATA Akio2020-08-111-1/+1
| | | | | | No reason to restrict only on OpenBSD and FreeBSD here. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fixed handling of svg images that caused an infinite loop (most notablyMichele Calgaro2020-07-061-2/+9
| | | | | | Kicker was hanging with 100% CPU usage). Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Simplify CMake rules for desktop file translations.Slávek Banko2020-06-251-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fixed up incomplete qtplugins -> tqtplugins renaming.Michele Calgaro2020-06-243-5/+5
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename tde-config option 'qtplugins' to 'tqtplugins'aneejit12020-06-232-4/+4
| | | | | | FindTDE.cmake was amended to pass an option of 'tqtplugins' to the tde-config command. The tde-config command is now modified to accept that parameter in place of 'qtplugins'. Signed-off-by: aneejit1 <aneejit1@gmail.com>
* Use private linking for exported CMake targets.Slávek Banko2020-06-121-3/+3
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Desktop file translations:Slávek Banko2020-06-074-14202/+23
| | | | | | | + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Drop explicit dependencies on dcopidl and dcopidl2cpp,Slávek Banko2020-06-071-1/+0
| | | | | | | because thanks to the replacement of KDE3 CMake macros with TDE macros, this is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Minor code refactoring of previous 2 commits.Michele Calgaro2020-06-071-13/+9
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdehwlib: Re-enable OpenSSL < 1.1 compatibilitySlávek Banko2020-06-051-0/+14
| | | | | | in tdecryptographiccarddevice. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Update for OpenSSL >= 1.1.0Timothy Pearson2020-06-031-2/+4
| | | | Signed-off-by: Timothy Pearson <kb9vqf@pearsoncomputing.net>
* Adjusted to TQPtrStack class. This is a minor change.Michele Calgaro2020-05-231-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* 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>
* Removed unnecessary comment.Michele Calgaro2020-03-121-2/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* 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>
* 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>
* 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>
* Remove remaining 'register' instructions.Michele Calgaro2020-02-202-3/+3
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* 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>
* Added back build options for UDISKS2, UDISKS and UDEVIL as requested byMichele Calgaro2020-02-103-22/+66
| | | | | | some users. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdehwlib: Add allowed access for plugdev group members.Slávek Banko2020-02-051-0/+28
| | | | | | This is useful if the system no longer supports policy at_console. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Removed explicit usage of the 'register' keyword.Michele Calgaro2020-01-309-25/+25
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix private API compatibility in TDEGlobalSettings.Slávek Banko2020-01-302-0/+13
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Make sure XDG folders are created prior to their usage.Michele Calgaro2020-01-291-1/+36
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Improved support for XDG folders without requiring xdg-user-dirs to be ↵Michele Calgaro2020-01-283-115/+167
| | | | | | installed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* 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>
* Redirect some headers noticed by the compilerMatías Fonzo2020-01-221-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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* Replace Qt branding with TQt ones.Chris2019-08-111-1/+1
| | | | Signed-off-by: Chris <xchrisx@uber.space>
* Security: remove support for $(...) in config keys with [$e] marker.Slávek Banko2019-08-082-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>
* Replace Qt branding with TQt ones.Chris2019-07-241-1/+1
| | | | Signed-off-by: Chris <xchrisx@uber.space>
* Fix incorrect translations of language names.Anton Repko2019-07-211-1/+1
| | | | Signed-off-by: Anton Repko <anton@a-repko.sk>
* Fix incorrect translations of language names.Anton Repko2019-07-211-2/+2
| | | | Signed-off-by: Anton Repko <anton@a-repko.sk>
* Removed sync dbus call code in tdenetworkmanager to align to latestMichele Calgaro2019-07-201-50/+0
| | | | | | dbus-1-tqt code. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix small typo in prior commit.Slávek Banko2019-07-131-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Update and promote new TDE websites, replace branding and do slight refactoring.Chris2019-07-131-3/+5
| | | | Signed-off-by: Chris <xchrisx@uber.space>