Why do we have bash-completion in our Flatpak runtime? (original) (raw)

Is this a “feature” or a “bug”? In my opinion, it’s unnecessary.

We even have:

/share/zsh/site-functions/_bwrap
/share/zsh/site-functions/_pulseaudio

Sid (Sid) May 17, 2025, 3:15pm 2

Can you specify the flatpak runtime that was from?

Flatpak runtime is from flathub.

Sid (Sid) May 17, 2025, 5:04pm 4

For reference, both 'org.gnome.Platform' and 'org.freedesktop.Platform' have them.

Not exactly. I’m referring specifically to the /etc/profile.d/bash_completion.sh file and its related files — essentially the files included in Fedora’s bash-completion package — not the bash-completion scripts installed by other packages.

But I indeed believe that the other bash-completion and zsh-completion files aren’t needed in the runtime either.

Not need:

/lib/systemd
/lib/sysusers.d
/lib/tmpfiles.d

two May 29, 2025, 8:46pm 9

…so that completion works? it’s usual to use flatpak run --command=bash for debugging

On one hand, components used for debugging should not be delivered together with the user’s runtime. On the other hand, the freedesktop runtime does not include bash-completion itself, only the bash-completion files installed by individual applications. The reason given by freedesktop developers is that these files may be used by terminal applications, so they are retained; however, the reason for not including bash-completion itself is that applications can actively load it via source, and there is no need to rely on bash-completion for loading.

system (system) Closed June 13, 2025, 8:57am 11

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.