View Full Version : Wallpaper plugin
mikedee
November 14th, 2006, 04:39 PM
I now have the wallpaper plugin working. It is still fairly buggy but as long as you follow these instructions/warnings then you should be fine :)
Enter the images into gconf but make sure that the number of images listed matches the number of faces on your cube (normally 4). If these are different bad things will probably happen (I havent tested it because I dont want bad things to happen ;)). Only use png images and resize them to your desktop before loading because there is no resizing done.
You will also need to kill off your normal desktop.
KDE
killall kdesktop
Gnome
nautilus --no-desktop
XFCE
Do not run xfdesktop
Download from here and then untar and type make install
http://www.anykeysoftware.co.uk/compiz/plugins/wallpaper.tar.gz
Originally by Kyuu on the compiz-quinn forums.
mehturt
December 18th, 2006, 09:23 AM
hmm for some reason it seems the image color depth is different from the X server..
stjepan
January 22nd, 2007, 07:48 AM
I can't load wallpaper plugin. I use png images and I have loaded png plugin.
compiz: Plugin 'wallpaper':initScreen failed
compiz: Plugin 'wallpaper':initDisplay failed
compiz: Couldn't activate plugin 'wallpaper'
mikedee
January 22nd, 2007, 04:40 PM
There are only a few places where InitScreen can return false, unless you are running out of memory, the most likely place is where it tries readImageToTexture for each image.
You can try adding this line at line 205 (just inside the readImageToTexture failure block)
fprintf(stderr, "Failed to read image to texture %s\n", ws->curValue->s);
This will probably lead you to why InitScreen is failing.
M@
March 20th, 2007, 09:16 PM
hi all, i'm getting the same error, but i cant understand how to try & solve it! could you help me?
the error is the one of stjepan :(
M@
M@
March 21st, 2007, 11:09 PM
please...i need an help :(
cant make the wallp plugin run!
M@
lowfi
March 22nd, 2007, 03:51 AM
you can check some things:
1) make sure the png plugin is loaded before wallpaper (active_plugins key).
And of course also use png images :)
2) specify the full path to your images in gconf. Or if you put them in
~/.compiz/images you only have to use the filenames.
3) makes sure the numer of wallpaper images and the number of viewports are the same (hsize key).
i hope this helps.
EDIT: hsize not vsize.
M@
March 22nd, 2007, 04:24 PM
tnx for the helps, but still cant get it work..still the same message of error!
M@
XLII
March 22nd, 2007, 05:14 PM
I got the same problem and just tried to solve it.
I added print line into the code and here is the result:
Failed to read image to texture /usr/share/compiz/background.png
compiz: Plugin 'wallpaper':initScreen failed
compiz: Plugin 'wallpaper':initDisplay failed
compiz: Couldn't activate plugin 'wallpaper'
I redefined wallpapersImages[] at the begining of the code to my files and it works ...
(I had to quit nautilus with nautilus -q instead off nautilus --no-desktop).
I think it just doesn't read options from gconf (I'm not familiar enough with coding to get thing fixed, but I almost sure there is something with it).
Now my only wish is that nautilus could support both icons and different desktops:)
M@
March 22nd, 2007, 05:57 PM
exuse me, but what is the file to edit?
M@
XLII
March 22nd, 2007, 11:11 PM
Ok, seems I worked it out.
There is everything OK with code (at least I think so).
This is possible why things don't work:
You haven't installed schema file (gconftool2 --install-schema-file=wallpaper.schema)
You don't have correct paths set in gconf (gconf-editor /apps/compiz/plugins/wallpaper/screen0/options)
You haven't enabled PNG in activeplugins /apps/compiz/all_screens/options
You haven't killed desktop manager (nautilus -q for gnome)
Also, I think that deleting/reinstalling scheme might help. I broke mine with adding unnecessary option to gconf.
Oh and restarting plugin after killing desktop manager helps with white/gray screen.
M@
March 23rd, 2007, 07:01 AM
1.i think the schema file is well installed (i see the folder and images key in the schema subfolder of gconf.
btw, when i try the command i get an error:
$ gconftool-2 --install-schema-file=wallpaper.schema
I/O warning : failed to load external entity "wallpaper.schema"
Failed to open `wallpaper.schema': No such file or directory
2. all the paths are OK
3. the png plugin is in the 2nd position
4. when i'm gonna kill the desktop manager?
because if i active the plugin, i get the error, and the word wallpaper disappear from the active_plugin key; on the other side, typing nautilus -q, i get the icons reloaded on the desktop, and when i try to add the wallpaper plugin, i get the same error as before..
M@
XLII
March 23rd, 2007, 10:50 AM
wallpaper.schema is in plugin archive, you need to provide full path to it.
M@
March 23rd, 2007, 10:57 PM
wallpaper.schema is in plugin archive, you need to provide full path to it.
and that means? :)
excuse me, but i'm a complete newbie..
M@
karmapolice
March 24th, 2007, 02:02 AM
download the plugin code.
1. uncompress it and open your terminal
2. go where you uncompressed the file wallpaper.tar.gz
3. run the command they told you.
4. done
M@
March 24th, 2007, 10:13 AM
i made it but encountered some error!
the fact is that i have installe compiz and all the other pgks, from repository!
and now when i enter the folder with ucompressed files, and type sudo make install... it tells me i have no package called compiz..
then i tried the command for installing the scheme, but after the installation, when i try to load the plugin, it crashes as ever! :(
it'll make me sick :P
M@
mikedee
April 20th, 2007, 02:40 PM
Cube now has support for different backgrounds so this plugin will be removed very soon.
RYX
April 20th, 2007, 02:44 PM
Don't forget there are still some people sick of the cube :D ... (Fortunately, I use the python-version of wallpaper ;) ...)
mikedee
April 20th, 2007, 03:18 PM
Don't forget there are still some people sick of the cube :D ... (Fortunately, I use the python-version of wallpaper ;) ...)
My hope is that you will update pyplane to have all those cool features you wanted, a birdseye view and drag and drop of windows and viewports are essential.
defer
April 20th, 2007, 05:48 PM
Wall does all of the above, why do duplicate work? At least share opinions/code, so that duplication effects are minimized, but to me that's just wasted developer time.
mikedee
April 20th, 2007, 06:07 PM
Wall does all of the above, why do duplicate work? At least share opinions/code, so that duplication effects are minimized, but to me that's just wasted developer time.
To be honest, when it comes to python plugins, at the moment duplication of code is good because it will test the python api and prove that anything possible in C is also possible in Python.
Once we are sure that the python api is feature complete and not a complete resource hog, then hopefully people will be able to experiment more easily (and more people will be able to do so).
Having said that, I probably will have nothing to do with it so its not up to me. I use pyplane and pywallpaper at the moment and I am starting to like them :)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.