<div> </div>
<div> Hi.</div>
<div> </div>
<div> I'm stuck with mutiple dbus sessions in maemo...</div>
<div> Currently, maemo 3.1 is just possible to create a single dbus session. </div>
<div> But, I want to create multiple dbus sessions in maemo and scratchbox users to use their own dbus sessions. </div>
<div> </div>
<div> So, I watched the dbus-session-init.sh, right here..</div>
<div><font color="#6600cc"> </font></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<p><font color="#6600cc">if [ -e /targets/links/scratchbox.config ]; then<br> SBOX='yes'<br> PARAMS="--session --print-address=2"<br>else<br> SBOX=''<br> PARAMS="--session"<br>fi<br>
USER=`whoami`<br>SOCKETPATH =/tmp/session_bus_socket.$USER<br>PROG=/usr/bin/dbus-daemon<br>SVC="D-BUS session bus daemon"</font></p>
<p><font color="#6600cc">case "$1" in<br>start)<br> if [ "x$SBOX" = "x" ]; then<br> echo "-------------------- DBUS ------------"<br> source $LAUNCHWRAPPER_NICE_KILL start "$SVC" $PROG $PARAMS
<br> echo "----- socket open for DBUS -----"<br> echo "export DBUS_SESSION_BUS_ADDRESS=unix:path=$SOCKETPATH" \<br> > $SESSION_BUS_ADDRESS_FILE<br> else<br> echo "-------------------- DBUS launch -------------"
<br> $LAUNCHWRAPPER_NICE_KILL start "$SVC" $PROG \<br> $PARAMS 2>${SESSION_BUS_ADDRESS_FILE}.in<br> sleep 2<br> if [ -r ${SESSION_BUS_ADDRESS_FILE}.in ]; then<br> TMP=`cat ${SESSION_BUS_ADDRESS_FILE}.in`
<br> echo "export DBUS_SESSION_BUS_ADDRESS=$TMP" > $SESSION_BUS_ADDRESS_FILE<br> rm -f ${SESSION_BUS_ADDRESS_FILE}.in<br> fi<br> fi<br> ;;<br>stop)<br> # giving parameter also here so that dsmetool works...
<br> source $LAUNCHWRAPPER_NICE_KILL stop "$SVC" $PROG $PARAMS<br> ;;<br>*)<br> echo "Usage: $0 {start|stop}"<br> exit 1<br> ;;<br>esac</font></p></blockquote>
<div> </div>
<div> So, I think I might have to modify this script or af-definds.sh, but I'm not sure that...</div>
<div> If you guys know that, please give me your hands... :-)</div>
<div> </div>
<div> </div>
<div>Thanks for reading,</div>
<div>BRs</div>
<div> </div>
<div>Kevin.</div>
<div> </div><br> </div>