PDA

View Full Version : New alternate to compiz-icon (compiztray)


spayder26
September 6th, 2007, 11:22 PM
I've developed an application (entirely) on python that works similar to compiz-icon, but this one works better on my opinion (the other one shows me errors sometimes).
Really, the source code is more efficient and advanced (with cleanup routine, process autodetection, etcetera), and is only an standalone python script (with icon dependencies, of course). I also used the new compiz-fusion incons.

I hope you enjoy it. (screenshots here (http://picasaweb.google.com/spayder26/Compiztray))

NEW RELEASE: SEE BELOW

Please, report errors to spayder26(at)gmail.com or this thread.

PD. I found a similar app called fusion-icon. It's better than mine, looking that I'll not still work on this one. (EDIT: Okay okay... I'll improve compiztray ;) if you want and like it)

EDIT: I cannot make kde window decorator runs, on my repository there isn't any kde-window-decorator, i used kwin instead on my script. If anyone know if kde-window-decorator really exists, please tell me.
EDIT2: I found kde-window-decorator in a package called compiz-kde. It works, I've fixed it.
EDIT3: Tiny error fixed. (See changelog)
EDIT4: New release (0.2) see below.:(:o:o

some-guy
September 7th, 2007, 05:55 PM
the screenshots look good
might want to edit fusion-icon though since you yourself say its better
i like the Advanced Options, it gives more options then fusion-icon...

reez0105
September 8th, 2007, 09:50 AM
hm...it looks better and more configurable ...i will give a try...i will test it in Gutsy gibbon...

reez0105
September 8th, 2007, 02:02 PM
great...awesome....

plun
September 8th, 2007, 02:27 PM
Tested and some findings.

- More settings...:)

but......

I always starts from terminal to look for errors. compiztray gives nada...:(

plun@dunder:~$ compiztray
Process handled: [[7115, 'compiz']]
There's any previously initialized compiz? True
Compiz tray started.
Calling with spawnlp(P_NOWAIT ,"compiz","compiz","--replace")
New process starts with PID 8865
Killing useless process...
PID 7115 ( compiz ) cannot be killed.
Window manager was restarted.
Cleanning children...
Nomore to clean.


Compare with fusion-icon (updated yesterday) :)

plun@dunder:~$ fusion-icon
* Detected Session: gnome
* Searching for installed applications...
Backend : ini
Integration : true
Profile : default
Adding plugin decoration (decoration)
Initializing decoration options...done
* NVIDIA on Xorg detected, exporting: __GL_YIELD=NOTHING
* Using the GTK Interface
* Starting Compiz
... executing: compiz --replace --sm-disable --ignore-desktop-hints ccp
Backend : ini
Integration : true
Profile : default
Adding plugin wallpaper (wallpaper)
Adding plugin atlantis (atlantis)
Adding plugin screensaver (screensaver)
Adding plugin thumbnail (thumbnail)
Adding plugin cubereflex (cubereflex)
Adding plugin move (move)
Adding plugin blur (blur)
Adding plugin bench (bench)
Adding plugin minimize (minimize)
Adding plugin group (group)
Adding plugin put (put)
Adding plugin fs (fs)
Adding plugin clone (clone)

reez0105
September 8th, 2007, 03:04 PM
how to set reload compiz to compiz --loose-binding --replace ?

spayder26
September 9th, 2007, 06:05 PM
Be carefull, there is some bugs with children process, and it's not minded to enduser at time... but if you're sure to use it, close compiztray every time you launch ccsm or other configuration tool, because a process bug makes they defuncted when you close it... it'll be fixed on next release of this script.

spayder26
September 9th, 2007, 10:38 PM
I worked hard in this new release, it have ATI/Nvidia/Intel improvements (I saw them on fusion-icon-0.0.1 code), the problem with cssm and other configuration managers being deprecated at exit is fixed, I've improved the clean routine (making a conditional loop), and any else...

Please, report bugs and suggestions... and if somebody can explain me how to join to git and use it, i'll give him/her huge thanks ;). I need some information about pythons compizconfig too (I cannot find the reference guide).

NEW RELEASE: SEE BELOW

Have a nice day :P

vadi
September 9th, 2007, 11:01 PM
Hey,

Do you think you can replicate some of the features of the Beryl settings manager (simple) ?

I think it's still in ubuntu's repositories. Great program, if you got it working here, that would help a lot :)

plun
September 9th, 2007, 11:14 PM
Please, report bugs and suggestions... and if somebody can explain me how to join to git and use it, i'll give him/her huge thanks ;). I need some information about pythons compizconfig too (I cannot find the reference guide).


Thanks.... testing ;)

About Git.... first you need a package called git-core. (I cannot see what dist you are running)

Ubuntu
sudo apt-get install git-core

All projects in GIT

http://gitweb.opencompositing.org/

Example cloning compizconfig

plun@dunder:~$ git-clone git://anongit.opencompositing.org/fusion/compizconfig/compizconfig-python

Initialized empty Git repository in /home/plun/compizconfig-python/.git/
remote: Generating pack...
remote: Done counting 420 objects.
remote: Deltifying 420 objects...
remote: 100% (420/420) done
Indexing 420 objects...
remote: Total 420 (delta 209), reused 0 (delta 0)
100% (420/420) done
Resolving 209 deltas...
100% (209/209) done

spayder26
September 10th, 2007, 11:57 PM
Okay, I found some bugs by myself: don't preload last options as well and autostart compiz params take effects... but compiz doesn't start. It's because I've made a lot of changes on code... and some bugs appeared.

I've you want to use the last release, you need to recheck the options (if they are checked you must to do it too, it's the bug).

