Skip to Content.
Sympa Menu

sm-commit - Re: [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (fab6a12cfdf3cafad00edf8ca5642876a6bd70b5)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: "Andraž 'ruskie' Levstik" <ruskie AT mages.ath.cx>
  • To: <sm-commit AT lists.ibiblio.org>
  • Subject: Re: [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (fab6a12cfdf3cafad00edf8ca5642876a6bd70b5)
  • Date: Thu, 17 May 2007 11:12:07 +0200

> > > -9. must setup session bus (dbus) correctly
> > > +#9. must setup session bus (dbus) correctly, should not be
> > > necessary to do this +# add 'eval `dbus-launch --auto-syntax` '
> > > to ~./.xsession +
> > > +10. add an entry for kde4 to /usr/share/xsessions (similar to that
> > > for kde3), + so that can run kde4 from kdm
> > > +
> >
> > Is there a way to have the spell do #9 and #10 by writing a 'correct'
> > /usr/share/xsessions/kde4 entry, or does the dbus-launch have to be
> > run from ~/.xsession only?
> >
>
> I am experimenting with this. I am also thinking about a separate init
> script to do dbus-launch, which would run after smgl-messagebus and
> before kdm4 or any other display manager
>

Last I checked dbus-launch should be run by the user running the app not
globaly. So putting this into xsession would be I think the most correct
way.


This is what I use in my ~/.zshrc

prepare_dbus() {
if [ -x /usr/bin/dbus-launch ]; then
if [ -f $HOME/.dbus/dbus-session ] ; then
. ~/.dbus/dbus-session
export DBUS_SESSION_BUS_PID
export DBUS_SESSION_BUS_ADDRESS
else
DBUS_SESSION_BUS_PID=1
fi
if kill -0 $DBUS_SESSION_BUS_PID ; then
:
else
dbus-launch --sh-syntax > ~/.dbus/dbus-session
. ~/.dbus/dbus-session
echo $DBUS_SESSION_BUS_PID >> ~/.dbus/dbus-session.pid
fi
fi
}
#check if it has a PID yet and check if I acctaully want to have it
#running
if [ -z "$DBUS_SESSION_BUS_PID" ] && [ ! -e ~/.nodbus ]; then
prepare_dbus
fi


--
Andraž "ruskie" Levstik
Source Mage GNU/Linux Games grimoire guru
Geek/Hacker/Tinker

Hacker FAQ: http://www.plethora.net/%7eseebs/faqs/hacker.html
Be sure brain is in gear before engaging mouth.

Key id = F4C1F89C
Key fingerprint = 6FF2 8F20 4C9D DB36 B5B6 F134 884D 72CC F4C1 F89C





Archive powered by MHonArc 2.6.24.

Top of Page