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).
128 lines
4.1 KiB
Plaintext
128 lines
4.1 KiB
Plaintext
XCOMM ##########################################################################
|
|
XCOMM
|
|
XCOMM dtscreen.dt
|
|
XCOMM
|
|
XCOMM Actions for defining screen savers to the Common Desktop Environment.
|
|
XCOMM
|
|
XCOMM (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
|
|
XCOMM (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
|
|
XCOMM (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
|
|
XCOMM (c) Copyright 1993, 1994, 1995 Novell, Inc.
|
|
XCOMM
|
|
XCOMM $XConsortium: dtscreen.dt.src /main/4 1996/04/23 17:35:39 drk $
|
|
XCOMM
|
|
XCOMM ##########################################################################
|
|
#define HASH #
|
|
set DtDbVersion=1.0
|
|
|
|
XCOMM ##########################################################################
|
|
XCOMM
|
|
%|nls-10-#HASH WARNING:...#|
|
|
XCOMM
|
|
XCOMM ##########################################################################
|
|
|
|
XCOMM ##################################################################
|
|
XCOMM
|
|
%|nls-12-#HASH Actions#|
|
|
XCOMM
|
|
XCOMM ##################################################################
|
|
ACTION StartDtscreenHop
|
|
{
|
|
LABEL %|nls-19001-#StartDtscreenHop#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode hop
|
|
DESCRIPTION %|nls-19002-#Hopalong ...#|
|
|
}
|
|
|
|
ACTION StartDtscreenQix
|
|
{
|
|
LABEL %|nls-19004-#StartDtscreenQix#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode qix
|
|
DESCRIPTION %|nls-19005-#Spinning ...#|
|
|
}
|
|
|
|
ACTION StartDtscreenImage
|
|
{
|
|
LABEL %|nls-19007-#StartDtscreenImage#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode image
|
|
DESCRIPTION %|nls-19008-#Random ...#|
|
|
}
|
|
|
|
ACTION StartDtscreenLife
|
|
{
|
|
LABEL %|nls-19010-#StartDtscreenLife#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode life
|
|
DESCRIPTION %|nls-19011-#Conway's ...#|
|
|
}
|
|
|
|
ACTION StartDtscreenSwarm
|
|
{
|
|
LABEL %|nls-19013-#StartDtscreenSwarm#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode swarm
|
|
DESCRIPTION %|nls-19014-#Swarm ...#|
|
|
}
|
|
|
|
ACTION StartDtscreenRotor
|
|
{
|
|
LABEL %|nls-19016-#StartDtscreenRotor#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode rotor
|
|
DESCRIPTION %|nls-19017-#Roto#|
|
|
}
|
|
|
|
ACTION StartDtscreenPyro
|
|
{
|
|
LABEL %|nls-19019-#StartDtscreenPyro#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode pyro
|
|
DESCRIPTION %|nls-19020-#Fireworks#|
|
|
}
|
|
|
|
ACTION StartDtscreenFlame
|
|
{
|
|
LABEL %|nls-19022-#StartDtscreenFlame#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode flame
|
|
DESCRIPTION %|nls-19023-#Cosmic ...#|
|
|
}
|
|
|
|
ACTION StartDtscreenWorm
|
|
{
|
|
LABEL %|nls-19025-#StartDtscreenWorm#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode worm
|
|
DESCRIPTION %|nls-19026-#Wiggly ...#|
|
|
}
|
|
|
|
ACTION StartDtscreenRandom
|
|
{
|
|
LABEL %|nls-19032-#StartDtscreenRandom#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode random
|
|
DESCRIPTION %|nls-19033-#A different one each time#|
|
|
}
|
|
|
|
ACTION StartDtscreenBlank
|
|
{
|
|
LABEL %|nls-19028-#StartDtscreenBlank#|
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtscreen -mode blank
|
|
DESCRIPTION %|nls-19029-#Blank ...#|
|
|
}
|
|
XCOMM ######################## EOF ############################################
|