On Tue, 9 Apr 2002, Sean 'Shaleh' Perry wrote:

> copy the style and remove the 'rootCommand'.  Future versions of blackbox will
> allow you to specify the rootCommand in the blackboxrc file and override any
> style.

I provide a patch do some of this a while ago (2 Mar 2001).

>From an old message I sent to the list:

 The patch below adds two configuration options for blackboxrc and one
 extra style configuration.

 RESOURCE FILE
 rootCommandApp:
        This defines the program to set the root image.
        It defaults to "bsetbg -full".

 allowRootCommand:
        This can be set to "False" so a style's RootCommand
        will not be executed. It defaults to "True".

 STYLES
 rootImage:             Full path to an image file, e.g. /home/bob/family.jpg

 My style file has
 rootCommand:                    bsetbg -full /home/reed/images/success/bbc013.jpg ; 
rm /tmp/TEST1
 rootImage:                      /home/reed/images/success/birdcelt.jpg

 My ~/blackboxrc has
 rootCommandApp: xv -root -rmode 5 -quit -smooth -maxpect
 allowRootCommand:       False

 In addition, the code makes sure that the image filename doesn't contain
 a semicolon, back-tick or a pipe.

 RootCommand (if enabled) will run even if the RootImage was defined and
 used.

 This patch is useful so you can disable your RootCommand capabilities and
 so Theme (style) designers can add an optional "RootImage" if the
 RootCommand is disabled.

I need to fit it to the latest and greatest and resubmit. Any
ideas/suggestions first?



  Jeremy C. Reed
....................................................
     BSD software, documentation, resources, news...
     http://bsd.reedmedia.net/

Reply via email to