Bash completion for Inkscape does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-xapian-index (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
cowdancer (Ubuntu) |
Fix Released
|
Undecided
|
Mattia Rizzolo | ||
dpatch (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
inkscape (Ubuntu) |
Fix Released
|
Undecided
|
Mattia Rizzolo | ||
jackd2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Bash completion for Inkscape does not work in Ubuntu 18.04. It will for example suggest non-svg files.
The reason seems to be that /usr/share/
Workaround: Copy /usr/share/
The bash completion for some other commands seem to use have() too, e.g. jackd, ufw, cowbuilder, dpatch_edit_patch, and axi-cache, so bash completion for these commands will presumably not work either.
From /usr/share/
-------
# Backwards compatibility for compat completions that use have().
# @deprecated should no longer be used; generally not needed with dynamically
# loaded completions, and _have is suitable for runtime use.
have()
{
unset -v have
_have $1 && have=yes
}
[...]
unset -f have
unset have
-------
From /usr/share/
-------
[...]
have inkscape &&
_inkscape()
{
[...]
}
[ "${have:-}" ] && complete -F _inkscape $filenames inkscape
-------
System information:
$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
$ apt-cache policy inkscape
inkscape:
Installed: 0.92.3-1
Candidate: 0.92.3-1
Version table:
*** 0.92.3-1 500
500 http://
100 /var/lib/
Changed in inkscape (Ubuntu): | |
assignee: | nobody → Mattia Rizzolo (mapreri) |
Changed in cowdancer (Ubuntu): | |
assignee: | nobody → Mattia Rizzolo (mapreri) |
Fix committed in git.
https:/ /salsa. debian. org/multimedia- team/inkscape/ commit/ 4841d8b4ceceef4 ef38144c9ee9083 078c3ce226