Commit Graph

483 Commits (a6be89461fec308f187f811ad952fc2b4019c561)

Author SHA1 Message Date
OBATA Akio a6be89461f
Allow to use backtrace(3) external library for kdebug
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 2167207adc)
5 years ago
OBATA Akio 24a2027ee7
Fix to use configured openpty usability condition
No reason to restrict only on OpenBSD and FreeBSD here.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 12364c9cc3)
5 years ago
Michele Calgaro 050589bc4f
Fixed handling of svg images that caused an infinite loop (most notably
Kicker was hanging with 100% CPU usage).

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ffe8e495d7)
5 years ago
Slávek Banko 3e4279ead3
Simplify CMake rules for desktop file translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 42f3a62161)
5 years ago
Slávek Banko fc2c3c9ca0
Use private linking for exported CMake targets.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 158b6e1152)
5 years ago
Slávek Banko 9756408b0e Desktop file translations:
+ 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 4b7a4e1736)
5 years ago
Slávek Banko 74f9c923f7
Drop explicit dependencies on dcopidl and dcopidl2cpp,
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 c2b90055a5)
5 years ago
Michele Calgaro e51e14cdd1
Adjusted to TQPtrStack class. This is a minor change.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 12602af928)
5 years ago
Slávek Banko 79bf82135e
Check existing XDG folders before localization of the name.
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 dc699b4fd4)
5 years ago
Michele Calgaro fe89ae7209
Update version number to R14.0.9 development version.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
Slávek Banko 527dcf77d4
Update version number for R14.0.8 final release.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Michele Calgaro 93e9da4a74
Removed unnecessary comment.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 922e81bf45)
5 years ago
Slávek Banko 2f2ed5c1ae
tdehwlib: Add a read of the current switch state before invoking
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 8bfa123fb6)
5 years ago
Slávek Banko 1945986691
tdehwlib: Add event device classification according to the provided switches.
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 f68fadda81)
5 years ago
Michele Calgaro f3cd325032
Prevent tdenetworkmanager from crashing when using unmanaged devices.
This relates to bug 2929.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 3192a72a46)
5 years ago
Michele Calgaro d94da50a46
Remove remaining 'register' instructions.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 30606e55f1)
5 years ago
Slávek Banko 6350327928
tdehwlib: Unify units of battery values.
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 c088fbf55b)
5 years ago
Slávek Banko a10cf06d1f
tdehwlib: Add allowed access for plugdev group members.
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 7f7f7322f9)
5 years ago
Michele Calgaro 41e0f335b5
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit aa98dbfe80)
5 years ago
Slávek Banko 9c1e136983
Fix private API compatibility in TDEGlobalSettings.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f29aa92d38)
5 years ago
Michele Calgaro d46ec74e77
Make sure XDG folders are created prior to their usage.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit de79e754fa)
5 years ago
Michele Calgaro ea1da131d3
Improved support for XDG folders without requiring xdg-user-dirs to be installed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 394c9f5c0e)
5 years ago
Slávek Banko 352be1b977
tdehwlib: Adjusted parsing of battery information
+ 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 ecd1e4bd40)
5 years ago
Matías Fonzo ee113c26fb
Redirect some headers noticed by the compiler
/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 c2adce2e13)
5 years ago
Michele Calgaro edab2eca49
Added support for XDG_PICTURES_DIR and XDG_TEMPLATES_DIR in TDE global settings.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit aca6b3d424)
5 years ago
Michele Calgaro 5e120c0e2c
Fix handling of XDG directories in TDEConfigBase. This relates to issue #60.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 3a4f7f51cf)
5 years ago
Slávek Banko ddf0666f4c
tdehwlib: Fix parsing of CPU cores frequency information
+ 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 ba82cdf5be)
5 years ago
Slávek Banko d51d6d349d
tdehw: Fix wrong merge location in prior commit.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8856d5dde1)
5 years ago
Slávek Banko 53381ab391
tdehwlib: Adjusted parsing of battery information
+ 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 86c1d896c7)
5 years ago
Slávek Banko 2e7ef95663
tdehwlib: Classify the charger as an AC adapter, not as a battery.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3b0f07f2cd)
5 years ago
Slávek Banko 22cc22b82f
Updated version number to R14.0.8 [DEVELOPMENT].
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Slávek Banko 6ef58927d2
Update version number for R14.0.7 final release.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
François Andriot c35e6e8cce
Fix FTBFS for build without tdehwlib.
Signed-off-by: François Andriot <francois.andriot@free.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 82e214c84f)
5 years ago
Chris 5551f81376
Replace Qt branding with TQt ones.
Signed-off-by: Chris <xchrisx@uber.space>
(cherry picked from commit 038c996bec)
6 years ago
Slávek Banko b992188d7d
Security: remove support for $(...) in config keys with [$e] marker.
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 1074eb0336)
6 years ago
Chris 5617d914f3
Replace Qt branding with TQt ones.
Signed-off-by: Chris <xchrisx@uber.space>
(cherry picked from commit 90562f7b8a)
6 years ago
Anton Repko 1a46b7dbd2
Fix incorrect translations of language names.
Signed-off-by: Anton Repko <anton@a-repko.sk>
(cherry picked from commit dd36ea0a09)
6 years ago
Anton Repko 9a830d4d8b
Fix incorrect translations of language names.
Signed-off-by: Anton Repko <anton@a-repko.sk>
(cherry picked from commit eeb8782f05)
6 years ago
Slávek Banko 543cffbeac
Fix small typo in prior commit.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e1ef15d04d)
6 years ago
Chris e0acaa2976
Update and promote new TDE websites, replace branding and do slight refactoring.
Signed-off-by: Chris <xchrisx@uber.space>
(cherry picked from commit e53c04d5d3)
6 years ago
Michele Calgaro c90f6c3e50
tdehw: avoid crashing kded when using udisks/udisks2 to operate on
drives that contain dashes. This relates to issue #32.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 32566accda)
6 years ago
Michele Calgaro 0f7cda9d52
tdehw: improved code for mount table.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 09835dceb7)
6 years ago
Michele Calgaro fe423b35a8
Added timestamp to debug backend (kdDebug, kdWarning, ...).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 0e7f9b8db1)
6 years ago
Slávek Banko 7150ed488d
Updated version number to R14.0.7 [DEVELOPMENT].
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 38601b30c9
Fix CMake build dependencies for tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8fc2a6ca26)
6 years ago
Michele Calgaro ca2507adc7
Removed "DEVELOPMENT" from TDE version in preparation for R14.0.6 release.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Slávek Banko 9ce98047ff
tdehwlib: Fix the flag setting whether the storage device contains the file system.
This resolves bug 2232, bug 2607 and bug 2946.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit dfe3c9649f)
6 years ago
Slávek Banko 33c3818ac5
Use system libdir when searching for dynamically loaded libraries.
This prevents finding an incorrect architecture on multi-arch systems.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8a859540c3)
6 years ago
Michele Calgaro 89609911f8
Fixed support for logind power state calls.
This resolves bug 2661 and bug 2975.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c49ee53043)
6 years ago
Michele Calgaro d5b109ab3d
Conversion exitkde -> exittde in knotify.evertsrc file. This relates to
bug 2283.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 75d48a810c)
6 years ago