pic2root

Window managers, icon programs, widgets, etc.
Post Reply
Message
Author
User avatar
WarMocK
Posts: 169
Joined: Thu 05 Jul 2007, 11:53

pic2root

#1 Post 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
Attachments
pic2root-1.0.pet
(4.52 KiB) Downloaded 707 times

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

any source?

#2 Post 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

User avatar
WarMocK
Posts: 169
Joined: Thu 05 Jul 2007, 11:53

#3 Post 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`
Attachments
pic2root.tar.gz
(861 Bytes) Downloaded 633 times

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

segfault

#4 Post 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....
Attachments
xsri.tar.gz
(10.77 KiB) Downloaded 670 times

User avatar
harii4
Posts: 448
Joined: Fri 30 Jan 2009, 04:08
Location: La Porte City, IA , U.S.A.
Contact:

#5 Post by harii4 »

i get the same errors with pic2root?

xsri or pic2root - how do i get it to keep changes at next boot up? :?
Last edited by harii4 on Sat 07 May 2011, 17:18, edited 1 time in total.
3.01 Fat Free / Fire Hydrant featherweight/ TXZ_pup / 431JP2012
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.

User avatar
Bernie_by_the_Sea
Posts: 328
Joined: Wed 09 Feb 2011, 18:14

#6 Post 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?
Attachments
xsrishot.jpg
(120.59 KiB) Downloaded 721 times

User avatar
harii4
Posts: 448
Joined: Fri 30 Jan 2009, 04:08
Location: La Porte City, IA , U.S.A.
Contact:

#7 Post 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
3.01 Fat Free / Fire Hydrant featherweight/ TXZ_pup / 431JP2012
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.

User avatar
Bernie_by_the_Sea
Posts: 328
Joined: Wed 09 Feb 2011, 18:14

#8 Post 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.
Attachments
xsrishot02.jpg
(176.84 KiB) Downloaded 702 times

User avatar
WarMocK
Posts: 169
Joined: Thu 05 Jul 2007, 11:53

#9 Post 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.

User avatar
Bernie_by_the_Sea
Posts: 328
Joined: Wed 09 Feb 2011, 18:14

#10 Post 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.

Post Reply