Page 1 of 1

pic2root

Posted: Sat 18 Sep 2010, 23:02
by WarMocK
Heyho people,
since I am working on an experimental user interface for a gaming distro I needed a tool to show a wallpaper that does not ship an icon grid and a file manager with it (sorry ROX). So I used the GTK API and wrote a tiny binary on my own: pic2root.
The tool runs from the commandline and is easy to use:
pic2root /path/to/imagefile
The specified image is scaled and stretched automatically to meetthe screen resolution and finally rendered onto the desktop's root window. So if you need a simple and small wallpaper setter, here you are. Have fun with it. :D

any source?

Posted: Sun 19 Sep 2010, 10:51
by vovchik
Dear WarMocK,

Could you kindly post the source - no matter what shape it is in - and your compile line. I want to compile it for older puppies and test it out. It will not run, for example, in puppy 3.01:
[/mnt/hdb6/install/pic2root/pic2root-1.0/usr/bin]-> ./pic2root
./pic2root: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./pic2root)
./pic2root: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./pic2root)
With thanks and kind regards,
vovchik

Posted: Sun 19 Sep 2010, 13:34
by WarMocK
Sure. Here you go.

compiled with the following options:

Code: Select all

g++ -Wall -pedantic -O3 -o pic2root.c pic2root `pkg-config --cflags --libs gtk+-2.0 gmodule-export-2.0`

segfault

Posted: Sun 19 Sep 2010, 15:16
by vovchik
Dear WarMock,

Thanks. I had to change the compile line (-o bit):), and it compiled fine. However, I get a runtime segfault. I also just compiled this little thing for setting the root image which hs many, many options. Have a look. It is, stripped, some 4x larger than your little prog, but seems to do a great deal. Have a look....

Posted: Sat 26 Mar 2011, 16:14
by harii4
i get the same errors with pic2root?

xsri or pic2root - how do i get it to keep changes at next boot up? :?

Posted: Sat 26 Mar 2011, 17:52
by Bernie_by_the_Sea
Using xsri with Wary 500 I get wallpaper ONLY inside urxvt.

What is a root image anyway?

It does persist inside urxvt so where is the root image located so I can get rid of it?

Posted: Sat 26 Mar 2011, 18:19
by harii4
What is a root image anyway?
its the base image -

need to add --set
try xsri --set /mnt/home/lightning.jpg

xsri --help for more options

Posted: Sat 26 Mar 2011, 20:04
by Bernie_by_the_Sea
harii4 wrote:
What is a root image anyway?
its the base image -

need to add --set
try xsri --set /mnt/home/lightning.jpg

xsri --help for more options
It still does the same thing, background ONLY inside urxvt.

Posted: Sat 26 Mar 2011, 23:11
by WarMocK
Bernie_by_the_Sea:
You are using ROX, which draws a frameless window over the root window and puts a background image into it as a wallpaper. If you see the wallpaper drawn onto the root window (either by pic2root or xsri) this means that either the ROX pinboard (the wallpaper window) isn't properly configured, or urxvt doesn't recognize the pinboard as the "root window" of your desktop.
Check out if the checkboxes for "Blackbox root menus hack" and "Override window manager control of pinboard and panels" are clicked.

Posted: Sat 26 Mar 2011, 23:50
by Bernie_by_the_Sea
WarMocK wrote: Check out if the checkboxes for "Blackbox root menus hack" and "Override window manager control of pinboard and panels" are clicked.
Okay, the "Override window manager control of pinboard and panels" was clicked but the "Blackbox root menus hack" was not.

Thanks :)

BTW, I think I sorta like having a different wallpaper in urxvt. Just have to find the right one.