GNOME Bugzilla – Bug 770478
rhythmbox and rhythmbox-client bash auto completions
Last modified: 2018-05-24 19:01:01 UTC
Created attachment 334269 [details] rhythmbox and rhythmbox-client bash auto completions Attached the file. This file needs to be installed in /etc/bash_completion.d/ with normal permissions ( 644 ). Not sure on how to do that.
According to the bash-completion readme file, they should go in the directory indicated by the completionsdir variable in the bash-completion pkg-config file, rather than /etc/bash_completion.d/. It looks like gnome-control-center installs a completion file there, so maybe look there to see how to do it. It looks like there's a helper function that parses the output of whateverprogram --help and uses that for completion, which would be a much better idea than having a list of arguments in the completion helper. I'm not going to keep this stuff up to date because I dislike bash-completion and never use it, so not having to update it as arguments change would help.
(In reply to Jonathan Matthew from comment #1) > According to the bash-completion readme file, they should go in the > directory indicated by the completionsdir variable in the bash-completion > pkg-config file, rather than /etc/bash_completion.d/. It looks like > gnome-control-center installs a completion file there, so maybe look there > to see how to do it. Will do that. > It looks like there's a helper function that parses the output of > whateverprogram --help and uses that for completion, which would be a much > better idea than having a list of arguments in the completion helper. I'm > not going to keep this stuff up to date because I dislike bash-completion > and never use it, so not having to update it as arguments change would help. Since rhythmbox is a music player, we could possibly add content type filtering ( mp3 / ogg / pls / m3u / xspf ). So, I would prefer to keep the options open and stay manual.
(In reply to vrishab from comment #2) > Since rhythmbox is a music player, we could possibly add content type > filtering ( mp3 / ogg / pls / m3u / xspf ). So, I would prefer to keep the > options open and stay manual. I don't think the --help auto completion stops you from doing that.
Created attachment 339958 [details] [review] Bash auto completions for rhythmbox and rhythmbox-client
Created attachment 339960 [details] [review] Bash auto completions for rhythmbox and rhythmbox-client Use pkg-config to get completions dir.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/1489.