xrdp tab does not work [duplicate]

I'm using Xubuntu and connecting over RemoteDesktop with Windows 7.

Everything works fine, but the auto_completion in my bash doesn't work. I checked the .bashrc file in my home directory and also the /etc/bash.bashrc.

I uncommend the lines below in my local bashrc configuration and also in bash.bashrc, but nothing changes.

if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

You may find that this is a more general issue with interception of the Tab key under remote XFCE4 sessions, rather than a problem with bash completion itself.

I had a similar issue running XFCE4 over VNC and the workaround for me was to edit the ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml file to unset the following mapping

<       <property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>
---
>       <property name="&lt;Super&gt;Tab" type="string" value="empty"/>

Note that there may be two entries, and the first already has the value "empty". If this is the case, edit the second entry.
I found this solution online somewhere and can't really take credit for it.