summaryrefslogtreecommitdiffstats
path: root/tdecore
Commit message (Collapse)AuthorAgeFilesLines
* Fixed more uncrustify's code formatting offending files.Michele Calgaro2021-01-032-4/+47
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 05ee12e2df827059e6f1d01524c19905501cf105)
* Fixed second pass uncrustify's code formatting offending files.Michele Calgaro2020-12-272-14/+20
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 9468d05e3d2c56d4287ef464a31f21a689ad7e14)
* Drop weird macro and use memcpy/memset instead.Michele Calgaro2020-12-201-99/+9
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 60ef8289ae01945f48aefd2e03cf1abead4d177d)
* Fixed some uncrustify's code formatting offending files.Michele Calgaro2020-12-192-16/+12
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 491e1c72c7e2a19b58772fd285284e974d489501)
* Renaming of files in preparation for code style tools.Michele Calgaro2020-12-062-5/+5
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 4f99f868f09bbffa2e15733b8b7c78eba07a199e)
* Update translation template.Automated System2020-11-251-0/+2
|
* Add CMakeL10n rules to update all_languages.desktopSlávek Banko2020-11-251-0/+68
| | | | | | | according to the entry.desktop files from tde-i18n. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit cb418ed3fd61c1ab6496861df597bb1b26d412dc)
* Unify language names between all_languages.desktop in tdelibsSlávek Banko2020-11-251-8/+8
| | | | | | | and entry.desktop files in tde-i18n. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e659dfe3b0e466f8da2dc634ed0e88d9df2e9a13)
* tdehw lib: fixed detection of mountable optical disks with incompleteMichele Calgaro2020-11-241-6/+8
| | | | | | | partition table. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 99b855062b2a684a88b4c2b85a4a548ce66793be)
* Update version number to R14.0.10.Slávek Banko2020-11-041-2/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Update version number for R14.0.9 final release.r14.0.9Slávek Banko2020-10-171-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* 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> (cherry picked from commit fb1316c785f2e026316a48b7cade322026490ee2)
* Removed additional code formatting modelines.Michele Calgaro2020-09-272-2/+1
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c07a6bab9d188f08c89696a415983f430412b21d)
* Removed code formatting modelines.Michele Calgaro2020-09-2758-74/+45
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ed8e30bc6dd18716b42087183e57a481d6ec5fa4)
* kpty: prevent to open pseudo ttys twice for openpty(3) platformsOBATA Akio2020-08-311-25/+38
| | | | | Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 8f7371cddfa402a5561f46007985832b32383728)
* 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> (cherry picked from commit 8e542575e044baf23ae636d32f1c6d4e3b8dea18)
* 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> (cherry picked from commit 6886dd7e96d475b64ac3c41a96a759c7d5fa2be9)
* Link external library for backtrace in tdecore.Slávek Banko2020-08-171-0/+1
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 59debdf4f0f76222d69ad4f64c38f85f5d08313b)
* Allow to use backtrace(3) external library for kdebugOBATA Akio2020-08-171-1/+5
| | | | | Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 2167207adc49b498536a5a8533c27fc67e0c6e9c)
* Fix to use configured openpty usability conditionOBATA Akio2020-08-121-1/+1
| | | | | | | No reason to restrict only on OpenBSD and FreeBSD here. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 12364c9cc38c1561e5c0b2784c7ed6af4360cb74)
* 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> (cherry picked from commit ffe8e495d7e99cc2e235a5f5ac776b72a31627ff)
* Simplify CMake rules for desktop file translations.Slávek Banko2020-06-251-1/+1
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 42f3a62161d1b0c7047d1edfdcb8af72b7314f1b)
* Use private linking for exported CMake targets.Slávek Banko2020-06-121-3/+3
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 158b6e1152413e4fa973b70b7469bb1f256a1f38)
* 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> (cherry picked from commit 4b7a4e17362206fd2eade35ba947a850263b0ea1)
* 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> (cherry picked from commit c2b90055a581e9fb95a281fab53b6c56a96a4f2d)
* 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>