GNOME Bugzilla – Bug 677782
Install bash completion files in /usr/share
Last modified: 2012-06-21 10:23:38 UTC
Bash completion script should be installed as "gdbus", but is installed as "gdbus-bash-completion.sh" in version 2.32.3. It doesn't work with this name.
works fine here
(In reply to comment #1) > works fine here What's the name of this script in your installation?
The name doesn't matter one bit, what matters is that the script is sourced at login time. As it's installed into /etc/bash_completion.d you will need something to source it. On Fedora that's done by the bash-completion package. Without that package completion won't work. Hope tis helps. There is no bug here so closing.
(In reply to comment #3) > The name doesn't matter one bit, what matters is that the script is sourced at > login time. As it's installed into /etc/bash_completion.d you will need > something to source it. On Fedora that's done by the bash-completion package. > Without that package completion won't work. > > Hope tis helps. > > There is no bug here so closing. Not exactly. On Arch we install them to /usr/share/bash-completion/completions, and sourced by name by /usr/share/bash-completion/bash_completion; this script is found in upstream. It depends on the name. So --- bash-completion upstream authors source completion scripts by name, and we don't have the right name here.
Sounds like a bash-completion api change to me. But if you already install the script somewhere else, it should not be too hard for you to rename it at the same time.
imho, I'd actually be happier for us to install the scripts into /usr/share instead of /etc. /etc is for configuration data (which this is decidedly not). If there's a standard way of doing that, perhaps we should use it. Checking upstream I do indeed see that there is an effort being made to move in that direction, so we should follow.
Sure.
So, this is a fairly recent change: -- David Paleino <d.paleino@gmail.com> Sat, 07 Jan 2012 23:52:36 +0100 bash-completion (1.90) * Layout change: everything is now in /usr/share/bash-completion/, rather than in /etc/.
/usr/share/bash-completion/completions/dconf-bash-completion.sh is owned by dconf 0.12.1-2 /usr/share/bash-completion/completions/gdbus-bash-completion.sh is owned by glib2 2.32.3-1 /usr/share/bash-completion/completions/gresource-bash-completion.sh is owned by glib2 2.32.3-1 /usr/share/bash-completion/completions/gsettings-bash-completion.sh is owned by glib2 2.32.3-1 /usr/share/bash-completion/completions/gvfs-bash-completion.sh is owned by gvfs 1.12.3-2 --- At least those scripts should be renamed too. Do we need sepereate bug reports for them?
for the record: http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=blob;f=README;h=1558f62f51ed870e4aeae71f8ba6a98a70afd2f3;hb=HEAD#l113