PDA

View Full Version : fusion-icon --only-current-screen


kaviazzz
January 19th, 2008, 09:52 PM
hello im having problems editing the fusion icon to use only current screen!!
this is the command that works great on my system

LIBGL_ALWAYS_INDIRECT=true compiz --replace --only-current-screen ccp &

when i try to use the compiz-start script my X crashes!!

so i use my own script with just the command

but i 'd like to use the fusion-icon but when i run the fusion-icon X crashes!! again. so i believe that there might be 2 reason..
1) not --only-current-screen
2) not indirect true

The driver i use is fglrx on AIXGL server

I 'm not sure if pixmap detection works correct on my machine because of the dual screen

kav@Gentoobox ~ $ glxinfo | grep pixmap
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap

So anyone can tell me what changes do i need to make to the python scripts of fusion-icon to set these things right ??

Deciare
January 20th, 2008, 02:08 AM
You can change the list of options given to compiz by fusion-icon by editing /usr/lib/python2.5/site-packages/FusionIcon/data.py. Change the line:
compiz_args = ['--replace', '--sm-disable', '--ignore-desktop-hints', 'ccp']
to say:
compiz_args = ['--replace', '--sm-disable', '--ignore-desktop-hints', '--only-current-screen', 'ccp']
The line may not look exactly like that on your computer, but the important thing is adding --only-current-screen to the list.

If that doesn't help, also try starting fusion-icon with this command:
LIBGL_ALWAYS_INDIRECT=1 fusion-icon &
Compiz will inherit the value of $LIBGL_ALWAYS_INDIRECT if it is in fusion-icon's starting environment.

crdlb
January 20th, 2008, 07:11 AM
Could you post the full output of glxinfo and LIBGL_ALWAYS_INDIRECT=1 glxinfo on your system?

some-guy
January 20th, 2008, 10:03 PM
You can change the list of options given to compiz by fusion-icon by editing /usr/lib/python2.5/site-packages/FusionIcon/data.py. Change the line:
compiz_args = ['--replace', '--sm-disable', '--ignore-desktop-hints', 'ccp']
to say:
compiz_args = ['--replace', '--sm-disable', '--ignore-desktop-hints', '--only-current-screen', 'ccp']
The line may not look exactly like that on your computer, but the important thing is adding --only-current-screen to the list.

If that doesn't help, also try starting fusion-icon with this command:
LIBGL_ALWAYS_INDIRECT=1 fusion-icon &
Compiz will inherit the value of $LIBGL_ALWAYS_INDIRECT if it is in fusion-icon's starting environment.

not a good idea ;)
instead do this http://forum.compiz-fusion.org/showpost.php?p=45220&postcount=10
:D

crdlb
January 20th, 2008, 10:50 PM
Either way is quite fine :)

I hesitate to add --only-current-screen to the menu because of how rarely it is used, but I should add a field in the config file for specifying additional options (~/.config/compiz/fusion-icon)

Deciare
January 20th, 2008, 10:59 PM
not a good idea ;)
instead do this http://forum.compiz-fusion.org/showpost.php?p=45220&postcount=10
:D
I didn't know it was that easy to add an option to the menu. Thanks. ^_^

I hesitate to add --only-current-screen to the menu because of how rarely it is used, but I should add a field in the config file for specifying additional options (~/.config/compiz/fusion-icon)
That would be wonderful. A way to make customisations to fusion-icon that won't be blown away with each update. ^_^ It'd be nice for this to be a system-wide configuration file where a default can be specified, too, so each user on the system won't have to make the customisation separately.

Though the only customisation I make is to tell it to use a different icon (crdlb: I'm using "that ugly thing" ;) ), so I guess it isn't the same thing...