PDA

View Full Version : Go-Compiz Tray Icon for CompComm...


Keeguon
May 21st, 2007, 10:11 AM
I'm developping since a while now the Go-Compiz Tray Icon for Compiz and recently I switched to CompComm by using Trevinos package so I ported the program to CompComm here is more information about it...

Presentation
Go-Compiz Tray Icon is a small program written in python which lets you control your GL Desktop it handles your different decorators (non-GL/GL) and configurators.

P.S.: Instructions are inside...

Screenshot:
http://thorfolio.free.fr/misc/compiz/compcomm/go-compiz_trayicon.png

Download:
http://thorfolio.free.fr/misc/compiz/co ... 5.2.tar.gz (http://thorfolio.free.fr/misc/compiz/compcomm/go-compiz_trayicon-0.5.2.tar.gz)

CryoGen
May 21st, 2007, 12:37 PM
Thanks !

But we need a Compcom icon :twisted:

I will give it a try tomorrow

Kristian
May 21st, 2007, 10:52 PM
Looks nice, I'll give it a shot when I get time :) (And we need something like this).

You should get yourself a git account for git.opencompositing.org and host it there, give iXce a ping and I'm sure he'll set it up for you.

gilir
May 22nd, 2007, 12:13 AM
Very good little app, and VERY usefull :) Maybe you could merge the Kristian's start script with your go-compiz-icon for launching compiz with good parameters ?

I'm keeping an eye on your app :)

Treviño
May 22nd, 2007, 07:46 PM
Cool I think I'll add to my packages (and so to my repo when I'll open it) :P

About compiz manager script integration by Kristian Lyngstol, I'd suggest that distributor should do this, I mean they should replace their /usr/bin/compiz (that is a compiz-wrapper really) with Kristian's script and that Go-Compiz will only call the compiz command...

However I think I'll follow this way!

Keeguon
May 22nd, 2007, 08:06 PM
Wow nice idea Treviño about the Kristian's script and the /usr/bin/compiz file because I was affraid to do some complicated thing to port the work of Kristian's on python and by the way thanks to port some interest in Go-Compiz and so much thanks to you Treviño if you add it to your packages...

Edit: Updated to 0.5.2 because of minor changes (download on first post).

Treviño
May 23rd, 2007, 02:52 AM
I'm making a deb, but I can't use the builtin installer, and I should change some hardcoded path... I'd suggest you to make a setup.py install environment...

EDIT: for packaging purposes I'm making some changes to the script (I've also renamed it to Compiz Manager), but I'd like to remove the gconf-related code inside the script... Or better, (but I don't know if this is possible in python), loading the gconf python module only if has been found metacity (that also if not directly, depends to it). So non-gnome guys could not install libgconf and related packages...

Then I think that this python script should be considered only a gui, that launches Kristian's script for managing compiz options on loading and that then allows some extra modifications (using always the Kristian's scripts stored options for saving data)...

Keeguon
May 23rd, 2007, 05:34 AM
About the builtin installer I know that if you're making a deb package it became useless so not a problem and I'm taking notes about the setup.py environnment. For the new name I was thinking to do it soon, so now you did it that's one more thing done, about the gconf-related code now I'll look up if I can do something as fast as I can !

Treviño
May 23rd, 2007, 06:33 AM
Ok, I've gave a look to the rest of the code, I'm not a great python coder (just some basics), but it seems much redundant... I'd like to put my hands in when I've some time to put something of less hardcoded if I can, however that's a good start!

PS: Is there any way to make the menus be refreshed at each click? So it will be possible to read at each menu-opening the actual situation (win.manager, decorator & co).

Bye!

Azrael Nightwalker
May 24th, 2007, 01:25 PM
Keeguon: why don't you add an option to choose the window manager (just like in beryl-manager) instead of "start metacity"?

Keeguon
May 24th, 2007, 06:36 PM
I'm bringing some news of developpement because these days I thought a lot about the future of Compiz-Manager (yeah we can call it like that now). So as Treviño said it previously the code is somehow redundant and very heavy so I started to recode it from scratch and here is the plan to make the app easier to use:
=> No need to load gconf if you're not a gnome user
=> Set a configuration file in a .compiz-manager file in your home to save your last running configuration and options

