PDA

View Full Version : [SOLVED]emerald does not get loaded automatically


xerxesmc
June 5th, 2007, 05:28 PM
hi, i asked this question in a different thread, but to keep the forum clean i made this topic:

the problem is as follows:

i installed compcomm through the xeffects overlay on my gentoo-laptop, i furthermore installed the go-compiz-trayicon and its loading on startup, however everything is working besides the fact that emerald doesnt get loaded at startup.
everytime i start a X-session compiz starts and loads "GTK window decorator" instead of emerald, its not a real problem but still annoying.

i read [url=http://www.opencompositing.org/viewtopic.php?f=49&t=561#p3660:6f14e]this[/url:6f14e], but it didnt help, if gnome has loaded completely i can switch the decorator to emerald through go-compiz-trayicon, but this change seems not to get saved, after a reboot or restart the "GTK window decorator" is enabled again

my ~/.config/compiz-managerrc
[code:6f14e]
# Autogenerated configuration
# Generated: So 3. Jun 23:42:01 UTC 2007
# On lynchen by stas

# Behavior references: (yes/no)
# Set this to "yes" to get the same result as if you ran compiz-manager with -v
#VERBOSE=no

# Plugins
PLUGINS="ccp"
# Or, to append:
# PLUGINS="$PLUGINS <... >"

# Arguments, same as plugins to append
# ARGS="$ARGS <... >"
#ARGS="--loose-binding --sm-disable --replace"

# Screen detection:
SCREENS=1

# Decorator
# Use "unset DECORATOR" or set DECORATOR="" to not use one.
DECORATOR="emerald"
DECORATORARGS="--replace"
# Delay in seconds before the decorator is started.
DELAY="5"
# Set this to "no" to send all decorator errors to /dev/null
DECOERRORS="no"

# Values of 0 mean "true" (present), values of 1 means "false" (not present)
# Checks:
NVIDIA=0
FBCONFIG=0
XGL=1
TFP=0
NPOT=0
COMPOSITE=0
XDAMAGE=0
POSSIBLE=0
XSYNC=0
INDIRECT=1
[/code:6f14e]

if u need more information i will provide it, thx for ur help :D

Jupiter
June 5th, 2007, 09:24 PM
Try increasing the delay to maybe 10 and see if that works.

DELAY="10"

Deciare
June 5th, 2007, 11:30 PM
I'm trying to figure out source code to the go-compiz tray icon, and it appears that the decorator variable (which determines which window decorator to run as a default) is set by a loop that tests for whether you are on GNOME (if gnome-session is present, it launches gtk-window-decorator) or KDE (if dcop is present launches kde-window-decorator ). If I'm reading this correctly, there isn't a check for which decorator you last used. :?

Ah, hackish solution: open go-compiz.py, comment out or delete line 42, and put this in its place:
[code:0c9e1]decorator = "emerald --replace"[/code:0c9e1]

xerxesmc
June 6th, 2007, 11:52 AM
i've done it the dirty way...

i changed

[code:d9138]
gl_decorators = {'gnome-session':'gtk-window-decorator --replace', 'dcop':'kde-window-decorator --replace'}
[/code:d9138] in line 35

to

[code:d9138]
gl_decorators = {'gnome-session':'emerald --replace', 'dcop':'kde-window-decorator --replace'}
[/code:d9138]

now it starts emerald as my default decorator, i see that this is not the linux way of doing it, but it works

Deciare
June 6th, 2007, 12:45 PM
I don't know, what's the Linux way of doing it? ;)

The code is available to be modified, so it makes perfect sense to go with a temporary solution until a proper solution is implemented upstream. The ability to remember the last-used window decorator is already planned[/url:a18c6], so we'll hopefully see it soon!

Edit: Actually, it may be done already. It's in git now, at [url="git://anongit.opencompositing.org/users/keeguon/compiz-icon"]git://anongit.opencompositing.org/users ... ompiz-icon (http://www.opencompositing.org/viewtopic.php?p=2690#p2690:a18c6) . I can't test it since I'm missing a Python module I can't seem to find, but maybe you'll have better luck?

xerxesmc
June 6th, 2007, 02:06 PM
need to find out how to use git therefor :D

just emerge git with the doc useflag, need to find some time to read it

xerxesmc
June 6th, 2007, 03:20 PM
hmm, tried the git version, even wrote an ebuild for it, but it crashed my X twice...
i stick to the old one, till a stable version comes out

but thx for the help and the suggestions