* usr/bin/byobu, usr/bin/byobu-reconnect-sockets,

usr/share/byobu/profiles/tmux: LP: #883637
  - fix reconnection to SESSION_MANAGER and DBUS_SESSION_BUS_ADDRESS
  - add C-F5 key to tmux profile
This commit is contained in:
Dustin Kirkland 2011-11-08 17:21:22 -06:00
commit 13fc71a055
4 changed files with 14 additions and 1 deletions

4
debian/changelog vendored
View file

@ -11,6 +11,10 @@ byobu (4.46) unreleased; urgency=low
* configure.ac, debian/install, etc/byobu/Makefile.am,
etc/profile.d/Makefile.am:
- fix installations to /etc
* usr/bin/byobu, usr/bin/byobu-reconnect-sockets,
usr/share/byobu/profiles/tmux: LP: #883637
- fix reconnection to SESSION_MANAGER and DBUS_SESSION_BUS_ADDRESS
- add C-F5 key to tmux profile
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 31 Oct 2011 09:46:46 -0400

View file

@ -117,6 +117,10 @@ case $BYOBU_BACKEND in
;;
esac
# Save session info
[ -n "$DBUS_SESSION_BUS_ADDRESS" ] && printf "DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS\n" > "$BYOBU_RUN_DIR/sockets"
[ -n "$SESSION_MANAGER" ] && printf "SESSION_MANAGER=$SESSION_MANAGER\n" >> "$BYOBU_RUN_DIR/sockets"
# Now let's execute the backend!
if [ "$#" = "0" ]; then
if [ "$CUSTOM_WINDOW_SET" = "1" ]; then

View file

@ -43,6 +43,10 @@ newest "$HOME/.gnupg/"gpg-agent-info-* && . "$_RET" && export GPG_AGENT_INFO
# Reconnect dbus, source the most recently touched session-bus
# Sorry, ls -t is needed here, to sort by time
newest "$HOME/.dbus/session-bus/*" && . "$_RET" && export DBUS_SESSION_DBUS_ADDRESS
newest "$HOME/.dbus/session-bus/*" && . "$_RET"
[ -r "$BYOBU_RUN_DIR/sockets" ] && . "$BYOBU_RUN_DIR/sockets"
export DBUS_SESSION_DBUS_ADDRESS
export SESSION_MANAGER
# vi: syntax=sh ts=4 noexpandtab

View file

@ -64,6 +64,7 @@ bind-key -n M-right next-window
bind-key -n M-Up choose-session \; send-keys Up \; send-keys Enter
bind-key -n M-Down choose-session \; send-keys Down \; send-keys Enter
bind-key -n S-F11 break-pane
bind-key -n C-F5 send-keys ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets" \; send-keys Enter
set-option -g set-titles on
set-option -g set-titles-string '#(whoami)@#H - byobu (#S)'