Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
share|improve this question
    
I am very curious as to why this only shows up on remote sessions but not on sessions directly logged in on the console. It happens with either VNC or XRDP - which is not surprising as behind the covers XRDP just invokes VNC to do the rendering. It is I presume because the X server built into VNC is different from the Xorg one but it is still puzzling why this occurs - after all the change suggested here should only affect the "Super-Tab" key combo not the simple "Tab" key. Does this imply that somehow VNC is always showing the "Super" key depressed when tab is hit? And as a final point, I hav –  user273641 Apr 24 '14 at 14:19
    
This issue is still present in Xubuntu 14.04 when using VNC. And implementig the change fix the issue. Remember to search the second occurence of "Super> Tab" like explained in the steeldriver answer; it's in the "custom" section. –  user294420 Jun 17 '14 at 17:15
    
@user294420 I couldnt quite understand the change to be employed can I have a little more explanation? –  Sohaib Sep 6 '14 at 6:47

1 Answer 1

up vote 5 down vote accepted

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"/>

I found this solution online somewhere and can't really take credit for it.

share|improve this answer
    
Good shot, but i found this issue also with google. This property has already this value at my xfce4-keyboard-shortcuts.xml by default. The link: codebangers.com/?p=134 –  nik the lion Oct 1 '13 at 15:59
    
Damn. I wounder why this value is by default "empty". Checked this with less and find a second entry. But this time with the value "switch_window_key". Changed > restart > works!!!! Thank you :) –  nik the lion Oct 1 '13 at 16:09
    
@steeldriver I couldnt quite understand the change to be employed can I have a little more explanation? –  Sohaib Sep 6 '14 at 6:48

protected by Community Jun 17 '14 at 19:23

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.