I'm trying to change various dconf settings with gsettings. For some reason, it only works when I'm not in tmux. I can read settings within tmux, but setting them fails silently - it appears to work, but the change doesn't have an effect and reading again gives the old value back. Outside of tmux, everything works perfectly - I can read and set dconf properties, and they take effect immediately. Here's the relevant part of my bashrc:
# start tmux
if command -v tmux >/dev/null; then
[[ ! $TERM =~ screen ]] && [ -z "$TMUX" ] && exec tmux
# in tmux, we need to handle dbus specially
export $(dbus-launch)
fi
I have no problems starting X-based applications from within tmux. For reference, I have Ubuntu 15.04 and I'm using Gnome Shell instead of Unity.
dbus-launch
may have something to do with it.