If you have any suggestions during that recoding don't hesitate to post them here...

P.S.: Azrael Nightwalker your suggestion is now on the todo list so it'll be here after the recoding !

Jupiter
May 24th, 2007, 07:13 PM
AWESOME work Keeguon.

I wonder if we can use the compiz icon for this app.
The small icon we see in the compiz forum, or a similar
one.
http://forum.compiz.org/index.php?sid=4 ... af7c2669a4 (http://forum.compiz.org/index.php?sid=4481bc48fde4d8f44411bfaf7c2669a4)

Azrael Nightwalker
May 24th, 2007, 07:32 PM
your suggestion is now on the todo list so it'll be here after the recoding !
Great! :)

davim
May 24th, 2007, 09:40 PM
[quote="Azrael Nightwalker":0fb47]Keeguon: why don't you add an option to choose the window manager (just like in beryl-manager) instead of "start metacity"?[/quote:0fb47]

yeh that would be better :)

SmSpillaz
May 25th, 2007, 01:10 AM
Does this actually install anything? Because I tried to start the installer - hit next twice and then ran go-compiz.py and I got a file not found. I then ran ./go-compiz.py in the local folder and I crashed complaining that there was nothing in /usr/local

franzrogar
May 25th, 2007, 02:16 AM
Thank you very much, Keeguon.

I'll give it a try and if evrything is ok, I'll add it to my script so users will not have to do anything but join it and thank you very much :)

SmSpillaz
May 25th, 2007, 09:58 AM
Hey - finnaly got it working - sort of. I think the installer needs to be fixed so that something actually installs inside of /usr/share and /usr/local. I think that because this icon does not really support environment variables (Such as INTEL_BATCH=1 , LIBGL_ALWAYS_INDIRECT=1 __GL_YEILD='NOTHING' etc), you whould proabaly join forces with Kristan to develop this as he is working compiz-manager which supports autodetection of envrionment variables.

Regards

SmSpillaz

Keeguon
May 28th, 2007, 01:39 PM
Gosh, after 72 hours I finally finished that recoding and it is now on the git repos see:
http://gitweb.opencompositing.org/?p=us ... ;a=summary (http://gitweb.opencompositing.org/?p=users/keeguon/compiz-manager;a=summary)

P.S.: Promess that near in the future LIBGL_ALWAYS_INDIRECT will be integrated due to the high amount of demand !

Jupiter
May 28th, 2007, 04:44 PM
Gosh, after 72 hours I finally finished that recoding and it is now on the git repos see:
http://gitweb.opencompositing.org/?p=us ... ;a=summary (http://gitweb.opencompositing.org/?p=users/keeguon/compiz-manager;a=summary)

P.S.: Promess that near in the future LIBGL_ALWAYS_INDIRECT will be integrated due to the high amount of demand !

I tried the go-compiz and it only supported ccs-settings and caused my computer to
hard lock. Does the new git rev support ccsm instead of ccs-settings and is it more stable?

Also since installing this go-compiz. I can no longer get compiz to work at all.
There is an install for go-compiz but there is no uninstall whats up with that.

Keeguon
May 28th, 2007, 05:41 PM
Talking about go-compiz you can uninstall it with the graphical installer which is also a uninstaller...

About Compiz Manager, the default settings manager is cssm (so that's one answer) and a program the program is set to be stable but you know what it's on git so don't expect so much (that's the other one) :) !

Jupiter
May 28th, 2007, 06:15 PM
Talking about go-compiz you can uninstall it with the graphical installer which is also a uninstaller...

About Compiz Manager, the default settings manager is cssm (so that's one answer) and a program the program is set to be stable but you know what it's on git so don't expect so much (that's the other one) :) !

Thanks for the info Keegoun

telperion
May 29th, 2007, 08:01 PM
Screenshot:
http://img409.imageshack.us/img409/149/ccciconrn7.jpg

Keeguon
May 29th, 2007, 08:30 PM
Thanks for the screenshot dude !

hish
May 29th, 2007, 11:01 PM
is it possible to make this more KDE-compatible? it seems as though it starts an instance of gnome-desktop in the background, which is kinda pointless when I have kdesktop. I'm trying to run it on KDE startup, and it seems as though it prevents tray icons for some applications (kmix for example) from appearing.
could be a settings issue on my end..

otherwise it's great having compcomm control in my systray..

Jupiter
May 29th, 2007, 11:11 PM
is it possible to make this more KDE-compatible? it seems as though it starts an instance of gnome-desktop in the background, which is kinda pointless when I have kdesktop. I'm trying to run it on KDE startup, and it seems as though it prevents tray icons for some applications (kmix for example) from appearing.
could be a settings issue on my end..

otherwise it's great having compcomm control in my systray..


I see the same thing. As a matter of fact, once when it locked up i had a gnome desktop.

anker
June 1st, 2007, 08:38 PM
Keeguon, I have read now this topic and i can oly say : good GOOD work! :D
I'll try this version of go-compiz tray soon...
Bye

Keeguon
June 1st, 2007, 10:15 PM
@italytanker: Thanks a lot !

@Treviño: I'm doing some rewriting to do your request about not loading decorator if it is the same as the one which is activated in the config file for the refresh of the menu you'll have to wait a lil' longer...

SmSpillaz
June 2nd, 2007, 11:14 AM
I see that you have added support for ENV variables. How do I enable them / configure them?

Also there used to be an option called 'Use Metacity Theme' Where did it go? =/

Keeguon
June 3rd, 2007, 07:46 PM
For the moment the ENV variables are setted automatically so you can't enable/disable or configure them anytime you want but since you're not the first one asking for those options then I keep in mind a future possibility of adding this features...

Now for the 'Enable Metacity Theme' missing option I'm working on a reintegration very soon ! DONE

Treviño
June 5th, 2007, 04:23 PM
Thanks ;)

Unfortunately I've too few time to help in development :(

lagorgy
June 6th, 2007, 03:27 AM
Hi, it was working great for me, but now im getting this error:

orgy@orgy:~/plugins/compiz-icon$ compiz-icon
/usr/bin/compiz
/usr/local/bin/ccsm
/usr/bin/gtk-window-decorator
/usr/local/bin/emerald
/usr/bin/metacity
Traceback (most recent call last):
File "./compiz-icon.py", line 401, in <module>
gwd_backend = gconf.client_get_default()
NameError: name 'gconf' is not defined


suggestions?

Keeguon
June 6th, 2007, 05:12 PM
Are you running on GNOME or on KDE? Have you tried to install python-gconf?

lagorgy
June 6th, 2007, 06:13 PM
I'm using ubuntu 7.04, it comes with python-gconf installed by default.

compiz-icon did work for me before, i started getting this error after pulling the latest changes from git. :(

xerxesmc
June 6th, 2007, 09:18 PM
hey me again,
i just reemerged compcomm from git. hehe lots of stuff broke

first of all, ccp does not get loaded, the corresponding errormessage is

compiz --replace ccp --sm-disable
[code:5e803]
compiz (core): Can't load plugin 'ccp' because it is built for ABI version 20070603 and actual version is 20070606
compiz (core): Couldn't activate plugin 'ccp'
[/code:5e803]

running compiz with the gconf backend it works, but i dont have any idea on how to dynamical load / unload plugins or edit plagins' values

furthermore there is an error considering the compiz-icon package/git-version
i synced to the git-versioan at like today at 19:00 (6. july) and installes it and running
[code:5e803]
/usr/share/compiz-icon/compiz-icon.py 2> error.txt
[/code:5e803]
gives this output
[code:5e803](compiz-icon.py:11875): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py:69: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
which: no compiz.real in (/home/stas/bin:/home/stas/scripts:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games/bin)
which: no kde-window-decorator in (/home/stas/bin:/home/stas/scripts:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games/bin)
which: no kwin in (/home/stas/bin:/home/stas/scripts:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games/bin)
./compiz-icon.py:435: Warning: invalid (NULL) pointer instance
wm_menu = gtk.Menu()
./compiz-icon.py:435: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
wm_menu = gtk.Menu()
compiz.real: no process killed
compiz: no process killed
metacity: no process killed
kwin: no process killed
gtk-window-decorator: no process killed
kde-window-decorator: no process killed
emerald: no process killed
./compiz-icon.py:458: Warning: invalid (NULL) pointer instance
backend_menu = gtk.Menu()
./compiz-icon.py:458: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
backend_menu = gtk.Menu()
./compiz-icon.py:472: Warning: invalid (NULL) pointer instance
options_menu = gtk.Menu()
./compiz-icon.py:472: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
options_menu = gtk.Menu()
./compiz-icon.py:490: Warning: invalid (NULL) pointer instance
decorator_menu = gtk.Menu()
./compiz-icon.py:490: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
decorator_menu = gtk.Menu()

(emerald:11892): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

(emerald:11892): Gtk-WARNING **: cannot open display:
gtk-window-decorator: no process killed
kde-window-decorator: no process killed
metacity: no process killed
kwin: no process killed
./compiz-icon.py:513: Warning: invalid (NULL) pointer instance
menu = gtk.Menu()
./compiz-icon.py:513: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
menu = gtk.Menu()
./compiz-icon.py:514: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item = gtk.ImageMenuItem(stock_id=gtk.STOCK_PREFERENCES)
./compiz-icon.py:514: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item = gtk.ImageMenuItem(stock_id=gtk.STOCK_PREFERENCES)
./compiz-icon.py:514: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item = gtk.ImageMenuItem(stock_id=gtk.STOCK_PREFERENCES)
./compiz-icon.py:517: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item = gtk.ImageMenuItem('Emerald Theme Manager')
./compiz-icon.py:517: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item = gtk.ImageMenuItem('Emerald Theme Manager')
./compiz-icon.py:517: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item = gtk.ImageMenuItem('Emerald Theme Manager')
./compiz-icon.py:525: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item.set_image(img_etm)
./compiz-icon.py:525: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item.set_image(img_etm)
./compiz-icon.py:525: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item.set_image(img_etm)
./compiz-icon.py:530: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item = gtk.ImageMenuItem("Start/Reload Window Manager")
./compiz-icon.py:530: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item = gtk.ImageMenuItem("Start/Reload Window Manager")
./compiz-icon.py:530: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item = gtk.ImageMenuItem("Start/Reload Window Manager")
./compiz-icon.py:534: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item.set_image(img_refresh)
./compiz-icon.py:534: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item.set_image(img_refresh)
./compiz-icon.py:534: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item.set_image(img_refresh)
./compiz-icon.py:536: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item = gtk.ImageMenuItem("Select Window Manager")
./compiz-icon.py:536: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item = gtk.ImageMenuItem("Select Window Manager")
./compiz-icon.py:536: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item = gtk.ImageMenuItem("Select Window Manager")
./compiz-icon.py:540: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item.set_image(img_wm)
./compiz-icon.py:540: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item.set_image(img_wm)
./compiz-icon.py:540: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item.set_image(img_wm)
./compiz-icon.py:545: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item = gtk.ImageMenuItem("Compiz Options")
./compiz-icon.py:545: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item = gtk.ImageMenuItem("Compiz Options")
./compiz-icon.py:545: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item = gtk.ImageMenuItem("Compiz Options")
./compiz-icon.py:549: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item.set_image(img_options)
./compiz-icon.py:549: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item.set_image(img_options)
./compiz-icon.py:549: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item.set_image(img_options)
./compiz-icon.py:554: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item = gtk.ImageMenuItem("Start/Reload Decorator")
./compiz-icon.py:554: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item = gtk.ImageMenuItem("Start/Reload Decorator")
./compiz-icon.py:554: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item = gtk.ImageMenuItem("Start/Reload Decorator")
./compiz-icon.py:558: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item.set_image(img_refresh)
./compiz-icon.py:558: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item.set_image(img_refresh)
./compiz-icon.py:558: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item.set_image(img_refresh)
./compiz-icon.py:560: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item = gtk.ImageMenuItem("Select Window Decorator")
./compiz-icon.py:560: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item = gtk.ImageMenuItem("Select Window Decorator")
./compiz-icon.py:560: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item = gtk.ImageMenuItem("Select Window Decorator")
./compiz-icon.py:564: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item.set_image(img_wd)
./compiz-icon.py:564: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item.set_image(img_wd)
./compiz-icon.py:564: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item.set_image(img_wd)
./compiz-icon.py:580: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item = gtk.ImageMenuItem(stock_id=gtk.STOCK_ABOUT)
./compiz-icon.py:580: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item = gtk.ImageMenuItem(stock_id=gtk.STOCK_ABOUT)

(emerald:11894): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
./compiz-icon.py:580: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item = gtk.ImageMenuItem(stock_id=gtk.STOCK_ABOUT)
./compiz-icon.py:583: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
item = gtk.ImageMenuItem(stock_id=gtk.STOCK_QUIT)
./compiz-icon.py:583: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
item = gtk.ImageMenuItem(stock_id=gtk.STOCK_QUIT)
./compiz-icon.py:583: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
item = gtk.ImageMenuItem(stock_id=gtk.STOCK_QUIT)

(emerald:11894): Gtk-WARNING **: cannot open display:
./compiz-icon.py:590: Warning: invalid (NULL) pointer instance
tray = gtk.StatusIcon()
./compiz-icon.py:590: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: gdk_display_sync: assertion `GDK_IS_DISPLAY (display)' failed
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: gdk_drawable_get_display: assertion `GDK_IS_DRAWABLE (drawable)' failed
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: gdk_x11_get_xatom_by_name_for_display: assertion `GDK_IS_DISPLAY (display)' failed
tray = gtk.StatusIcon()
./compiz-icon.py:590: GtkWarning: gdkdrawable-x11.c:878 drawable is not a pixmap or window
tray = gtk.StatusIcon()
/usr/bin/compiz-icon: line 6: 11875 Segmentation fault ./compiz-icon.py
[/code:5e803]

i know its a git-version and totally bloody bleeding edge, just want to point that out.
before reemerging compiz everything went fine (i shouldnt have done a remerge :D)

is there maybe something i can do to get the trayicon working with the ccp backend?

Keeguon
June 6th, 2007, 09:41 PM
@lagorgy: Weird I'll give a look on the thing but that should work...

@xerxesmc: Your CCP problem come from your compilation not from compiz-icon so post a problem topic about that elsewhere or try to recompile and for the rest of the errors it's like python is using C library of gtk instead of the pygtk one, please verify if pygtk is installed and keep me in touch...

omne
June 6th, 2007, 09:55 PM
For the compiz version problem just remove the old versions.

And same problem than lagorgy… same distrbution (ubuntu feisty 64)

ccsm don’t run too : [url:f24a4]http://www.opencompositing.org/viewtopic.php?f=16&t=606[/url:f24a4]

Omne

adamk
June 9th, 2007, 09:35 PM
Hi, it was working great for me, but now im getting this error:

orgy@orgy:~/plugins/compiz-icon$ compiz-icon
/usr/bin/compiz
/usr/local/bin/ccsm
/usr/bin/gtk-window-decorator
/usr/local/bin/emerald
/usr/bin/metacity
Traceback (most recent call last):
File "./compiz-icon.py", line 401, in <module>
gwd_backend = gconf.client_get_default()
NameError: name 'gconf' is not defined


suggestions?

I decided to finally try compiz-icon on my system this afternoon, and I'm getting the same error message. Did you ever get this resolved? If not, does anyone have any ideas?

Adam

lagorgy
June 10th, 2007, 06:12 AM
Hi, it was working great for me, but now im getting this error:

orgy@orgy:~/plugins/compiz-icon$ compiz-icon
/usr/bin/compiz
/usr/local/bin/ccsm
/usr/bin/gtk-window-decorator
/usr/local/bin/emerald
/usr/bin/metacity
Traceback (most recent call last):
File "./compiz-icon.py", line 401, in <module>
gwd_backend = gconf.client_get_default()
NameError: name 'gconf' is not defined


suggestions?

I decided to finally try compiz-icon on my system this afternoon, and I'm getting the same error message. Did you ever get this resolved? If not, does anyone have any ideas?

Adam

still have the same problem.

Keeguon
June 11th, 2007, 08:14 AM
Sorry guys I haven't showed up last week but I'm currently really busy with exams in France so this week there will be no news too but after I promess I'll correct those bugs !

Cimi
June 14th, 2007, 10:30 AM
There's a bug in the code where it fetches for menu entries.

Of course, if emerald is not installed, other two window decorators will crash the icon because "emerald_decorator" is undefined

[code:2ba87]# Window Decorator
decorator_menu = gtk.Menu()
if installed('emerald'):
emerald_decorator = gtk.RadioMenuItem(label=" Emerald")
emerald_decorator.connect("activate", emerald_menu_activate)
if set_active_decorator == 'emerald':
emerald_decorator.set_active(True)
decorator_menu.append(emerald_decorator)
if installed('kde-window-decorator'):
kwd_decorator = gtk.RadioMenuItem(label=" KDE Window Decorator")
kwd_decorator.set_group(kwd_decorator)
kwd_decorator.connect("activate", kwd_menu_activate)
if set_active_decorator == 'kde-window-decorator':
kwd_decorator.set_active(True)
decorator_menu.append(kwd_decorator)
if installed('gtk-window-decorator'):
gwd_decorator = gtk.RadioMenuItem(label=" GTK Window Decorator")
gwd_decorator.set_group(gwd_decorator)
gwd_decorator.connect("activate", gwd_menu_activate)
if set_active_decorator == 'gtk-window-decorator':
gwd_decorator.set_active(True)
decorator_menu.append(gwd_decorator)[/code:2ba87]
Colored...
[quote:2ba87]# Window Decorator
decorator_menu = gtk.Menu()
if installed('emerald'):
emerald_decorator = gtk.RadioMenuItem(label=" Emerald")
emerald_decorator.connect("activate", emerald_menu_activate)
if set_active_decorator == 'emerald':
emerald_decorator.set_active(True)
decorator_menu.append(emerald_decorator)
if installed('kde-window-decorator'):
kwd_decorator = gtk.RadioMenuItem(label=" KDE Window Decorator")
kwd_decorator.set_group(emerald_decorator)
kwd_decorator.connect("activate", kwd_menu_activate)
if set_active_decorator == 'kde-window-decorator':
kwd_decorator.set_active(True)
decorator_menu.append(kwd_decorator)
if installed('gtk-window-decorator'):
gwd_decorator = gtk.RadioMenuItem(label=" GTK Window Decorator")
gwd_decorator.set_group(emerald_decorator)
gwd_decorator.connect("activate", gwd_menu_activate)
if set_active_decorator == 'gtk-window-decorator':
gwd_decorator.set_active(True)
decorator_menu.append(gwd_decorator)[/quote:2ba87]

sonicbhoc
June 14th, 2007, 02:17 PM
Your website is blocked at my school, so I can't try it at the moment. I'll try it when I get home, though.

sonicbhoc
June 17th, 2007, 10:15 PM
Alright, I tried it, and the first thing I noticed is that it requires gksudo. This is bad because:

1. no gksudo on my machine.
2. if there was, I don't have sudo configured on my machine, so nobody can use it anyway, assuming that gksudo is a frontend to sudo.

If I were you, I'd have it try to detect the current environment. Check to see if it's running KDE - if so, use kdesu for root commands. If it's running GNOME or XFCE use gksudo. If it's running anything else and you aren't root, say "please run this script as root." If you need help doing that, I can do a little for you. Like, I can tell you that you use os.environ if I remember correctly in python to determine environment variables.

EDIT: Another thing is that it's trying to load gconf, which is worse. I don't use GNOME, and I find gconf annoying. Not to mention the extra GNOME deps.

[code:e3f6c]Traceback (most recent call last):
File "/usr/bin/go-compiz.py", line 8, in ?
import gtk, gobject, gconf
ImportError: No module named gconf
[/code:e3f6c]

I don't use gconf for compiz, so is it really needed for the go-compiz icon?

Keeguon
June 17th, 2007, 10:37 PM
@sonicbhoc: First of all you are using an old version check on the git repository for compiz-icon...

adamk
June 18th, 2007, 12:52 AM
FYI, I've opened up a number of bugs concerning compiz-icon and/or compiz-manager in the opencompositing bugzilla:

http://bugs.opencompositing.org/show_bug.cgi?id=37
http://bugs.opencompositing.org/show_bug.cgi?id=38
http://bugs.opencompositing.org/show_bug.cgi?id=39
http://bugs.opencompositing.org/show_bug.cgi?id=40

Neither app is listed as a component, so I believe I chose ccs-lib for all four :-)

Adam

Keeguon
June 18th, 2007, 06:31 PM
@adamk: Thanks for centralizing the bugs cause I've finished my exams now I can work on correcting those bugs :) !

adamk
June 18th, 2007, 06:34 PM
I thought it might be helpful :-) I'm honestly not sure if they all qualify as compiz-icon bugs (or feature requests) but as this is how most people are (or will be) starting up compiz, it's what made the most sense to me.

Adam

Cimi
June 18th, 2007, 06:37 PM
I thought it might be helpful :-) I'm honestly not sure if they all qualify as compiz-icon bugs (or feature requests) but as this is how most people are (or will be) starting up compiz, it's what made the most sense to me.

Adam
take a look also at the bug i've posted

adamk
June 18th, 2007, 06:50 PM
cimi, I'd suggest adding an entry to bugzilla for it: http://bugs.opencompositing.org/

While the forums are a good place to ask for help and dicuss problems, they are no substitute for a good bug tracker :-)

Adam

hish
June 20th, 2007, 02:02 AM
just want to say I'm having the same gconf error as has been mentioned over the last couple of pages.
tried the fix mentioned in the bugtracker but it doesn't seem to apply to the compiz-icon.py file I've got - using the newest version available in git.

mikibg
June 22nd, 2007, 09:39 PM
every1 have same error in line 401 .....

bangdoll
June 25th, 2007, 02:39 AM
I have same error in line 401.

'compiz-icon.py' will import gconf module, if there is a process called 'gnome-session'. The problem is there is no such a process. (Of course, I'm using gnome.)

This is a list of processes containing 'gnome' in their name.

13755 ? 00:01:25 gnome-system-mo
16362 ? 00:00:00 gnome-keyring-d
16364 ? 00:00:02 gnome-settings-
16381 ? 00:00:20 gnome-panel
16392 ? 00:00:00 gnome-volume-ma
16397 ? 00:00:00 gnome-vfs-daemo
16406 ? 00:00:22 gnome-cups-icon
16413 ? 00:00:08 gnome-power-man
16430 ? 00:00:02 gnome-macmenu-a
16947 ? 00:49:40 gnome-terminal
16953 ? 00:00:00 gnome-pty-helpe

I think maybe the way detecting gnome should be changed.
In my case, I'm using 'gdm', instead of 'gnome-session', to solve this problem
(line 385 in 'compiz-icon.py')

phidelio
June 28th, 2007, 01:21 PM
Hi, it was working great for me, but now im getting this error:

orgy@orgy:~/plugins/compiz-icon$ compiz-icon
/usr/bin/compiz
/usr/local/bin/ccsm
/usr/bin/gtk-window-decorator
/usr/local/bin/emerald
/usr/bin/metacity
Traceback (most recent call last):
File "./compiz-icon.py", line 401, in <module>
gwd_backend = gconf.client_get_default()
NameError: name 'gconf' is not defined


suggestions?

is there any hope for the gnome users...

iGama
June 28th, 2007, 02:23 PM
This is what I did to make compiz-icon work:

Using Ubuntu-Feisty.

1º add to "compiz-icon.py"

[code:70ae4]import gconf[/code:70ae4]

2º In line 386 of "compiz-icon.py"

it has
[code:70ae4] if 'gnome-session' in line.strip():[/code:70ae4]
and in my processes there is no gnome-session, so I changed it to :
[code:70ae4] if 'gdm' in line.strip():[/code:70ae4]

3º changed ~/.compiz-icon/config.ini

added to the end:

[code:70ae4][decorator]
set_active_decorator =[/code:70ae4]

I had to do this, because compiz-icon.py has trying to fetch that variable and it didn't exist.

4º changed "compiz.real" to "compiz" in the compiz-icon.py file

MADevil
June 29th, 2007, 02:11 PM
can it be possible to add a ini method config , and not gconf , for others WM users plz ?

dimmanramone
June 29th, 2007, 09:40 PM
Great work Keeguon,

i use ubuntu feisty and i didn't have any problems installing it or making it work...
Just 2 little things,
* is it possible, to start with the emerald windows decoration as a default and not metacity or i have to choose that everytime I login :S
* and second and last one when i click on preferences i get Couldn't find "/home/user/.css, any idea why?

/dimman

Forlong
June 30th, 2007, 10:52 PM
There's a new tray-icon called fusion-icon in git and it works great for me (compiz-icon didn't at all, unfortunately). :)

Get it here:
[code:cb78e]git clone git://anongit.opencompositing.org/users/crdlb/fusion-icon[/code:cb78e]

sonicbhoc
July 1st, 2007, 12:52 AM
Excellent! Worked perfectly on my computer. I've informed the Gentoo ebuild maintainers and hopefully they'll make an ebuild for it...

mauro_er
July 1st, 2007, 01:19 AM
Where can i download it for Suse 10.2?

sonicbhoc
July 1st, 2007, 01:22 AM
Ask the person packaging for suse to make a package for it. No clue where you can get it. I know you could compile it if you tried, though.

mauro_er
July 1st, 2007, 01:37 AM
[quote="mauro_er":04a41]Where can i download it for Suse 10.2?[/quote:04a41]

I have downloaded and installed GIT and now I got the package. But when i try to execute the program I got the following error:

[code:04a41]AttributeError: 'compizconfig.Context' object has no attribute 'ProcessEvents'[/code:04a41]

any ideas?

gwydion.dot
July 1st, 2007, 05:23 PM
Hi there


fusion-icon was working one time, now it will not start:

[code:5ba0a]
Adding plugin named gears
Backend : ini
Integration : true
Profile : default
Initializing decoration options...done
which: no compiz.real in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/bin:/usr/qt/3/bin)
/usr/bin/compiz
/usr/bin/ccsm
/usr/local/bin/gtk-window-decorator
which: no kde-window-decorator in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/bin:/usr/qt/3/bin)
/usr/local/bin/emerald
/usr/bin/metacity
which: no kwin in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/bin:/usr/qt/3/bin)
which: no xfwm4 in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/bin:/usr/qt/3/bin)
5985
gnome is True , kde is False
* choosing gtk-window-decorator --replace as default decorator
* setting decorator to gtk-window-decorator --replace
Traceback (most recent call last):
File "/usr/bin/fusion-icon", line 297, in ?
active_wm = configuration.get('window_manager', 'active_wm')
File "/usr/lib/python2.4/ConfigParser.py", line 511, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'window_manager'
[/code:5ba0a]


Compiz and co. is from git, I've nothing changed since then...

dash
July 1st, 2007, 09:00 PM
fusion-icon is causing my compiz to slow down whenever I am doing something CPU intensive, like emerging a package. I guess it has got something to do with setting something wrong. compiz-icon was/is working fine.

iGama
July 6th, 2007, 03:18 PM
Fusion-Icon is working great in Ubuntu Feisty.

Didn't have to change nothing in the code for it to work. Download it and run it :)