You are not logged in.

#1 2011-03-22 01:03:53

jbritton
Member
Registered: 2011-03-15
Posts: 41

Starting dbus session in Compiz-Standalone [SOLVED]

So I've been building my system to run compiz standalone, but I'm having trouble with programs communicating with dbus.  This includes gnome-power-manager and xfce4-power-manager among others.  I get errors the dbus session not being started.  Also,

 dbus-monitor --session

returns

Failed to open connection to session bus: Empty address ''

My current ~/.xinitrc is:

emerald &
tint2 &
nitrogen --set-auto ~/.nitrogenconfig/set.jpg &
xscreensaver -nosplash &
/home/jbritton/.bin/conky/startconky.sh &
volwheel &
parcellite &
wicd-gtk &
sleep 10 && pidgin &
exec ck-launch-session fusion-icon

I've tried adding

dbus-launch --ssh-syntax --exit-with-session

and using

exec dbus-launch fusion-icon

but still get the same errors.

Any tips on what I'm missing here?\\Thanks in advance.

Last edited by jbritton (2011-04-04 17:27:20)

Offline

#2 2011-03-22 04:21:16

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: Starting dbus session in Compiz-Standalone [SOLVED]

Do you have dbus in your daemons array in /etc/rc.conf? Maybe you could try ck-launch-session and dbus-launch.

Offline

#3 2011-03-22 11:39:45

jbritton
Member
Registered: 2011-03-15
Posts: 41

Re: Starting dbus session in Compiz-Standalone [SOLVED]

Yeah, dbus is in my daemons.  I'm not sure what you mean by

Maybe you could try ck-launch-session and dbus-launch.

I've tried several combinations of this in my .xinitrc, but it seems I must not be putting it in the right syntax.  Any suggestion on the specific way to do this?

Thanks

Offline

#4 2011-03-22 14:48:59

wankel
Member
From: Iowa, USA
Registered: 2008-05-30
Posts: 218
Website

Re: Starting dbus session in Compiz-Standalone [SOLVED]

jbritton wrote:

So I've been building my system to run compiz standalone, but I'm having trouble with programs communicating with dbus.  This includes gnome-power-manager and xfce4-power-manager among others.  I get errors the dbus session not being started.  Also,

 dbus-monitor --session

returns

Failed to open connection to session bus: Empty address ''

My current ~/.xinitrc is:

emerald &
tint2 &
nitrogen --set-auto ~/.nitrogenconfig/set.jpg &
xscreensaver -nosplash &
/home/jbritton/.bin/conky/startconky.sh &
volwheel &
parcellite &
wicd-gtk &
sleep 10 && pidgin &
exec ck-launch-session fusion-icon

I've tried adding

dbus-launch --ssh-syntax --exit-with-session

and using

exec dbus-launch fusion-icon

but still get the same errors.

Any tips on what I'm missing here?\\Thanks in advance.

I run a standalone compiz setup and my ,xinitrc looks something like this:

avant-window-navigator &
exec dbus-launch compiz --replace ccp

and my ck-launch-session is put into slim (login manager)

Offline

#5 2011-03-22 15:07:58

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: Starting dbus session in Compiz-Standalone [SOLVED]

Interesting - this might be the cause of similar problems I'm having.

wankel wrote:

and my ck-launch-session is put into slim (login manager)

And where exactly would that be?

@OP'er: In another recent thread I read that it should be:
'exec ck-launch-session dbus-launch <wm>'
in that specific order.

I've just read it, will try it out later.

Last edited by zenlord (2011-03-22 15:08:42)

Offline

#6 2011-03-22 15:25:37

wankel
Member
From: Iowa, USA
Registered: 2008-05-30
Posts: 218
Website

Re: Starting dbus session in Compiz-Standalone [SOLVED]

Offline

#7 2011-03-23 13:08:59

jbritton
Member
Registered: 2011-03-15
Posts: 41

Re: Starting dbus session in Compiz-Standalone [SOLVED]

I tried wankel's suggestion but when slim loads and I enter my password, it fails to login and flashes back to slim.  So it seems that it is something in the line

exec dbus-launch fusion-icon

that is failing? I have tried

'exec ck-launch-session dbus-launch <wm>'

at some point but still no luck...

Should the directory /etc/dbus-1/session.d be empty? I noticed that my system.d has items in it but not the session.d, maybe this is part of the issue?

Zenlord, let me know if 

'exec ck-launch-session dbus-launch <wm>'

works for you, maybe I need to try something along those lines again.  I ended up installing laptop-tools and putting the battery section in my tint2, so I don't need gnome-power-manager anymore, but I still get errors with several programs that I have tried to run (awn, sound-juicer, nautilus).

Offline

#8 2011-03-23 14:40:25

wankel
Member
From: Iowa, USA
Registered: 2008-05-30
Posts: 218
Website

Re: Starting dbus session in Compiz-Standalone [SOLVED]

Have you tried using "compiz --replace cpp" as opposed to "fusion-icon"? fusion-icon is a program and not the window manager itself so that maybe the reason why its failing.

Offline

#9 2011-03-27 16:55:39

jbritton
Member
Registered: 2011-03-15
Posts: 41

Re: Starting dbus session in Compiz-Standalone [SOLVED]

Wankel, are you starting X with inittab method or the ~/.bash_profile method?

Offline

#10 2011-04-04 17:26:52

jbritton
Member
Registered: 2011-03-15
Posts: 41

Re: Starting dbus session in Compiz-Standalone [SOLVED]

I don't know how it took me so long to get this working, but I added

dbus-launch --ssh-syntax &

just before

exec ck-launch-session fusion-icon

and it is all working now.

I swear I tried this first and it didn't work... Oh well... Thanks for all the suggestions!

Offline

Board footer

Powered by FluxBB