[cdesktopenv-devel] [PATCH] make ttsnoop build under autotools
Attempt #2, this time properly tested with parallel building Thank you for your time, -ChaseFrom 652de3d0cb01506d922538e0acaa1be4f51ab639 Mon Sep 17 00:00:00 2001 From: Chase Date: Wed, 10 Feb 2021 16:28:52 -0600 Subject: [PATCH] ttsnoop: make it build under autotools --- cde/.gitignore | 1 + cde/configure.ac | 2 + cde/programs/Makefile.am | 4 +- cde/programs/ttsnoop/Makefile.am | 178 +++ 4 files changed, 183 insertions(+), 2 deletions(-) create mode 100644 cde/programs/ttsnoop/Makefile.am diff --git a/cde/.gitignore b/cde/.gitignore index f3a8815d0..c08a0282a 100644 --- a/cde/.gitignore +++ b/cde/.gitignore @@ -7,6 +7,7 @@ # Backups and editor created backups *.bak +*.BAK *~ .depend diff --git a/cde/configure.ac b/cde/configure.ac index 800d03eb4..9d30ce995 100644 --- a/cde/configure.ac +++ b/cde/configure.ac @@ -613,6 +613,8 @@ programs/fontaliases/freebsd/C/Makefile programs/dtdspmsg/Makefile +programs/ttsnoop/Makefile + programs/dtimsstart/Makefile programs/dtpdm/Makefile diff --git a/cde/programs/Makefile.am b/cde/programs/Makefile.am index 4c3dcd435..0cd943da0 100644 --- a/cde/programs/Makefile.am +++ b/cde/programs/Makefile.am @@ -4,7 +4,7 @@ SUBDIRS = backdrops icons dsdm dtmail dtpad dtfile dtwm dtlogin \ dtsession dthello dtstyle dtexec dtdbcache dticon dtterm dtcalc \ dtaction dtspcd dtscreen dtksh dtcm dtsearchpath dtappbuilder palettes \ dtappintegrate dtprintegrate dtconfig dtcreate dtprintinfo fontaliases \ - dtdspmsg dtimsstart dtpdm dtsr dtpdmd types \ + dtdspmsg ttsnoop dtimsstart dtpdm dtsr dtpdmd types \ tttypes util dtopen localized dthelp nsgmls dtdocbook -# NOTYET =dtinfo ttsnoop +# NOTYET = dtinfo diff --git a/cde/programs/ttsnoop/Makefile.am b/cde/programs/ttsnoop/Makefile.am new file mode 100644 index 0..bbb52594a --- /dev/null +++ b/cde/programs/ttsnoop/Makefile.am @@ -0,0 +1,178 @@ +MAINTAINERCLEANFILES = Makefile.in + +appdefaultsdir = $(CDE_INSTALLATION_TOP)/app-defaults/C + +dist_appdefaults_DATA = Ttsnoop + +AB_MAKEFILES = \ + Makefile.aix \ + Makefile.hpux \ + Makefile.sunos \ + Makefile.linux \ + Makefile.freebsd \ + Makefile.netbsd \ + Makefile.openbsd + +DTCODEGENCAT = NLSPATH=$(top_builddir)/programs/dtappbuilder/src/abmf/dtcodegen.cat + +DTCODEGEN = $(DTCODEGENCAT) $(top_builddir)/programs/dtappbuilder/src/abmf/dtcodegen + +CLEANFILES = Ttsnoop .dtcodegen.log *.BAK *.delta *.patched $(AB_MAKEFILES) \ + *_stubs.C *_ui.c + +.NOTPARALLEL: + +bin_PROGRAMS = ttsnoop + +ttsnoop_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB) $(LIBTERM) + +BUILT_SOURCES = ttsnoop_ui.h apiTracer_ui.h ttChooser_ui.h patternProps_ui.h \ + stringChooser_ui.h messageProps_ui.h sessionChooser_ui.h \ + fileChooser_ui.h argChooser_ui.h callbackChooser_ui.h \ + ttsnoop.h + +ttsnoop_SOURCES = stringChooser_stubs.C ttChooser_stubs.C \ + ttsnoop_ui.c apiTracer_stubs.C \ + argChooser_stubs.C callbackChooser_stubs.C \ + fileChooser_stubs.C messageProps_stubs.C \ + patternProps_stubs.C sessionChooser_stubs.C \ + ttsnoop.C ttsnoop_stubs.C \ + apiTracer_ui.c argChooser_ui.c \ + callbackChooser_ui.c dtb_utils.c \ + fileChooser_ui.c messageProps_ui.c \ + patternProps_ui.c sessionChooser_ui.c \ + stringChooser_ui.cttChooser_ui.c \ + tt_c++.C DtTt.C + +ttsnoop_ui.c ttsnoop_ui.h ttsnoop_stubs.C: ttsnoop.bip ttsnoop.bil ttsnoop_stubs.C.src + $(CP) ttsnoop_stubs.C.src ttsnoop_stubs.c + -if [ ! -w ttsnoop_stubs.c ]; then \ + chmod +w ttsnoop_stubs.c; fi + $(DTCODEGEN) -changed -merge -p ttsnoop.bip ttsnoop.bil + $(RM) ttsnoop_stubs.C + mv ttsnoop_stubs.c ttsnoop_stubs.C + cat externC.h ttsnoop_ui.h closeBrace.h > ttsnoop_ui.h.patched + mv ttsnoop_ui.h.patched ttsnoop_ui.h + $(SED) \ + -e 's/^DtbTt/extern String snooperArgv[];DtbTt/' \ + -e 's/XmNheight, 257,//' \ + -e 's/XmNwidth, 580,//' \ + -e 's/XmNcolumns, 80,//' \ + -e 's/XmNrows, 24/DtNsubprocessArgv, snooperArgv/' \ + ttsnoop_ui.c > ttsnoop_ui.c.patched + mv ttsnoop_ui.c.patched ttsnoop_ui.c + +apiTracer_ui.c apiTracer_ui.h apiTracer_stubs.C: ttsnoop.bip apiTracer.bil apiTracer_stubs.C.src + $(CP) apiTracer_stubs.C.src apiTracer_stubs.c + -if [ ! -w apiTracer_stubs.c ]; then \ + chmod +w apiTracer_stubs.c; fi + $(DTCODEGEN) -changed -merge -p ttsnoop.bip apiTracer.bil + $(RM) apiTracer_stubs.C + mv apiTracer_stubs.c apiTracer_stubs.C + cat externC.h apiTracer_ui.h closeBrace.h > apiTracer_ui.h.patched + mv apiTracer_ui.h.patched apiTracer_ui.h + $(SED) -e 's/^DtbApi/extern String apiTracerArgv[];DtbApi/' \ + -e 's/XmNrows, 24/XmNrows, 24, DtNsubprocessArgv, apiTracerArgv/' \ + apiTracer_ui.c > apiTracer_ui.c.patched + mv apiTracer_ui.c.patched apiTracer_ui.c + +ttChooser_ui.c ttChooser_ui.h ttChooser_stubs.C: ttsnoop.bip ttChooser.bil ttChooser_stubs.C.src + $(CP) ttChooser_stubs.C.src ttChooser_stubs.c + -if [ ! -w ttChooser_stubs.c ]; then \ + chmod +w ttChooser_st
Re: [cdesktopenv-devel] Setting custom wallpaper on other workspaces
JPG and PNG will work now? (if Motif is built appropriately); that helps. The other thing that would help is a way to specify that specific backdrops should be centered or scaled rather than tiled; with that, it'd be fairly complete (except when one wants some animated program to provide a backdrop; I suppose there's a way to find the window ID of the backdrop, but that's a bit much; and not necessarily all such programs take an arbitrary window ID). > On Feb 10, 2021, at 07:08, Chase via cdesktopenv-devel > wrote: > > Hello, > Please take a look at the wiki article for backdrops: > https://sourceforge.net/p/cdesktopenv/wiki/Setting%20Your%20Own%20Backdrop/ > > > Thank you for your time, > -Chase > > ‐‐‐ Original Message ‐‐‐ > On Wednesday, February 10, 2021 4:02 AM, cyrus torros > wrote: > >> I am looking for a way to set a custom backdrop on workspaces 2, 3, >> and 4. Tools like nitrogen don't seem to be capable of it? Is it not >> possible/ >> >> cdesktopenv-devel mailing list >> cdesktopenv-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel > > > > > ___ > cdesktopenv-devel mailing list > cdesktopenv-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel > smime.p7s Description: S/MIME cryptographic signature ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Re: [cdesktopenv-devel] Setting custom wallpaper on other workspaces
Hello, Please take a look at the wiki article for backdrops: https://sourceforge.net/p/cdesktopenv/wiki/Setting%20Your%20Own%20Backdrop/ Thank you for your time, -Chase ‐‐‐ Original Message ‐‐‐ On Wednesday, February 10, 2021 4:02 AM, cyrus torros wrote: > I am looking for a way to set a custom backdrop on workspaces 2, 3, > and 4. Tools like nitrogen don't seem to be capable of it? Is it not > possible/ > > cdesktopenv-devel mailing list > cdesktopenv-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
Re: [cdesktopenv-devel] Setting custom wallpaper on other workspaces
CDE backdrops are managed normally by using dtstyle. They're slightly unusual XPM files (potentially with some colors mapped to the current "palette"). The usual CDE backdrops are NOT on the actual X11 root window, they're on a window overlaid on it, so tools that set the X11 root window contents will NOT produce a visible result on them. There is one exception: NoBackdrop; set that for the backdrop if you want the X11 root window (only one of those exists, so all workspaces set to NoBackdrop will show the same thing) to be visible in a workspace, and then familiar tools to set the X11 root window contents will work. That also applies to animated ones, like xearth with the appropriate options. If you want another backdrop, I think if you have NoBackdrop selected (applies to the current workspace unless you checked "Use this backdrop for all workspaces"), you can use usual tools that set the X11 root window. It is not impossible to convert a JPG or GIF (sized exactly to your screen size, otherwise it will tile to fill!) to an XPM, and add that to the backdrops. But the file size will be huge; it's really not a nice thing to do to your system. There is no existing mechanism to e.g. detect switching workspace and automatically set the root window to particular contents. That would have been very slow once upon a time, and they wanted workspace switching to be fast, which is probably why they had overlay windows for the normal CDE backdrops; that way it's at least already loaded into the X11 server. > On Feb 10, 2021, at 05:02, cyrus torros wrote: > > I am looking for a way to set a custom backdrop on workspaces 2, 3, > and 4. Tools like nitrogen don't seem to be capable of it? Is it not > possible/ > > > ___ > cdesktopenv-devel mailing list > cdesktopenv-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel > smime.p7s Description: S/MIME cryptographic signature ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel
[cdesktopenv-devel] Setting custom wallpaper on other workspaces
I am looking for a way to set a custom backdrop on workspaces 2, 3, and 4. Tools like nitrogen don't seem to be capable of it? Is it not possible/ ___ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel