+ DIR=`print -P "%28<...<%~"`
+ if [ -n "$KONSOLE_DCOP_SESSION" ]
+ then
+ dcop ${KONSOLE_DCOP_SESSION} renameSession "$DIR"
+ elif [ -n "$KONSOLE_DBUS_SESSION" ]
+ then
+ qdbus ${KONSOLE_DBUS_SERVICE} ${KONSOLE_DBUS_SESSION} setTitle 0 "$DIR" > /dev/null 2>&1
+ qdbus ${KONSOLE_DBUS_SERVICE} ${KONSOLE_DBUS_SESSION} setTitle 1 "$DIR" > /dev/null 2>&1
+ fi