On Tue, Dec 05, 2000 at 11:27:21PM +0000, John Carline wrote: > ktb wrote: > > > I've got a command I run as a regular user that works just fine > > from the command line but when I put it in my ~.xinitrc it > > doesn't work the command is - > > /usr/X11R6/bin/xsetbg -onroot -at 0,0 /home/kent/img.jpg > > The file also contains "fvwm" to load the window manager. > > > > Permissions for .xinitrc - > > -rwxr-xr-x 1 kent kent 118 Dec 4 21:13 .xinitrc > > > > Why isn't this working for me? > > Thanks, > > kent > > > > If I understand you correctly, you're running fvwm and want to paint the root > window with your .jpg when you boot the window manager. > > I use fvwm95, but I suspect it's basically the same. If so, the best place to > put that command (and others like it) is in the ~/.fvwm/post.hook file. You'll > probably have to create it if it's for a single user, but there should also > be a > system wide post.hook in the main fvwm directory (/etc/X11/fvwm ??). xli and > xv > both work well this way, so I suspect that xsetbg will also. > > Well that got me closer:) The command - /usr/X11R6/bin/xsetbg -onroot -at 0,0 -border black img.jpeg loads the image now in the root window but instead of placing the image in the upper left hand corner it tiles the image. If I run the same command at the command line it places the image in the corner as I like. I'll go back to the manpage but if anyone knows why loading the command from post.hook changes the behavior of xsetbg let me know. Thanks, kent
-- "In order to make an apple pie from scratch, you must first create the universe." - Carl Sagan