I'll fix these on next release... I'll be working...

to: vadi
I think it's too hard for me, but I'll see the code if I find time to do it.

to: plun
Thanks, but it seems it's to download the git files... and I want to join. Whatever... I'll search on this way...

Thanks to everybody! :p

nl2br
September 11th, 2007, 02:01 AM
This is awesome. I used to use the normal compiz icon (the which as you mentioned) and it doesn't has the option to choose window manager as i wanted.

So the icon its very nice too, i like very much this app.

Long life compiztray and compiz-fusion!

plun
September 11th, 2007, 06:35 PM
to: plunThanks, but it seems it's to download the git files... and I want to join. Whatever... I'll search on this way...

Okidok...

Well...visit IRC > #compiz-fusion-dev and introduce your self.

:)

some-guy
September 11th, 2007, 11:07 PM
instaed of restarting compiz to switch to emerald or gtk-window-decorator or kde-window-decorator just make compiztray do
emerald --replace
gtk-window-decorator --replace
and
kde-window-decorator --replace
:D

spayder26
September 12th, 2007, 02:23 AM
some-guy, I know, there is some bugs like this that I've corrected now, but I'm working to improve the script code before post a new version. Python libs lets me to do great things, but It take time to look for.

some-guy
September 12th, 2007, 03:20 AM
ok thanks for the progress.:D

I can't wait for the next version:)

spayder26
September 12th, 2007, 04:27 AM
Okay, that's the fixed new version. I've changed the release number style, corrected the startup problems, improve some code (and make a lot of new dirty code ;)), and... now is translatable with .cfg files on /etc/compiztray. I'll explain it below. (I did more job, but I cannot remember).
I also included the spanish (of spain) translation file.

Compiztray 0.2.1:
(NEW RELEASE, SE BELOW)

About translation system:
The script can read language files (called lang_en_uk.cfg for example) from /etc/compiztray if they're avaliable (if your LANG is en_UK... it'll try to use the lang_en_uk.cfg one). If it don't find your one, compiztray will use the default en_US text.
If you want to see (or make) a language file type compiztray -wf:YOURFOLDER , it will make a lang_en_us.cfg language file. If you want to translate the GUI to your own language, you must to edit this file and rename to your language code (see LANG environment var), and please send me the translation file, I'll include it on next release.

TODO:

Fix new unknown bugs. (Edit: Detect previous Compiz's window decorator)
GConf backend options (I need the compizconfig python module information that I said)
To launch other WM when current fail.
Use similar languages to yours when your one isn't available. Example (es_CL > es_ES)


Enjoy it!

plun
September 12th, 2007, 10:10 AM
Well, a lot of errors.

Windows manager starts

Emerald cannot be activated.

plun@dunder:~$ compiztray

Error, bad variable name: Fast filter
Bad value name "Fast filter" on config file.
Error, bad variable name: Indirect rendering
Bad value name "Indirect rendering" on config file.
Error, bad variable name: Loose binding
Bad value name "Loose binding" on config file.
Error, bad variable name: Use Copy
Bad value name "Use Copy" on config file.
Error, bad variable name: Force FGLRX
Bad value name "Force FGLRX" on config file.
Error, bad variable name: Sm disable
Bad value name "Sm disable" on config file.
Error, bad variable name: Not autodetect
Bad value name "Not autodetect" on config file.
Error, bad variable name: Ignore desktop hints
Bad value name "Ignore desktop hints" on config file.
Error, bad variable name: Only currect screen
Bad value name "Only currect screen" on config file.
Error, bad variable name: Use root window
Bad value name "Use root window" on config file.
Config file is corrupted, it'll be replaced.
Process handled: [[6702, 'compiz']]
There's any previously initialized compiz? True
Calling with spawnlp(P_NOWAIT ,"compiz","compiz","--replace")
New process starts with PID 22112
Waiting 15s to clear...
Window manager was restarted.
Compiz tray started.
Killing useless process...
PID 6702 ( compiz ) has been killed.
Calling with spawnlp(P_NOWAIT ,"compiz","compiz","--replace")
New process starts with PID 22315
Waiting 15s to clear...
Window manager was restarted.
Killing useless process...
PID 22112 ( compiz ) cannot be killed.
Cleanning children...
PID 22112 is defuncted.
Killing useless process...
PID 22112 ( compiz ) has been killed.
Cleanning children...
Nomore to clean.

nl2br
September 12th, 2007, 01:39 PM
I'll check the new version(0.2.1) when i get home and i post my feedback ;)

I've noted that i have to add a session to run the commmand "compiz --replace" to start compiz at startup in the previous version, i think you can do it :p

#Edit

Works well for me, any problems reply here

Cya

spayder26
September 12th, 2007, 03:38 PM
plun, it's not an error, I've changed the internal name of vars to make them translatable. On this release, your error message only appears at first time (if you have an old config file). Referred to emerald, you must to select it because no window decorator is default.

nl2br, you can start compiz with compiztray using -e -g or -k param when you call compiztray (expample: compiztray -g will start compiz with gtk window decorator when compiztray starts), use compiztray --help for more information.

plun
September 12th, 2007, 04:22 PM
Ok next start

plun@dunder:~$ compiztray
Process handled: [[11155, 'compiz']]
There's any previously initialized compiz? True
Calling with spawnlp(P_NOWAIT ,"compiz","compiz","--replace")
New process starts with PID 26322
Waiting 15s to clear...
Window manager was restarted.
Compiz tray started.
Killing useless process...
PID 11155 ( compiz ) has been killed.



Acticate Emerald is stone
dead....

Compare it with fusion-icon

* Setting decorator to Emerald ("emerald --replace")
Setting Update "command"



Where is the config file stored ? home/.config nothing ?

:)

some-guy
September 12th, 2007, 04:58 PM
~/.compiztray.cfg

google01103
September 12th, 2007, 06:47 PM
How is this different than fusion-icon?

google01103
September 12th, 2007, 06:57 PM
installed but:

There's any previously initialized compiz? True
traceback (most recent call last):
File "/usr/local/bin/compiztray.py", line 749, in <module>
putimage(statusIcon,"compiz-core.png",True,False)
File "/usr/local/bin/compiztray.py", line 407, in putimage
autoimage(who,gtk.STOCK_PREFERENCES)
File "/usr/local/bin/compiztray.py", line 423, in autoimage
who.set_image(imagen)
AttributeError: 'gtk.StatusIcon' object has no attribute 'set_image'

spayder26
September 12th, 2007, 07:31 PM
google01103
Check if you have python-gtk2 and python-gtk2-dev 2.10 or later installed on your system... it's a rare error.

some-guy
September 12th, 2007, 11:59 PM
can you add a restart window decorator option?

some-guy
September 13th, 2007, 12:05 AM
can you also add a qt backend or the kde users
you might also want to consult with crdlb on merging fusion-icon with compiztray :D

spayder26
September 13th, 2007, 12:22 AM
some-guy, the fusion-icon and compiztray scripts are very different, and made using very far programming styles. I don't believe merging is possible. And... answering to the first question: You can reselect a current selected option on window decorator or manager menu if you want to restart it.
And, like other given ideas, I'll include it on next release.

some-guy
September 13th, 2007, 12:29 AM
k ill be waiting for a good release. :)

spayder26
September 13th, 2007, 01:20 AM
some-guy, I cannot add a qt gui because I haven't any experience with it, and I joined the gui and the background code on the same file to keep it simpler...

I told the fusion-icon is better than mine xD!!! I started to make this script for my own using... and I don't believe this can replace the "official" ones.

Also, if somebody see something interesting on my script code, he/she can use it freely, cos all of this is under GPL license.

some-guy
September 13th, 2007, 02:27 AM
some-guy, I cannot add a qt gui because I haven't any experience with it, and I joined the gui and the background code on the same file to keep it simpler...

I told the fusion-icon is better than mine xD!!! I started to make this script for my own using... and I don't believe this can replace the "official" ones.

Also, if somebody see something interesting on my script code, he/she can use it freely, cos all of this is under GPL license.
Even so, I prefer it :D

google01103
September 13th, 2007, 04:02 AM
@spayder26

