Commit Graph
2 Commits
Author SHA1 Message Date
lotherk c13e16700b MCDE dtsystemsettings: Desktop & Screen Saver, with Test and Random (t0110)
Desktop and Screen Saver are one pane with the two tabs of the reference;
-pane screensaver still opens the saver's page (PaneFind gives the old id to
the pane).  The saver page has the list in two groups ("Screen Savers" and
"Pictures"), a running preview, Options..., Test, the start time in the
reference's seven steps (3/5/15/30 minutes, 1 and 2 hours, Never), the
password box and the notes for the corners and the energy pane.

  * "Use random screen saver" selects StartDtscreenRandom, a new action
    (programs/types/dtscreen.dt.src: dtscreen -mode random) that dtscreen
    resolves into one of its modes each time it starts.
  * Test starts the chosen saver fullscreen in an override-redirect window
    and stops it after eight seconds -- dtscreen has no input loop, and a
    session's saver is stopped by dtsession's lock, which a settings program
    does not have.
  * Options... writes dtscreen.<mode>.batchcount and dtscreen.<mode>.delay
    into the server's resources (where dtscreen reads them, resource.c) and
    records them in ~/.dt/screensaver; the preview restarts with them.
  * The start-time scale writes dtsession's saver timeout, as before.

Pictures are listed but not offered: dtscreen's image mode has no picture
folder source of its own, so a folder entry would write a setting nobody
reads.  "Show with clock" and the hot corners wait for a clock mode in
dtscreen and for the Expose & Spaces pane; the energy warning waits for the
Energy Saver pane (there is no DPMS time to compare with yet).  Those three
are named in the pane itself.

tools/mcde-shot.sh: DTDATABASESEARCHPATH is comma-separated now -- that is
the separator DtEnvMap uses for it; with colons DtDb stays half-loaded and
actions are not found (the preview said "Action StartDtscreenSwarm was not
found"; with commas the savers run).  The data types come with it: a dtfile
window in the test home shows the PNG and text icons instead of "??" (the
t0194 symptom).  The script also exports DTSCREENSAVERLIST as dtsession does,
through a Session() function because the list has spaces.

Measured under Xvfb with xdotool:

  - the page shows the two groups, Swarm chosen and running in the preview
    (docs/screenshots/leopard/System-Preferences-Desktop-and-Screen-Saver-
    mcde.png);
  - Test covers the screen with the saver (...-Test-mcde.png) and the pane is
    back eight seconds later;
  - Random replaces the preview's process: "dtscreen -mode swarm" became
    "dtscreen -mode random" (pgrep), and dtscreen itself reports "random
    mode chose image" when run with -mode random;
  - Options... with the delay moved writes "dtscreen.swarm.batchcount: 100"
    and "dtscreen.swarm.delay: 530000" into RESOURCE_MANAGER and
    "mode=swarm" / "batchcount=100" / "delay=530" into ~/.dt/screensaver;
  - make check: test_panes PASS (new alias checks).
2026-11-14 10:49:54 +00:00
lotherkandClaude Opus 5.5 3b2a54c64b ext/src/mcde: import CDE 2.5.3 and pkgsrc wm/cde unchanged (the base of the MCDE fork)
cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from
pkgsrc 3c1118e94432.  Added with -f: CDE's .gitignore hides 612 files of
the archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:36:46 +00:00