[maemo-developers] How can I create multiple Dbus session in maemo?
From: Kevin, K Park. yans422 at gmail.comDate: Thu May 10 05:10:27 EEST 2007
- Previous message: Bugzilla brokan?
- Next message: N800 experimental host mode patches available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi. I'm stuck with mutiple dbus sessions in maemo... Currently, maemo 3.1 is just possible to create a single dbus session. But, I want to create multiple dbus sessions in maemo and scratchbox users to use their own dbus sessions. So, I watched the dbus-session-init.sh, right here.. > if [ -e /targets/links/scratchbox.config ]; then > SBOX='yes' > PARAMS="--session --print-address=2" > else > SBOX='' > PARAMS="--session" > fi > USER=`whoami` > SOCKETPATH =/tmp/session_bus_socket.$USER > PROG=/usr/bin/dbus-daemon > SVC="D-BUS session bus daemon" > > case "$1" in > start) > if [ "x$SBOX" = "x" ]; then > echo "-------------------- DBUS ------------" > source $LAUNCHWRAPPER_NICE_KILL start "$SVC" $PROG $PARAMS > echo "----- socket open for DBUS -----" > echo "export DBUS_SESSION_BUS_ADDRESS=unix:path=$SOCKETPATH" \ > > $SESSION_BUS_ADDRESS_FILE > else > echo "-------------------- DBUS launch -------------" > $LAUNCHWRAPPER_NICE_KILL start "$SVC" $PROG \ > $PARAMS 2>${SESSION_BUS_ADDRESS_FILE}.in > sleep 2 > if [ -r ${SESSION_BUS_ADDRESS_FILE}.in ]; then > TMP=`cat ${SESSION_BUS_ADDRESS_FILE}.in` > echo "export DBUS_SESSION_BUS_ADDRESS=$TMP" > > $SESSION_BUS_ADDRESS_FILE > rm -f ${SESSION_BUS_ADDRESS_FILE}.in > fi > fi > ;; > stop) > # giving parameter also here so that dsmetool works... > source $LAUNCHWRAPPER_NICE_KILL stop "$SVC" $PROG $PARAMS > ;; > *) > echo "Usage: $0 {start|stop}" > exit 1 > ;; > esac > So, I think I might have to modify this script or af-definds.sh, but I'm not sure that... If you guys know that, please give me your hands... :-) Thanks for reading, BRs Kevin. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20070510/de6c0045/attachment.htm
- Previous message: Bugzilla brokan?
- Next message: N800 experimental host mode patches available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]