Commit Graph

793 Commits (be8ea9c41a14c8b1f8624f238b37f78043022b83)
 

Author SHA1 Message Date
OBATA Akio be8ea9c41a
kpty: prevent to open pseudo ttys twice for openpty(3) platforms
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 8f7371cddf)
4 years ago
OBATA Akio 1d9cf8e717
Add support of posix_openpt(2) to open master pseudo terminal device
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 8e542575e0)
4 years ago
OBATA Akio 35bff96a9c
Add a knob to use fixed path `iceauth` tool
`system()` and `popen()` may unsafe unless using absolute command path.
Rely on PATH environment variable set by users may result in unwanted tool.

Signed-off-by: OBATA Akio <obache@wizdas.com>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ac8c8ca54a)
4 years ago
OBATA Akio f250423e9d
Fix to set DCOP_PATH properly
It is only used in dcop module and empty is unwanted situation,
so properly define it in dcop/CMakeLists.txt.
Rerevant header generation is also moved to there, and prevent
to define in main config.h file too.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 56c5973b6b)
4 years ago
OBATA Akio b92175e2a3
Improve progname detection portability
`getprogname()` of FreeBSD is based on NetBSD's one, no reason to
prevent using it on NetBSD.
glibc also has own special variable for progname.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 965a808b91)
4 years ago
OBATA Akio 3242ddae6c
Add `getservbyname_r` prototype detection to CMake
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 6886dd7e96)
4 years ago
OBATA Akio bdf8756ae1
Fix to declare missing `snprintf` prototype at correct place
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit f65c9e6665)
4 years ago
OBATA Akio 8e4dc61208
Fix to declare vsnprintf prototype with detected condition
It was introduced in HP-UX 10.20 (undocumented) and suppoted in 10.30 and later,
so no need to declare it on HP-UX unconditionally.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 76a04f5fce)
4 years ago
OBATA Akio 961a3aac69
Fix to detect vsnprintf prototype properly
From the standard sepc, <stdio.h> is required in addition to <stdarg.h>

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit cc7cd83235)
4 years ago
Slávek Banko 0ac62424d2
Link external library for backtrace in tdecore.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 59debdf4f0)
4 years ago
OBATA Akio 3241cab0cf
Allow to use backtrace(3) external library for kdebug
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 2167207adc)
4 years ago
Slávek Banko 75aaa51fe2
Fix FTBFS due to unnamed unused arguments in C sources in a recent commit.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 1b2d3b15f4)
4 years ago
OBATA Akio e83b6fdca0
Add LOCAL_PEEREID sockopt support for peer socket uid check
It is supported on NetBSD 5 and later.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 7827038ab4)
4 years ago
OBATA Akio a9e9cfcd54
Fix missing argments for drive parse filter on lpr
It was extended for compressed PPD support, but not refrected to lpr parts.

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 15116d8f64)
4 years ago
OBATA Akio c2b391d828
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)
4 years ago
gregory guy f65dc75bca
fix FTBFS, error: ‘dup’ was not declared in this scope
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit 88428d3b51)
4 years ago
Michele Calgaro 02424237c8
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)
4 years ago
aneejit1 71c0596f00
Missing glib link directories
This resolves bug 3135

