Dan Espen wrote:
>
> Dominik Vogt <dominik.vogt_at_gmx.de> writes:
> > On Sat, Mar 24, 2001 at 01:02:39PM -0800, Tim Hanson wrote:
> > > I just loaded SuSE 7.1 onto a newly built computer, and when I
> > > transplanted my .fvwm2rc file to my new home directory I was in for a
> > > nasty surprise. All the icons have been moved, rearranged into several
> > > (25 or so) directories. FvwmButtons is now half-height, and shows text
> > > only.
> > >
> > > I'm trying to automate the process of updating PicmapPath and
> > > IconPath.
> > >
> > > 1) When declaring a path, can I use a newline character "\?"
> >
> > Yes.
> >
> > > 2) Can I put these paths in a separate file and reference them in some
> > > way so that FVWM2 finds them?
> >
> > You can put the PixmapPath command into a separate file and use
> > the "Read" command:
> >
> > Put this in your .fvwm2rc file:
> >
> > Read .fvwm2rc.imagepath
> >
> > And then create a file .fvwm2rc.imagepath:
> >
> > PixmapPath /foo:/bar/baz
>
> I think what you've got there is fvwm2.2.4.
Yup.
> When Suse built fvwm2 they should have built-in the path to
> where all the icons are. If they did, you don't have to worry
> about the path to the icons.
Well, they did, but they created an ./all directory and put in a bunch
of links to where the files are really. They prepended "mini.",
"normal.", etc. to each link. Finally, they went through the whole
.fvwm2rc file and prepended every reference to the new link name. That
works okay for their prepackaged .fvwm2rc, but those of us who have
extensively modified our .fvwm2rc files are stuck with either redoing
all our changes or going through .fvwm2rc and prepending the link name
to each image file. Bummer.
I suppose this is venturing from a strictly FVWM conversation, but I
would like to find each directory which contains an *.xpm file and write
that directory to a text file, so that when I'm done I have a listing of
each directory which should go into an ImagePath statement. Massage the
textfile slightly to make it FVWM legal, then name it ./
.fvwm2rc.imagepath. That would solve the problem for now, and also next
time they change things again.
I am somewhat familiar with sed. Will ImagePath accept a multiline
list?
> Both PixmapPath and IconPath are obsolete, you should use
> the ImagePath command.
>
> Is this what you want?
>
> PipeRead 'print -n "ImagePath "; for i in `find /suse/icons` ;\
> do print -n "$i:" ; done; print "+"'
>
> --
> Dan Espen
> 444 Hoes Lane Room RRC 1C-214 E-mail: dane_at_mk.telcordia.com
> Piscataway, NJ 08854 Phone: (732) 699-5570
--
Give me a Plumber's friend the size of the Pittsburgh dome, and a place
to stand, and I will drain the world.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Mar 25 2001 - 15:34:05 BST