summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock
Commit message (Collapse)AuthorAgeFilesLines
* kdesktop: simplify lock process code. This ensure correct cleanup in case of ↵Michele Calgaro2025-09-042-61/+30
| | | | | | unexpected termination of the process. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* kdesktop: make sure the saver/lock remains responsive even when invokation ↵Michele Calgaro2025-09-042-41/+82
| | | | | | | | | | | | | | | | | | | | has failed. This could happen for example when a popup menu is open and the saver autolock timeout expires. Before this commit, both kdesktop and the X11 server would be in a dirty start and the saver/lock would either not work anymore or not hide the windows on the screen. It was necessary to kill and restart kdesktop to restore proper functionality. Note: the conditional return value of 0 or 12 at main.cpp:554 is a temporary measure to prevent the screen to forcibly lock if the user forgets a popup menu open and the saver timeout expires. Once the issue with input grabbing is solved, we can remove the conditional return value and simply return an error in such condition. Same applies to the variable trinity_desktop_lock_failed_grab, which will no longer be needed in such case.o Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* kdesktop: fix deadlock condition between kdesktop and kdesktop lock.Michele Calgaro2025-06-301-3/+0
| | | | | | | | | | | | The logic to handle communication with kdesktop_lock is now running completely in a separate thread and event loop, meaning the main GUI thread remains responsive all the time and can handle interaction with X11, DCOP and DBUS calls. This resolves issue #589. The commit also solves the first problem reported in issue #640 and loosely related to PR #526. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 409442c1ea8f167485642fbdb3494ff58900966f)
* Replace TRUE/FALSE with boolean values true/falseMichele Calgaro2025-05-272-61/+61
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 0a439ac80bdf6ffb9cac104ad3098a321ee0403c)
* Replace pthread and dl linking with cmake-based variablesMichele Calgaro2024-12-271-1/+1
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 3df12e580bf4a71991a80424b5375157f6bce3db)
* Replace Q_WS_* defines with TQ_WS_* equivalentsMichele Calgaro2024-02-141-1/+1
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 2d7d2122cf33aa713cebef95981305039c798003)
* Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT definesMichele Calgaro2024-01-166-64/+64
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a4241b7911d2e0b36edfb02f616b8b282050c0ec)
* Replace various '#define' strings - part 6Michele Calgaro2023-12-262-3/+3
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit c4a6487c827add9382001ff1892b8fb3bfa94682)
* Replace various tq* strings with TQt::* equivalentsMichele Calgaro2023-11-211-12/+12
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 100f977221b7319815eb9617f56a067cb0383853)
* Replace Qt with TQtMichele Calgaro2023-11-147-21/+21
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit b965cbac5b21345e9dfc768a7e4f660ffa4aa72f)
* Drop TQT_TQ*_OBJECT definesMichele Calgaro2023-08-081-1/+1
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 7bc43c68b3c095631628e1fb691242315687d15b)
* Replace Q_OBJECT with TQ_OBJECTMichele Calgaro2023-07-208-9/+9
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 814bf5fc4f403c13b0d8274c7f13fbef183c5c84)
* Removed HAL dependant code.Michele Calgaro2022-02-141-6/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Respect build option WITH_TDEHWLIB, otherwise it can lead to FTBFS in ↵Slávek Banko2021-05-183-14/+14
| | | | | | special cases. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Update CMake rules to change tdehw library to standalone.Slávek Banko2021-05-071-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fixed FTBFS when building tdelibs/tdebase without tdehw.Michele Calgaro2021-05-023-17/+55
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Avoid direct usage of tdeldap library. This allows to remove hard dependency ↵Michele Calgaro2021-04-222-5/+8
| | | | | | between packages. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Renaming of files in preparation for code style tools.Michele Calgaro2020-12-0710-3/+3
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Add FreeBSD / DragonFly specific /proc path for an executable file.Slávek Banko2020-05-261-2/+4
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* DilOS: use illumos specific /proc path for an executable fileDenis Kozadaev2020-05-261-0/+4
| | | | Signed-off-by: Denis Kozadaev <denis@dilos.org>
* kdesktop: Add missing initialization of sigset_t in kdesktop_lock. This ↵Slávek Banko2019-07-191-0/+1
| | | | | | | resolves bug 3025. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fixed use of SAK in lock process when autologin is used in TDM.Michele Calgaro2019-03-101-9/+7
| | | | | | This resolves bug 2945. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Add $DISPLAY to kdesktop_lock_lockfile file name.Slávek Banko2019-02-111-1/+1
| | | | | | | | This resolves bug 2998. Thanks to Russell Brown for analyzing the problem and propose a solution. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Prevent hard-coded "tde/" in #include ...Slávek Banko2019-01-302-1/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Improved previous commit using local8Bit() in place of utf8() when aMichele Calgaro2018-11-281-2/+2
| | | | | | | password is transmitted over pipes to other processes. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Adapted to new KPasswordEdit::password() signature. This relates to bug 2961.Michele Calgaro2018-11-283-5/+6
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* LIB_QT -> LIB_TQT conversion to align to updated admin moduleMichele Calgaro2018-09-171-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* kdesktop lockprocess: Removed unnecessary include linux/stat.hSlávek Banko2018-09-051-3/+0
| | | | | | This resolves FTBFS with glibc 2.28 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix kdesktop_lock screensaver stuttering on modern GPUsTimothy Pearson2018-06-241-1/+5
|
* Reset states in kdesktop-lock if startSaver failsSlávek Banko2018-05-261-0/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Write more details when kdesktop lock fails to grab input devicesSlávek Banko2016-09-111-0/+6
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Disable card-based login if Kerberos support was disabled at compile timeTimothy Pearson2016-09-061-1/+4
|
* Do not start card authentication unless PKCS logins were enabledTimothy Pearson2016-09-062-1/+15
| | | | Rename UserList class in kgreeter.cpp to avoid conflict with TDE LDAP library class name
* Fix cryptographic card login processTimothy Pearson2015-10-021-10/+21
|
* Move VT switch on card insertion to cryptocardwatcher processTimothy Pearson2015-10-011-15/+0
|
* Use DM library in tdmtsak instead of making command line callsTimothy Pearson2015-09-291-1/+1
|
* Add new hardware device tray applicationTimothy Pearson2015-09-211-6/+6
| | | | Allow removable media action request popups to be suppressed
* Fix card unlockTimothy Pearson2015-09-192-4/+15
|
* Streamline cryptographic card logon processTimothy Pearson2015-09-183-7/+39
|
* Stabilize cryptographic card loginTimothy Pearson2015-09-182-5/+39
| | | | Fix some coding style issues
* Add initial cryptographic card login supportTimothy Pearson2015-09-175-20/+181
| | | | Tested with themed greeter and SAK disabled
* Fix the most egregious style guide violations in the remaining kdesktop_lock ↵Timothy Pearson2015-09-045-608/+612
| | | | | | source files No functional changes were made to the source
* Fix the most egregious style guide violations in the main kdesktop_lock ↵Timothy Pearson2015-09-042-1734/+1725
| | | | | | source files No functional changes were made to the source
* Fix the most egregious style guide violations in the kdesktoplock plugin sourcesTimothy Pearson2015-09-0410-1105/+1134
| | | | No functional changes were made to the source
* Fix FTBFS on freebsdSlávek Banko2015-06-121-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Do not unblock signals in main thread when waiting for kdesktop_lock responseTimothy Pearson2015-04-131-1/+0
| | | | This prevents incorrect cancellation of internal xcb poll() methods and subsequent deadlock
* Fix ommited call fullyOnline() in kdesktop_lockSlávek Banko2015-04-131-0/+1
| | | | | | This relates to Bug 2422 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Ensure desktop is completely hidden before sending fullyOnline()Timothy Pearson2015-04-131-2/+2
| | | | Do not block kdesktop process while waiting for kdesktop_lock to engage prior to VT switch/new VT requests made from within kdesktop
* Fix long-standing inverted signal mask in kdesktop_lock initial sigsuspendTimothy Pearson2015-04-122-45/+55
| | | | Prevent helper thread termination signal from errantly being handled by main thread
* Remove call to pthread_cancel() in kdesktop_lockTimothy Pearson2015-04-123-3/+29
| | | | This resolves a sporadic deadlock during kdesktop_lock termination