google01103
Check if you have python-gtk2 and python-gtk2-dev 2.10 or later installed on your system... it's a rare error.

I have python-gtk-2.10.4-11.4 and python-gtk-devel-2.10.4-11.4 - could it be a Suse thing?

some-guy
September 13th, 2007, 01:38 PM
if it is a suse thing were gonna have to wait untill 10.3 comes out :(
but also it could be a suse kde thing, like screenlets... :confused:

BTW sorry that im making so many requests, but i like the way compiztray is going :cool:

spayder26
September 14th, 2007, 12:33 AM
I spent a lot of time looking for bugs and fixing they and... the result is here.

Changelog:

Changed the kill signal (9 to 15) to avoid the KILL signal problems (mainly with KDE crash handler).
Added restart window decorator option, and moved it with restart window manager to theirs selection menus.
Added default decorator autoselection when there is no one selected previusly.
Changed pygtk version check style (the old one was deprecated).
Manpage are now available.
Other minor fixes on language translation selection script, fixed the double compiz init when using the -g,-e or -k params...


Known bugs:
There is a known bug: the kde crash handler shows you an error when you quit Compiz with kde-window-decorator enabled, but I cannot do anything to avoid it!

It can be considered as "stable", but you're the ultimate judge about this ;).

Download Compiztray 0.2.2:
NEW RELEASE, SE BELOW

Enjoy it!

And... if you find any issue, post it! :D

Only one last thing... the restart window manager and decorator options are on their respective option menus. Don't spend time telling me I should put it in other place, I simply won't do it, it's the better place (thinking on usability rules).

sgt-d
September 14th, 2007, 06:27 AM
File "/usr/local/bin/compiztray.py", line 449, in autoimage
who.set_image(imagen)
AttributeError: 'gtk.StatusIcon' object has no attribute 'set_image'

ianni67
September 14th, 2007, 09:26 AM
I installed compiztray through its .deb package: it works great on my pc!
THANKS! :-D

ubuntu feisty, last compiz-fusion update (from trevino repository), on an ati x550 with open drivers and XGL.

vadi
September 14th, 2007, 01:19 PM
I haven't tried your nifty little program yet, I will later.

But you get bonus points for providing a .deb :)

spayder26
September 14th, 2007, 01:52 PM
File "/usr/local/bin/compiztray.py", line 449, in autoimage
who.set_image(imagen)
AttributeError: 'gtk.StatusIcon' object has no attribute 'set_image'

sgt-d
There is other guy (google01103) with similar problems with gtk libraries, but I have no idea. A lot of people (me included) don't have this problems with python-gtk2 2.10 libraries installed, whatever, telling us your distro will be usefull.:confused:

ritz
September 15th, 2007, 01:04 AM
hey this works great

thanks a lot :)

EDIT: i am not sure if this is to do with the tray icon but whenever i use like the 3d cube or the drawing fire compiz fusion jsut like stops and exits out of compiz fusion

spayder26
September 15th, 2007, 01:17 AM
hey this works great

thanks a lot :)

EDIT: i am not sure if this is to do with the tray icon but whenever i use like the 3d cube or the drawing fire compiz fusion jsut like stops and exits out of compiz fusion

Compiztray isn't guilty xD you must remember compiz-fusion is still beta.

I'm using the upure64 repositories, and compiz is very up-to-date, but I can use the fire drawing and (while draw is burning) I can rotate the cube... without problems.

ritz
September 15th, 2007, 01:18 AM
it works now it wasnt compiztray it was a setting in compiz fusion that messing it up got it all to work YAY compiztray works great now

google01103
September 15th, 2007, 01:52 AM
@spayder29 :
sgt-d
There is other guy (google01103) with similar problems with gtk libraries, but I have no idea. A lot of people (me included) don't have this problems with python-gtk2 2.10 libraries installed, whatever, telling us your distro will be usefull.:confused:

Since he posted this also in the Suse packges thread I'd assume Suse but don't know if 32 or 64bit (I'm 64bit)

google01103
September 15th, 2007, 02:06 AM
now this is interesting:
If I convert the .deb to .rpm using alien I get compiztray to load (in sys tray)
but it can't load emerald:
-----------------------------------
Killing useless process...
Calling with spawnlp(P_NOWAIT ,"compiz","compiz","--replace","-c","emerald")
New process starts with PID 26868
Waiting 15s to clear...
Window manager was restarted.
compiz (core) - Warn: Unknown option '-c'

compiz: Trying '/usr/$LIB/libIndirectGL.so.1'
compiz (core) - Warn: Unknown option '-c'

compiz (core) - Error: Couldn't load plugin 'emerald'
------------------------------

But fusion-icon can still load emerald, what's '-c'

Quick Q - are the core and performance options documented anywhere?

thanks,

spayder26
September 15th, 2007, 03:32 AM
Quick Q - are the core and performance options documented anywhere?


Use compiz manpages.

Your error can be mine, I considered that a short param (-) can be after a long one (--) on all distros (on ubuntu there isn't any problem with this)... but I'm not sure that's the problem. Please, check that 'compiz --replace -c emerald' and 'compiz -c emerald --replace' works, and tell me..

crdlb
September 15th, 2007, 06:02 AM
But fusion-icon can still load emerald, what's '-c'

Compiztray only works properly with Trevinho's repo because it is reliant on Trevinho's compiz wrapper script (that supports -c <decorator>). The actual compiz binary doesn't support that option (and neither does the official ubuntu wrapper).

Fusion-icon works by setting the decorator in compizconfig (see CCSM>Window Decoration>command); then when it runs compiz, compiz starts that decorator.

ritz
September 15th, 2007, 06:26 AM
is there a way i can make this program automatically start on startup?

google01103
September 15th, 2007, 01:08 PM
@spayder26
neither works for me:
=========================
compiz --replace -c emerald
compiz (core) - Warn: Unknown option '-c'

compiz: Trying '/usr/$LIB/libIndirectGL.so.1'
compiz (core) - Warn: Unknown option '-c'

compiz (core) - Error: Couldn't load plugin 'emerald'
===============================================
compiz -c emerald --replace
compiz (core) - Warn: Unknown option '-c'

compiz: Trying '/usr/$LIB/libIndirectGL.so.1'
compiz (core) - Warn: Unknown option '-c'

compiz (core) - Error: Couldn't load plugin 'emerald
=================================
When I start compiz I use: compiz --replace ccp&;emerald --replace&

spayder26
September 15th, 2007, 02:51 PM
Compiztray only works properly with Trevinho's repo because it is reliant on Trevinho's compiz wrapper script (that supports -c <decorator>). The actual compiz binary doesn't support that option (and neither does the official ubuntu wrapper).

Fusion-icon works by setting the decorator in compizconfig (see CCSM>Window Decoration>command); then when it runs compiz, compiz starts that decorator.


crdlb, I use the upure64 repository and works well too. But I'm thinking to use your way on new version when the current fail (I watched your script :p). It's nice to see you on this thread (everytime, I tell they your script is better, but...:rolleyes:)...

some-guy
September 15th, 2007, 06:46 PM
this is for anybody that is not using trevino's repo
i modified compiztray.py to execute compiz (whatever the script puts) --replace ccp && emerald/gtk-window-decorator/kde-window-decorator --replace
so replace the original compiztray.py with the attachment (hopefully the official one will have a fix in the next realease)

google01103
September 15th, 2007, 07:04 PM
T@someguy: I tried your patch and decorator does not load:

There's any previously initialized compiz? True
Calling with spawnlp(P_NOWAIT ,"compiz","compiz","--replace ccp","&&","emerald --replace")
compiz (core) - Warn: Unknown option '--replace ccp'

Entity: line 1: parser error : xmlParseEntityRef: no name
/><option name="active_plugins" type="list"><type>string</type><default><value>&
^
Entity: line 1: parser error : xmlParseEntityRef: no name
><option name="active_plugins" type="list"><type>string</type><default><value>&&
^
compiz (core) - Warn: Unable to parse XML metadata
New process starts with PID 5427
Waiting 15s to clear...
Window manager was restarted.
Compiz tray started.
Killing useless process...
PID 5385 ( compiz ) cannot be killed.
Cleanning children...
PID 5385 is defuncted.
Traceback (most recent call last):
File "/usr/bin/compiztray", line 107, in Children
devol = waitpid(aux, WNOHANG)
OSError: [Errno 10] No child processes

spayder26
September 15th, 2007, 10:14 PM
some-guy, it wont work, the spawnlp function don't allow it.

I'm fixing the script to preload the window decorator before run the script calls compiz.

EDIT: Preload don't seems to work. I'll use the crdlb method to change the decorator via compiz config. Please be patient until I work on this release...

EDIT2: The decorator value of compizconfig only run when there isn't any other decorator running... but I found other method (load the decorator with --replace param some seconds after compiz starts)

spayder26
September 16th, 2007, 12:57 AM
This version isn't very tested, and I recommend to use the previous version (0.2.2) if you don't have running problems with it.

Changes:
New window decorator load method.
Cleaning loop overload prevention.

Download:
NEW RELEASE, SE BELOW

google01103, please tell me if now it works for you...

EDIT: Bug found... after two minutes of using... when you change the window manager, all compiz plugin configuration become like they was when you started compiztray.

crdlb
September 16th, 2007, 12:58 AM
The way fusion-icon does it is to just "killall emerald gtk-window-decorator kde-window-decorator" (basically) before starting compiz. Then when switching decorators, it does the same (except not the one you're switching to)

google01103
September 16th, 2007, 01:09 AM
@spayer26:
using 0.2.3
1) If I install from the tarball no tray icon
There's any previously initialized compiz? True
Decorator: emerald
Traceback (most recent call last):
File "/usr/local/bin/compiztray.py", line 873, in <module>
putimage(statusIcon,"compiz-core.png",True,False)
File "/usr/local/bin/compiztray.py", line 487, in putimage
autoimage(who,gtk.STOCK_PREFERENCES)
File "/usr/local/bin/compiztray.py", line 503, in autoimage
who.set_image(imagen)
AttributeError: 'gtk.StatusIcon' object has no attribute 'set_image'
===================================
2) if I convert the .deb to a .rpm I get tray icon but no decorations

(emerald:13704): Wnck-WARNING **: Unhandled action type (nil)
Killing useless process...
PID 5456 ( compiz ) cannot be killed.
Cleanning children...
PID 5456 is defuncted.
Traceback (most recent call last):
File "/usr/bin/compiztray", line 130, in Children
devol = waitpid(aux, WNOHANG)
OSError: [Errno 10] No child processes
Cleanning children...
PID 5456 is defuncted.
Traceback (most recent call last):
File "/usr/bin/compiztray", line 130, in Children
devol = waitpid(aux, WNOHANG)
OSError: [Errno 10] No child processes

spayder26
September 16th, 2007, 10:16 PM
google01103, don't use the tarball one, it's for developing, not for installing (installing requires some hacking).

The OSError only stops the second cleanning method (tries to hang the zombie processes), and the other part of the script should work because the broken one works as a separate thread...

google01103
September 16th, 2007, 11:12 PM
@spayder26:

When your distro is .rpm and you have a choice of .deb or .tar .............

Still the issue is that once I get the tray icon I'm not getting decorations. Neither reloading decorator or compiz from the icon works and if I run "emerald --replace&" from command line I get "(emerald:11312): Wnck-WARNING **: Unhandled action type (nil)".

regards,

spayder26
September 17th, 2007, 01:54 AM
google01103
please check that these commands show you the same number:
compiz --version
compiz.real --version

I don't know why you're suffering this problems :confused:

EDIT: emerald shows me "(emerald:29108): Wnck-WARNING **: Unhandled action type (nil)" too, but it works fine.

google01103
September 17th, 2007, 03:05 AM
google01103
please check that these commands show you the same number:
compiz --version
compiz.real --version

I don't know why you're suffering this problems :confused:

EDIT: emerald shows me "(emerald:29108): Wnck-WARNING **: Unhandled action type (nil)" too, but it works fine.

>compiz --version
compiz 0.5.5

>compiz.real --version
bash: compiz.real: command not found

note: "locate compiz.real" returns nothing

some-guy
September 17th, 2007, 09:46 PM
the 'real' compiz binary in suse is compiz, in ubuntu the 'real' one is compiz.real and compiz is a wrapper :D

google01103
September 17th, 2007, 10:37 PM
the 'real' compiz binary in suse is compiz, in ubuntu the 'real' one is compiz.real and compiz is a wrapper :D

Sort of figured it was something like that, but had hoped that after the re-unification there might be consistency (silly rabbit consistency is for ___________):(

spayder26
September 18th, 2007, 12:59 AM
Simply... I have no idea about your problem... Sorry google01103.
I'll try to install suse on a VM soon as posible. Be patient.

google01103
September 18th, 2007, 01:19 AM
Simply... I have no idea about your problem... Sorry google01103.
I'll try to install suse on a VM soon as posible. Be patient.

thanks, but I think the problem is you're using Debian or a derivative (ie Ubuntu) and either Suse is not in compliance with compiz packaging standards, Debian has "enhanced" compiz by wrapping things such as compiz with compiz.real or there is no packaging standard. This is something that should be addressed at the developer/packager level.

some-guy
September 18th, 2007, 02:47 PM
spader36, you could build a second compiz from git without any patches, that way it will be more compatible, with different packages:)

spayder26
September 18th, 2007, 11:18 PM
some-guy, I'll look for the problem when suse's donloading finish. But I used only "standard" methods to start beryl on last published release, like call compiz --replace and then call the decorator with --replace. Nobody should have any problem... but as I said, I'll test the script on suse soon as possible.

some-guy
September 19th, 2007, 04:08 AM
no compiz --replace will not start start compiz with the ccp plugin unless 'compiz' is patched or is a wrapper, so if you compile from git with no patches compiz --replace will not start compiz.

correct me if im wrong:)

