1820130 Members
3003 Online
109619 Solutions
New Discussion юеВ

screensavers files

 
SOLVED
Go to solution
Jo├лl Techer
Advisor

screensavers files

hi,

hp-ux 11.0
I want to know the command to launch screensaver utility for CDE desktop and which folders the screensavers files stored in.
Thank you in advance and sorry for the language
5 REPLIES 5
Leif Halvarsson_2
Honored Contributor
Solution

Re: screensavers files

Hi,

Do you mean screensaver files, not background files ?

As I have understand, there are no files for the screensaver in CDE, the screensaver is just some patterns that is generated across the screen.

Also, there is no command to launch the saver (as far as I know). The screensaver is built in into the desktop and launched/configured from the toolbox in the frontpanel.
RAC_1
Honored Contributor

Re: screensavers files

All you want is here.

screensaver -
Example of a simple screen saver that uses the DT Screen Saver API and techniques to make that screen saver available to all desktop users or your own session.

The desktop provides a set of screen savers for use in desktop sessions. This set of screen savers can be previewed and selected from the Style Manager Screen dialog.
Each screen saver is known to the desktop by the screen saver's action definition. The screen saver's action definition provides the desktop with a short localizable title for the
screen saver, as well as the command line and options required to start the screen saver. When the desktop starts a screen saver, it is started by invoking a screen saver action.

The set of screen saver actions available to a user's desktop session is defined by the

DTSCREENSAVERLIST
environment variable. The default DTSCREENSAVERLIST set is defined when you start a desktop session. A system administrator can change this set by creating a script in directory /etc/dt/config/$LANG/Xsession.d that modifies DTSCREENSAVERLIST. A user can do the same in their $HOME/.dtprofile.

A desktop screen saver is a simple application that uses the DtSaverGetWindows() API to obtain a list of windows, and draws on those windows. The desktop handles the starting and stopping of the screen saver application.
The 'screensaver' application is an example that shows how the DtSaverGetWindows() API may be used, how the screen saver action may be defined for 'screensaver' and
how the screen saver can be integrated into the desktop for all desktop users or an individual desktop user. The screen saver action is named SampleScreenSaver and is defined in /usr/dt/examples/dtscreen/dt/appconfig/types/C/screensaver.dt.

Making the screen saver available to all users
----------------------------------------------
You must be root to make the screen saver available to all users. This example assumes you are building 'screensaver' directly in /usr/dt/examples/dtscreen.

1) Build the 'screensaver' application
make -f Makefile.

2) Register the screen saver action with the desktop
dtappintegrate -s /usr/dt/examples/dtscreen

3) Add the screen saver action to the list of available savers
#create file /etc/dt/config/Xsession.d/myvars containing:
DTSCREENSAVERLIST="SampleScreenSaver $DTSCREENSAVERLIST"

The next time a user starts the desktop, the example screen saver will be available for use.
Making the screen saver to your own desktop session
---------------------------------------------------
1) Copy the screen saver example to $HOME/dtscreen
cp -r /usr/dt/examples/dtscreen $HOME/dtscreen
cd $HOME/dtscreen
2) Build the 'screensaver' application
make -f Makefile.
3) Register the screen saver action with the desktop
cp $HOME/dtscreen/dt/appconfig/types/C/screensaver.dt \
$HOME/.dt/types
4) Change the action EXEC_STRING path
vi $HOME/.dt/types/screensaver.dt
#change the EXEC_STRING to '/dtscreen/screensaver',
#replacing with the value of $HOME
5) Add the screen saver action to the list of available savers
#edit $HOME/.dtprofile and add:
DTSCREENSAVERLIST="SampleScreenSaver $DTSCREENSAVERLIST"

The next time a user starts the desktop, the example screen saver will be available for use.
There is no substitute to HARDWORK
Alex Glennie
Honored Contributor

Re: screensavers files

try dtscreen .. comes with a man page

you may also want to read /usr/dt/examples/dtscreen/README if you are planning on adding any new screen savers.

Lastly I think the defaults are intergrated into the CDE enviroment ... see the above README file.
Florian Heigl (new acc)
Honored Contributor

Re: screensavers files

If You want nicer screensavers, You should buy a SGI and enable CDE :)))

(or use the Xscreensaver distribution, but this is not as well integrated with CDE.)
yesterday I stood at the edge. Today I'm one step ahead.
Jo├лl Techer
Advisor

Re: screensavers files

thank you all people who helped me. it's ok now.