Signed-off-by: aneejit1 <aneejit1@gmail.com>
(cherry picked from commit 2c6417b8d6)
4 years ago
aneejit1 fb7b26151d
avahi-tqt include/link directories missing
Signed-off-by: aneejit1 <aneejit1@gmail.com>
(cherry picked from commit 86df09d798)
4 years ago
Slávek Banko 610545c103
Use target names for commands instead of full paths.
When using target names for commands, CMake automatically resolves
the necessary dependencies without having to specify them in the
CMakeLists.txt source code or in the common TDE CMake module.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 98436f882d)
4 years ago
Slávek Banko d37bb843d1
Use private linking for exported CMake targets.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 158b6e1152)
4 years ago
Slávek Banko d336392f8f
For templates from CMake, use the TDE CMAKE TEMPLATES variable.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 080c061b15)
4 years ago
Slávek Banko 345f44fb93
dcopidlng fixes:
+ do not skip an empty class if it is declared with K_DCOP

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 234c903a9b)
4 years ago
Slávek Banko b2ff598b34
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)
4 years ago
Slávek Banko bb46328fb4
dcopidlng fixes:
+ includes may use quotation marks
+ argument types can contain multiple words
+ avoid use long, short, int or char type as the argument name
+ avoid use type as the argument name if the const qualifier is used
+ use long notation of int types
+ the arguments can be nameless
+ return types can have qualifiers
+ do not warn on inherit of the DCOPObject and TQObject classes
+ the documentation comment does not have to end on a separate line

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 49614d38c9)
4 years ago
Slávek Banko 2ad5c999a7
Enable the use of dcopidlng during build tdelibs.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ef23612c56)
4 years ago
Slávek Banko eba282f397
Fix typo in the SSL library check rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit aa244c3700)
4 years ago
Slávek Banko f659403a3a
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)
4 years ago
Michele Calgaro b34eba6147
KJobViewer: make sure the printer lists is correctly updated when printers are added or removed. This relates to bug 1362.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 69c2d469b8)
4 years ago
Michele Calgaro df6c901347
Fixed unresponsive behavior of the shortcut setting dialog in recent
ditros. This resolves bug 2955.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8ea3d4dd87)
4 years ago
Michele Calgaro a860d82bef
kjobviewer: fixed initial value of KeepWindow checkbox. This was causing KJobViewer to not autostart unless the user first toggled the checkbox at least once. Relates to bug 1362.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a57ae64c11)
4 years ago
Michele Calgaro 188e2b9e2d
Remove remaining 'register' instructions.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 30606e55f1)
4 years ago
Michele Calgaro 58b490adcc
Security: remove support for $(...) in KRun which could have allowed
execution of malicious code. This is similar to issue #45 for .desktop
files.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8b8f5064f7)
4 years ago
Michele Calgaro 5523d65792
Removed kerry related code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 94515be234)
4 years ago
Michele Calgaro e58c536dd1
Removed beagle related code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit e5256a1bd6)
4 years ago
Slávek Banko fbd64ec386
Improve folder icons on the speedbar.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 017a50624b)
4 years ago
Michele Calgaro 5dad8abdc3
KJobviewer: keep "permanent window" option across sessions.
Taken from https://bugs.trinitydesktop.org/show_bug.cgi?id=1362 proposed
patch.

Signed-off-by: Roman Savochenko <roman@roman.home>
(cherry picked from commit 9dc23edee3)
4 years ago
Michele Calgaro 05dbf5c0b1
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit aa98dbfe80)
4 years ago
Slávek Banko 119bb12503
Fix private API compatibility in TDEGlobalSettings.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f29aa92d38)
4 years ago
Michele Calgaro b3a875f92e
Make sure XDG folders are created prior to their usage.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit de79e754fa)
4 years ago
Michele Calgaro 54800d9de6
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)
4 years ago
Matías Fonzo d5b27c1f51
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)
4 years ago
Matías Fonzo 319d2b0943
Added missing headers for tdeinit/start_tdeinit.c
Error found when compiling against GCC9+Musl:

Scanning dependencies of target start_tdeinit
[ 51%] Building C object tdeinit/CMakeFiles/start_tdeinit.dir/start_tdeinit.c.o
/usr/src/qi/build/tdelibs-trinity-14.0.7/tdeinit/start_tdeinit.c: In function ‘set_protection’:
/usr/src/qi/build/tdelibs-trinity-14.0.7/tdeinit/start_tdeinit.c:47:16: error: storage size of ‘st’ isn’t known
   47 |    struct stat st;
      |                ^~
/usr/src/qi/build/tdelibs-trinity-14.0.7/tdeinit/start_tdeinit.c:51:9: warning: implicit declaration of function ‘lstat’ [-Wimplicit-function-declaration]
   51 |    if ( lstat (buf, &st) == 0) {
      |         ^~~~~
make[2]: *** [tdeinit/CMakeFiles/start_tdeinit.dir/build.make:63: tdeinit/CMakeFiles/start_tdeinit.dir/start_tdeinit.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:10421: tdeinit/CMakeFiles/start_tdeinit.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Signed-off-by: Matías Fonzo <selk@dragora.org>
(cherry picked from commit 8d74c9c44f)
4 years ago
Matías Fonzo a1d5228ba2
Use the correct macros isnan, isinf for libc compatibility
Changes related to this commit:

- Clean up #if mess.

- Use unconditionally the correct macros isnan, isinf.

- Remove redudant macros from the build system.

Signed-off-by: Matías Fonzo <selk@dragora.org>
(cherry picked from commit 8ae17a5d9d)
4 years ago
Matías Fonzo 7fe5760c2a
Fix LibreSSL detection at tdeio/kssl/
Signed-off-by: Matías Fonzo <selk@dragora.org>
(cherry picked from commit aa9b9581a9)
4 years ago
Slávek Banko 46ecddaeff
Fix building with avahi support
+ Avahi detection was not performed at all
+ Added missing avahi-client detection
+ Fixed FTBFS in avahi related code

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 281e2da7f1)
4 years ago
Michele Calgaro a9bf439608
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)
4 years ago
Michele Calgaro fb65a4b212
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)
4 years ago
TDE Gitea f2c4b9b2fc Reset submodule main/core/tdelibs/cmake to latest HEAD 4 years ago
TDE Gitea becb8f7b92 Reset submodule main/core/tdelibs/cmake to latest HEAD 4 years ago