Commit Graph

2625 Commits

Author SHA1 Message Date
Chase
f38cd20c5c dtmail: remove DEAD_WOOD code 2025-11-30 16:26:42 -07:00
Jon Trulson
e945fc8b08 Release 2.5.3 2025-11-25 13:09:08 -07:00
Chase
9d9f3f9380 dthelp/parser: use standard ctype case functions 2025-11-25 12:31:07 -07:00
Chase
48aaa75f11 dtfile: use sh instead of ksh for find command 2025-11-25 12:12:49 -07:00
Jon Trulson
76b99355ce fix: t_optmgmt: Incorrect options format
From a diff file provided by Mariusz Zynel:

    Every time, every dt program gives that error on its
    start. t_optmgmt() is called once in _tt_tli_set_nodelay(), as the
    name says, to set TCP_NODELAY option for ToolTalk connections.
2025-11-15 13:09:49 -07:00
Myrrh Periwinkle
9f0f015c4d libDtWidget: Do not mix wide and narrow operations on the same stream
The current behavior is not standards conformant, and will cause the
format operation to result in empty text as glibc fails any calls to
getwc against a narrow stream with WEOF. Additionally, narrow write
operations against a wide stream appears to bypass the buffer, causing
incorrect formatting results.

Fix this by changing all write operations against the reformatted output
file stream to be wide operations, and reopening the temporary input
file before performing any wide read operations.
2025-06-13 18:16:32 +07:00
b'Jon Trulson
bb0a127a84 Merge /u/runlevel5/cde/ branch print-help-gcc15 into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/75/
2025-04-16 18:35:44 +00:00
Trung Lê
37aaaf424e tt/mini_isam: explicitly declare compfunc parameters
qsort() needs compfunc(const void *, const void *) instead of (char *, char *)
2025-04-16 00:01:20 +10:00
Trung Lê
509c722936 tt/ttauth: Update print_help()
Ensure callers use 2 parameters for the call
2025-04-01 10:06:56 +11:00
Dark Ayron
f0be964d6c dtwm: add support for more mouse buttons
Some mice have more than 3 buttons. Although Xlib.h doesn't provide
definitions for these buttons, button 6 to 9 is reported through the
XButtonEvent struct.
This adds support for mapping actions to mouse button 6 to 9.
2025-03-19 09:47:12 -06:00
Jon Trulson
465b8461c6 tradcpp: fix bool issue with newer compilers (GCC 15)
tradcpp/bool.h used the wrong check for determining C99+ stdbool.h
support by the compiler.  Use __STDC_VERSION__ rather than __STDC__.
2025-03-11 09:21:35 -06:00
hyousatsu
38a1b9fcca dtwm: manage windows properly to avoid potential
segmentation faults.
2025-03-01 02:43:25 -05:00
Nilton Perim Neto
e4c1e173fa Made a workaround to not use the sh_access
The sh_access was defined to two arguments
Made a workaround to not use the sh_access
that was outputting the error.
Not ideal, but it will hopefully compile on Arch Linux

Also added mksh for compatibility
Ksh is unmaintained in the Arch User Repository

Signed-off-by: Nilton Perim Neto <niltonperimneto@gmail.com>
2025-02-03 14:47:17 -03:00
hyousatsu
fbc9488037 dtcreate: make pop-ups work properly. 2024-09-09 06:39:02 +00:00
hyousatsu
121510cb72 DtMmdb: fix a crash occurs when creating bookmark. 2024-07-21 00:43:27 +00:00
hyousatsu
f0123efa84 Fix some warnings. 2024-07-21 00:43:27 +00:00
hyousatsu
c79224b367 DtMmdb: replace ostring with std::string. 2024-07-16 09:05:46 +00:00
hyousatsu
ba49a9e161 dtdocbook: link to lmdb. 2024-07-16 09:05:45 +00:00
hyousatsu
c7ade43d86 DtMmdb: replace Berkeley DB with LMDB. 2024-07-16 09:05:38 +00:00
Jon Trulson
3fa42c44a8 dtcm: Chase FreeBSD src bb421be6c117 which moved ftime(3)
Patch from Cy Schubert:

FreeBSD bb421be6c117 moved ftime(3) from libcompat to libutil. This
results in the following error,

ld: error: undefined symbol: ftime
>>> referenced by getdate.c
>>>               libDtCmP_a-getdate.o:(cm_getdate) in archive
../libDtCmP/libDtCmP.a
>>> did you mean: ctime

