summaryrefslogtreecommitdiffstats
path: root/tdecore
Commit message (Collapse)AuthorAgeFilesLines
* Removed dbus access rules for invalid "send_destination".Slávek Banko2021-02-091-16/+0
| | | | | | | | | | For the tde_dbus_hardwarecontrol daemon, the destination is always "org.trinitydesktop.hardwarecontrol", which provides interfaces for individual components. The permissions for the standard dbus Introspectable and Properties calls are therefore set together on one destination, regardless of the interfaces for the individual components. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehwlib: Allow everyone to read the status of input switches.Slávek Banko2021-02-091-0/+4
| | | | | | | | | Reading the status of input switches seems safe so that it can be allowed to everyone. This will prevent the log from being filled with unauthorized access messages if the user is not a member of the plugdev group - this resolve issue TDE/tde#44. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdecore/tdehw: disable SW_RADIO switch if it's the same as SW_RFKILL_ALLAlexander Golubev2021-02-081-0/+4
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Fixed more uncrustify's code formatting offending files.Michele Calgaro2021-01-032-4/+47
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fixed second pass uncrustify's code formatting offending files.Michele Calgaro2020-12-272-14/+20
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop weird macro and use memcpy/memset instead.Michele Calgaro2020-12-201-99/+9
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fixed some uncrustify's code formatting offending files.Michele Calgaro2020-12-192-16/+12
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Renaming of files in preparation for code style tools.Michele Calgaro2020-12-062-5/+5
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* 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>
* Unify language names between all_languages.desktop in tdelibsSlávek Banko2020-11-241-8/+8
| | | | | | and entry.desktop files in tde-i18n. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* tdehw lib: fixed detection of mountable optical disks with incompleteMichele Calgaro2020-11-221-6/+8
| | | | | | partition table. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tdehw lib: reworked code for eject operation to support return type ↵Michele Calgaro2020-11-212-37/+66
| | | | | | TQStringVariantMap. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Added support for locking/unlocking of LUKS disks using pmount/pumount.Michele Calgaro2020-10-311-9/+65
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fixed mounting and unmounting of mapped storage devices.Michele Calgaro2020-10-106-27/+70
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fixed displaying of encrypted disks.Michele Calgaro2020-10-103-145/+71
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Added udisks2 support for unlocking/locking of encrypted disks.Michele Calgaro2020-10-104-24/+228
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* 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>