Changes between Version 4 and Version 5 of ScreensaverEnhancements


Ignore:
Timestamp:
Mar 6, 2009, 1:16:47 AM (16 years ago)
Author:
charlief
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ScreensaverEnhancements

    v4 v5  
    55The BOINC screensaver (Win, Mac) will be divided into two parts:
    66
    7  * A '''screensaver coordinator''' program that doesn't do graphics (except for Win preview mode, which will just display a logo). Instead, the coordinator will run separate programs (project-supplied graphics apps, and graphics apps bundled with the installer).  The order and timing of these apps will be configurable.
    8  * A '''default graphics app''', which the coordinator runs if no project apps are available.
     7 * A '''screensaver coordinator''' program that doesn't do graphics (except for preview mode, which will just display a logo). Instead, the coordinator will run separate programs (project-supplied graphics apps, and a default graphics app bundled with the installer).  The order and timing of these apps will be configurable.
     8 * A '''default graphics app''', which the coordinator runs if no project apps are available. 
    99
    1010Organizations that make their own installers (!GridRepublic) might develop
    1111their own graphics apps, and bundle them with the installer.
    1212
    13 Configuration file format (XML):
     13== Default Graphics Application ==
     14
     15On Windows, the default graphics app must be located in the BOINC executable directory (the same directory which contains ''boinc.exe'') and named ''boinscr.exe''. 
     16On the Mac, it must be in the directory ''/Library/Application Support/BOINC Data/'' and named ''boincscr''. 
     17Additional support files needed by the default graphics app, such as logos and fonts, should be in the same directory.
     18
     19The default graphics app will usually be called with the command-line argument ''--fullscreen'', which may be ignored.
     20
     21
     22However, it must respond to either of two possible additional command-line arguments:
     23 * ''--retry_connect'' means that if the default graphics app is unable to connect to the BOINC Client via RPC, it should continue running and retry periodically.
     24 * ''--test'' mans that it should try to connect to BOINC Client via RPC once, then exit immediately whether or not it succeeded.    This is used by the Manager to test whether the RPC is blocked by a local software firewall; if so, most firewalls will then display a dialog so the user can approve it.
     25 * When neither the ''--retry_connect'' or ''--test'' argument is passed, the default graphics app must return immediately with an error code of -107 if it can't connect to the BOINC Client via RPC.
     26
     27
     28== Configuration file ==
     29
     30The '''screensaver coordinator''' can be customized by including an optional XML configuration file named ''ss_config.xml''.  If used, it must be located in the BOINC data directory on both Mac and Windows.
     31
     32The format is:
     33
    1434{{{
    15 <graphics_apps>
    16    <app>
    17       <executable>foo.exe</executable>
    18       <time>3600</time>
    19    <app>
    20    <app>
    21       <science_app/>
    22       <time>3600</time>
    23    </app>
    24 </graphics_apps>
     35<default_gfx_duration>600</default_gfx_duration>
     36<science_gfx_duration>1800</science_gfx_duration>
     37<science_gfx_change_interval>600</science_gfx_change_interval>
    2538}}}
    2639
    27 This would say to run "foo.exe" for an hour,
    28 then run a science app's graphics (if one is available) for an hour, and repeat.
     40This would say to run "boincsr.exe" for an 10 minutes (600 seconds),
     41then run science app graphics (if any are available) for 30 minutes, changing among science apps every 10 minutes (if multiple tasks are running),
     42then repeat the entire sequence.
    2943
     44Each of the three fields is optional, and the file itself is optional.  If not otherwise specified, the default values for the three fields are the ones shown in the example above.
     45 
    3046== Default graphics app ==
    3147