crdlb
September 19th, 2007, 05:32 AM
no compiz --replace will not start start compiz with the ccp plugin unless 'compiz' is patched or is a wrapper, so if you compile from git with no patches compiz --replace will not start compiz.

correct me if im wrong:)

You are correct (unfortunately), there simply is no standard. And even 'compiz --replace ccp' won't work on many setups (AIGLX, fglrx/nvidia on Xgl) for people who aren't using a wrapper or patched binary. Fusion-icon bypasses the wrapper entirely when it detects one and then performs all the functions of a wrapper itself.

@spayder26
If you're going to go in that direction (implementing a replacement for a wrapper script), it would be much more productive (in my opinion) if we combine efforts. What do you think?

spayder26
September 19th, 2007, 11:43 PM
crdlb
I'd like the idea, but there are a few problems: I'm professional student and I don't have much time, I'm so noob too (I started programming python less than a year ago, and the same with using Ubuntu linux distro) and I don't think can be really usefull for you.
Sorry.

Also, thanks to tell us the script's problem solution, I'll fix it.

As I told, this simple script is only a temporal solution until fusion-icon is incomplete or unavailable, I'll never wanted to replace it (crdlb code is simply better).

some-guy
September 20th, 2007, 05:28 PM
@crdlb, what used to work for me on opensuse 10.2 x86 with fglrx was LD_PRELOAD=/usr/lib/libGL.so.1 compiz ---replace ccp I'm not on that computer anymore;) , but it should work.

