Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 01:15
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
pic2root
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
WarMocK


Joined: 05 Jul 2007
Posts: 169

PostPosted: Sat 18 Sep 2010, 19:02    Post subject:  pic2root
Subject description: set wallpapers from the commandline
 

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. Very Happy
pic2root-1.0.pet
Description 
pet

 Download 
Filename  pic2root-1.0.pet 
Filesize  4.52 KB 
Downloaded  431 Time(s) 
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sun 19 Sep 2010, 06:51    Post subject: any source?  

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:

Quote:

[/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
Back to top
View user's profile Send private message 
WarMocK


Joined: 05 Jul 2007
Posts: 169

PostPosted: Sun 19 Sep 2010, 09:34    Post subject:  

Sure. Here you go.

compiled with the following options:
Code:
g++ -Wall -pedantic -O3 -o pic2root.c pic2root `pkg-config --cflags --libs gtk+-2.0 gmodule-export-2.0`
pic2root.tar.gz
Description 
gz

 Download 
Filename  pic2root.tar.gz 
Filesize  861 Bytes 
Downloaded  392 Time(s) 
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sun 19 Sep 2010, 11:16    Post subject: segfault  

Dear WarMock,

Thanks. I had to change the compile line (-o bit)Smile, 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....
xsri.tar.gz
Description 
gz

 Download 
Filename  xsri.tar.gz 
Filesize  10.77 KB 
Downloaded  414 Time(s) 
Back to top
View user's profile Send private message 
harii4


Joined: 30 Jan 2009
Posts: 444
Location: La Porte City, IA , U.S.A.

PostPosted: Sat 26 Mar 2011, 12:14    Post subject:  

i get the same errors with pic2root?

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

_________________
3.01 Fat Free / Fire Hydrant featherweight/ TXZ_pup / 431JP2012
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.

Last edited by harii4 on Sat 07 May 2011, 13:18; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Sat 26 Mar 2011, 13:52    Post subject:  

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?
xsrishot.jpg
Description 
jpg

 Download 
Filename  xsrishot.jpg 
Filesize  120.59 KB 
Downloaded  337 Time(s) 
Back to top
View user's profile Send private message 
harii4


Joined: 30 Jan 2009
Posts: 444
Location: La Porte City, IA , U.S.A.

PostPosted: Sat 26 Mar 2011, 14:19    Post subject:  

Quote:
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.
Back to top
View user's profile Send private message Visit poster's website 
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Sat 26 Mar 2011, 16:04    Post subject:  

harii4 wrote:
Quote:
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.
xsrishot02.jpg
Description 
jpg

 Download 
Filename  xsrishot02.jpg 
Filesize  176.84 KB 
Downloaded  333 Time(s) 
Back to top
View user's profile Send private message 
WarMocK


Joined: 05 Jul 2007
Posts: 169

PostPosted: Sat 26 Mar 2011, 19:11    Post subject:  

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.
Back to top
View user's profile Send private message 
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Sat 26 Mar 2011, 19:50    Post subject:  

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 Smile

BTW, I think I sorta like having a different wallpaper in urxvt. Just have to find the right one.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0787s ][ Queries: 13 (0.0186s) ][ GZIP on ]