Signed off by:	Cy Schubert <cy@FreeBSD.org>
2024-06-02 17:51:26 -06:00
Paul Ward
8479874104 dtterm: Fix title and icon Sun esc seqs 2024-03-02 12:29:50 -07:00
rhubarb-geek-nz
ca84b10135 init scripts from rhubarb-pi.sf.net 2024-01-11 02:30:07 +00:00
Patrick Georgi
f078df392a Add systemd service file for dtlogin
This automatically starts dtlogin and properly
supervises it.
2024-01-06 09:50:44 +01:00
Patrick Georgi
d8a43c0b49 DtTerm/TermPrim: check pointer before traversing 2024-01-05 18:44:19 -07:00
Patrick Georgi
c48ec3adff lib/DtTerm: Remove dead assignments, initializations and increments
This shouldn't change behavior (or even object code) at all because
those assignments are all without effect. Removing that code removes
noise which helps working with code analysis tools.
2024-01-05 18:44:19 -07:00
Patrick Georgi
a5b5eb0f80 lib/DtTerm: Fix copy&paste error
This avoids using an uninitialized variable by using the initialized
variable that is obviously the right one in the context.
2024-01-05 18:44:19 -07:00
Patrick Georgi
e2aa3e665b DtTerm/TermPrimUtil: Use mkstemp instead of mktemp 2024-01-03 22:51:58 +01:00
Patrick Georgi
9dca44513c DtTerm/TermPrimUtil: Use 6 'X's in mktemp template
Some implementations (e.g. glibc) require that, while implementations
that are fine with 5 of them still work the same (just with one more
constant letter)
2024-01-03 22:51:50 +01:00
hyousatsu
76812a9115 ksh93: fix a compilation error on 32-bit system. 2023-12-01 09:22:32 +00:00
Jon Trulson
e97d56562f Prepare 2.5.2 release 2023-11-18 15:38:09 -07:00
hyousatsu
615d9a3907 dtsession: fix a crash. 2023-08-16 23:18:47 -04:00
hyousatsu
b577546819 tt: make the ttserver process events properly. 2023-06-12 09:48:42 +00:00
hyousatsu
549b759c66 dtstyle: make the style manager recognize wheel mouse correctly. 2023-06-11 07:33:37 +00:00
Jon Trulson
ece21debbb .gitignore: add new locations of dtsession/dtlogin PAM files 2023-04-01 14:48:13 -06:00
hyousatsu
b979a073df dtwm: fix a segfault. 2023-03-28 02:16:17 +00:00
hyousatsu
760d36bfe9 dtlogin: use sessreg to manage utmp/wtmp. 2023-03-27 08:48:27 +00:00
hyousatsu
28277ce88e dtsession: change the maximum size of cover dialog to fullscreen. 2023-02-26 11:59:29 +00:00
hyousatsu
2351a19d7e dtwm: support _NET_WM_STATE_ABOVE and _NET_WM_STATE_BELOW. 2023-02-26 11:59:29 +00:00
hyousatsu
e22fd8d84f dtwm: optimize EWMH processing. 2023-02-26 11:59:21 +00:00
Jon Trulson
1f101d22f0 lib/DtHelp: strmove(): return memmove() result 2023-02-18 15:50:28 -07:00
Jon Trulson
61b58271f9 dticon, dtpad, dtterm: fix session save issues (sprintf bogosity)
Diff supplied by: Giacomo Comes <comes@naic.edu>
2023-02-18 15:40:08 -07:00
Jon Trulson
b909f1a9e8 dtksh: enable SHOPT_ECHOPRINT 2023-02-18 15:33:09 -07:00
Jon Trulson
61dbd624b2 dtfile/dterror.ds: fix script defines typo 2023-02-18 15:25:53 -07:00
Jon Trulson
d45a233e50 pgadmin.dt: set icon from pgadmin to pgadmin3 2023-02-18 15:16:14 -07:00
Jon Trulson
e76cd50d3c Add DesktopNames=CDE to cde.desktop
Suggestion from Giacomo Comes <comes@naic.edu>:

    In this way, after a login, the desktop manager will set the
    environment variables: XDG_CURRENT_DESKTOP and XDG_SESSION_DESKTOP
2023-02-18 15:13:11 -07:00
Cy Schubert
8a24d70d5e Fix build under LLVM15
Fix many -Wint-conversion errors such as the example below, including
an aso atomics error.

connect.c:87:12: error: incompatible pointer to integer conversion initializing 'LONG' (aka 'int') with an expression of type 'void *' [-Wint-conversion]
   DB_ADDR mdba = NULL;   /* db address of current member record */
           ^      ~~~~
2023-02-18 14:47:38 -07:00
Jon Trulson
65e8cf9019 Patch from Giacomo Comes: rename ksh manpage to ksh-cde
The man page dtksh.1 only refers to the dt extensions.  For options,
operands, input files, etc, such man page points to the (k)sh.1 man
page. Since the version of ksh installed with the OS is different from
the one used to build dtksh, the correct documantation of dtksh can be
found only in cde's ksh man page. To avoid any conflict or confusion,
my patch renames cde's ksh.1 as ksh-cde.1
2023-02-18 13:56:51 -07:00
Jon Trulson
02b4302a73 Apply various patches from Giacomo Comes <comes@naic.edu>
This makes certain changes if you are bold enough to use a different
installation prefix than /usr/dt:

- fix MANDIR output from dtsearchpath
- missing dtopn_* links
- /usr/dt/bin is always needed
- fix DTKORNSHELL output for dtlp
2023-02-04 13:03:49 -07:00
Peter Howkins
8dff0e37b7 (Pascal Stumpf) dtlogin: On OpenBSD start X as root (it drops privileges later) 2023-01-22 23:31:42 +00:00
Peter Howkins
3e50d92fbf (Pascal Stumpf) CDE doesn't provide the ksh binary, don't install the manpage for it 2023-01-22 23:27:24 +00:00