summaryrefslogtreecommitdiffstats
path: root/tdecore
Commit message (Collapse)AuthorAgeFilesLines
* Added support for locking/unlocking of LUKS disks using pmount/pumount.Michele Calgaro2020-10-311-9/+65
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Fixed mounting and unmounting of mapped storage devices.Michele Calgaro2020-10-106-27/+70
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Fixed displaying of encrypted disks.Michele Calgaro2020-10-103-145/+71
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Added udisks2 support for unlocking/locking of encrypted disks.Michele Calgaro2020-10-104-24/+228
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* 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 <[email protected]>
* Removed additional code formatting modelines.Michele Calgaro2020-09-272-2/+1
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Removed code formatting modelines.Michele Calgaro2020-09-2758-74/+45
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* kpty: prevent to open pseudo ttys twice for openpty(3) platformsOBATA Akio2020-08-311-25/+38
| | | | Signed-off-by: OBATA Akio <[email protected]>
* Add support of posix_openpt(2) to open master pseudo terminal deviceOBATA Akio2020-08-311-1/+5
| | | | Signed-off-by: OBATA Akio <[email protected]>
* 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 <[email protected]>
* Link external library for backtrace in tdecore.Slávek Banko2020-08-171-0/+1
| | | | Signed-off-by: Slávek Banko <[email protected]>
* Allow to use backtrace(3) external library for kdebugOBATA Akio2020-08-171-1/+5
| | | | Signed-off-by: OBATA Akio <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* Simplify CMake rules for desktop file translations.Slávek Banko2020-06-251-1/+1
| | | | Signed-off-by: Slávek Banko <[email protected]>
* Fixed up incomplete qtplugins -> tqtplugins renaming.Michele Calgaro2020-06-243-5/+5
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* 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 <[email protected]>
* Use private linking for exported CMake targets.Slávek Banko2020-06-121-3/+3
| | | | Signed-off-by: Slávek Banko <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* Minor code refactoring of previous 2 commits.Michele Calgaro2020-06-071-13/+9
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* tdehwlib: Re-enable OpenSSL < 1.1 compatibilitySlávek Banko2020-06-051-0/+14
| | | | | | in tdecryptographiccarddevice. Signed-off-by: Slávek Banko <[email protected]>
* Update for OpenSSL >= 1.1.0Timothy Pearson2020-06-031-2/+4
| | | | Signed-off-by: Timothy Pearson <[email protected]>
* Adjusted to TQPtrStack class. This is a minor change.Michele Calgaro2020-05-231-1/+1
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* 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 <[email protected]>
* Removed unnecessary comment.Michele Calgaro2020-03-121-2/+0
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* Prevent tdenetworkmanager from crashing when using unmanaged devices.Michele Calgaro2020-02-221-37/+46
| | | | | | This relates to bug 2929. Signed-off-by: Michele Calgaro <[email protected]>
* Remove remaining 'register' instructions.Michele Calgaro2020-02-202-3/+3
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* 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 <[email protected]>
* Added back build options for UDISKS2, UDISKS and UDEVIL as requested byMichele Calgaro2020-02-103-22/+66
| | | | | | some users. Signed-off-by: Michele Calgaro <[email protected]>
* 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 <[email protected]>
* Removed explicit usage of the 'register' keyword.Michele Calgaro2020-01-309-25/+25
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Fix private API compatibility in TDEGlobalSettings.Slávek Banko2020-01-302-0/+13
| | | | Signed-off-by: Slávek Banko <[email protected]>
* Make sure XDG folders are created prior to their usage.Michele Calgaro2020-01-291-1/+36
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Improved support for XDG folders without requiring xdg-user-dirs to be ↵Michele Calgaro2020-01-283-115/+167
| | | | | | installed. Signed-off-by: Michele Calgaro <[email protected]>
* 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]>
* 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 <[email protected]>
* 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]>
* 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]>
* 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]>
* tdehw: Fix wrong merge location in prior commit.Slávek Banko2020-01-081-3/+3
| | | | Signed-off-by: Slávek Banko <[email protected]>
* 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]>
* 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]>
* 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]>
* Replace Qt branding with TQt ones.Chris2019-08-111-1/+1
| | | | Signed-off-by: Chris <[email protected]>
* 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 <[email protected]>
* Replace Qt branding with TQt ones.Chris2019-07-241-1/+1
| | | | Signed-off-by: Chris <[email protected]>
* Fix incorrect translations of language names.Anton Repko2019-07-211-1/+1
| | | | Signed-off-by: Anton Repko <[email protected]>