On opensuse 10.2 x64 it should(probobly) be in /usr/lib64/libGL.so.1I'm just saying this because in data.py there is no suse entry;)

spayder26
September 21st, 2007, 01:06 AM
google01103
Sincerely... suse is a bull shit (it's slower than a lame turttle), I'm spending a lot of time to setup it properly to test compiztray (I hate his huge loading times...)... but be sure I'll do it, Novell will never stop me. xD

some-guy
September 21st, 2007, 02:17 AM
suse is a bull shit (it's slower than a lame turttle), I'm spending a lot of time to setup it properly to test compiztray (I hate his huge loading times...)... but be sure I'll do it, Novell will never stop me. xD

just wait for 10.3 to come out ;)

spayder26
September 21st, 2007, 02:31 AM
Another release for testers... (Please google01103 send us the feedback)
NEW RELEASE, SE BELOW

Changes:
Fallback option added (the script will fail if crashhandler plugin isn't installed, it'll be fixed soon)
Now compiztray avoid using the wrapper if exists.
Some improvements... that make the scripts unstable at moment.

some-guy
September 21st, 2007, 02:36 AM
I'll test it 2marrow, in my suse box :D

google01103
September 21st, 2007, 12:23 PM
Tested on Suse 10.2 x64 and it works!

Would like to know were to get definitions of "Advanced Options"

fyi - to create an rpm just dl alien deb and execute "alien -r"
=================================
I do get a bunch of warnings that don't seems to affect anything

Cleanning children...
PID 5572 still alive but not zombie. Tracked.
PID 5577 still alive but not zombie. Tracked.
Nomore to clean.
Calling WM; ['compiz', 'compiz', '--replace', 'ccp']; STARTED (PID 5588).
Waiting 15s to clear...
Window manager was restarted.
compiz: Trying '/usr/$LIB/libIndirectGL.so.1'
Attempted to unregister path (path[0] = org path[1] = freedesktop) which isn't registered
(emerald:5532): Wnck-WARNING **: Unhandled action type (nil)
<repeated a few times>
compiz (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format
(emerald:5532): Wnck-WARNING **: Unhandled action type (nil)
<repeated a few times>
A handler is already registered for the path starting with path[0] = "org"
<repeated a bunch>

spayder26
September 21st, 2007, 12:47 PM
compiz: Trying '/usr/$LIB/libIndirectGL.so.1'
Attempted to unregister path (path[0] = org path[1] = freedesktop) which isn't registered
(emerald:5532): Wnck-WARNING **: Unhandled action type (nil)
<repeated a few times>
compiz (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format
(emerald:5532): Wnck-WARNING **: Unhandled action type (nil)
<repeated a few times>
A handler is already registered for the path starting with path[0] = "org"
<repeated a bunch>

These messages isn't from compiztray, they came from compiz and compiz's decorator plugin. I see them too (I tried to hide them, but nothing seems to work).

I'm happy!!!!! :cool: I told that Novell'll never stop me ;)

Okay... now is time to fix bugs and make the script more stable.

google01103 and crdlb, thanks for your help on fixing this. some-guy... thanks for trying it :D

EDIT: google01103 you can use compiz --help and man compiz to see almost advanced options. You can also use compiztray --help and man compiztray to see other things compiztray can do ;).

spayder26
September 23rd, 2007, 02:48 AM
Changelog:

Added backend selector
Fixed the error when crashhandler isn't present.
Added reset all plugin configuration option.
Fixed the -ft:LANGUAGE param.
Found gconf backend segmentation fault error (http://forum.compiz-fusion.org/showthread.php?t=4352) (please, don't use it).
Other minor fixes...

EDIT:

Fixed dependency problem with visualboyadvance
Fixed restart compiz WM option

You can think it's a stable release ;) (It can have some bugs... but I only found the gconf backend one, and isn't compiztray's matter).

Download:

Compiztray won't be released anymore.

Post your feedback!! :D

EDIT: BUG found, compiz cannot be restarted with restart WM option (reselect compiz instead), the cause is a tiny programming error xD
EDIT2: If you have any problem width dependencies width non debian distros, download the .deb package and use alien to make it compatible. (Thanks google01103 for the advice).
EDIT3: Fixed the dependency problem with visualboyadvance (I'm stupid x'D, thanks to xinix) and the restart compiz WM option. Ignore the ubuntu word on filenames (the close bug utility put it automagically ;) ).
EDIT4: (10/18/07) Bug found, compiztray doesn't work well as Compiz's wrapper when using some Intel Graphics adaptors.
EDIT5: (10/25/07) New bug, loose-binding doesn't work.

google01103
September 24th, 2007, 03:04 PM
on 0.2.5 I'm getting "python(abi) = 2.5 is needed by compiztray-0.2.5-2.noarch" and I'm having issues resolving it with Smart, any idea where "python(abi)" comes from

spayder26
September 27th, 2007, 10:59 AM
on 0.2.5 I'm getting "python(abi) = 2.5 is needed by compiztray-0.2.5-2.noarch" and I'm having issues resolving it with Smart, any idea where "python(abi)" comes from

It's simple, compiztray requires python 2.5 (somebody told me that can run width 2.4, but It hasn't been tested). At least, you can try to "force" the installation, but I have no idea how to do it in Suse.

