Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rice!sun-spots-request From: rulcs!pk@relay.eu.net (Paul Kranenburg) Newsgroups: comp.sys.sun Subject: Re: Is there an xsetroot type program for SunView? Keywords: Source Message-ID: <4042@brazos.Rice.edu> Date: 21 Dec 89 00:25:32 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 36 Approved: Sun-Spots@rice.edu X-Refs: Original: v8n217 X-Sun-Spots-Digest: Volume 8, Issue 231, message 2 of 16 In article <3788@brazos.Rice.edu> ntmtv!thompson@ames.arc.nasa.gov (Michael Thompson) writes: >X-Sun-Spots-Digest: Volume 8, Issue 217, message 11 of 23 > >Is there a small SunView utility program which will allow a person to set >the root background raster image if SunView is already running. For X >Windows, the utility program 'xsetroot -bitmap filename' does this. I am >looking for the same capability for SunView. > >It is too bad, but it seems that a background raster file can only be >loaded when SunView is first started up. Am I right in this assumption? I don't know if it can be done with an auxiliary program. You can, however, hack your way into the base program itself (/usr/src/sun/suntool/suntools.c). This is just what I have done, it involves defining some new "keywords" in the rootmenu file (like REFRESH and EXIT), eg.: "New Background" BACKGRND "New Icon" BACKGRND_ICON when choosen, the current selection is inspected. If it is the name of a regular file, this file will be loaded as a new background image or icon. If it is a directory , it will be retained for future file lookups. Default directories can also be specified using the User Default Database mechanism that comes with Sunview. Cheers, Paul Kranenburg. [[Ed's Note: Diffs for 4.0.3 placed in archives.]] FTP: Hostname : titan.rice.edu (128.42.1.30) Directory: sun-source Filename : suntools.c.diffs Archive Server Address: archive-server@rice.edu Archive Server Command: send sun-source suntools.c.diffs