google01103
September 27th, 2007, 01:11 PM
It's simple, compiztray requires python 2.5 (somebody told me that can run width 2.4, but It hasn't been tested). At least, you can try to "force" the installation, but I have no idea how to do it in Suse.

not the reason as I'm running python-2.5.1-35

Actually, If I run "alien -r compuztray....deb" I get a rpm that installs fine without the error. Must be because alien may not work properly creating an rpm in a .deb only environment.

spayder26
September 27th, 2007, 08:46 PM
google01103... mmm... alien couldn't take the dependencies properly... but you can use alien on your own distro... and it should work.

google01103
September 28th, 2007, 01:54 AM
google01103... mmm... alien couldn't take the dependencies properly... but you can use alien on your own distro... and it should work.

and it does

xinix
September 28th, 2007, 06:06 AM
I get:
"dpkg: dependency problems prevent configuration of compiztray:
compiztray depends on visualboyadvance (>= 1.7.2)"

is this really needed?

spayder26
September 28th, 2007, 08:57 PM
xD

sorry, there is an error... (copy&paste problems)

EDIT: See the last release post. (http://forum.compiz-fusion.org/showpost.php?p=29865&postcount=75) I've fixed.

Lunks
October 6th, 2007, 07:46 PM
If I'm using Compiz from GIT, should I use your .tar.gz? Using .deb, apt-get keeps complaining about compiz dependency.
Also, could you provide another download server? Filefront's not working for me. I suggest using DivShare. www.divshare.com

spayder26
October 26th, 2007, 04:58 PM
Compiztray won't be released anymore. It becomes more unstable with every compiz's release, and have huge problems with the gconf frontend (segmentation faults and general linux freezes), the implemented wrapper options doesn't work well and its incompatible with Intel media graphics cards.

Fixing these bugs requires to recode everything, it means making a new script from zero.

Thanks to everyone, and sorry for inconveniences.

google01103
October 27th, 2007, 12:22 AM
Why not fork fusion-icon and just add the functionality that f-i is missing?

some-guy
January 12th, 2008, 10:40 PM
in case anyone still wants to see or use this I have an rpm I aliened here (http://somelinuxguy94.googlepages.com/compiztray-0.2.4-2.noarch.rpm) :D