Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Flatpak's /exports/bin Directories in PATH #229

Open
Marukesu opened this issue Dec 22, 2021 · 0 comments
Open

Include Flatpak's /exports/bin Directories in PATH #229

Marukesu opened this issue Dec 22, 2021 · 0 comments
Labels
Needs Design Waiting for input from the UX team

Comments

@Marukesu
Copy link

Problem

Right now if an user want to open an flatpak application via terminal, they need to use the flatpak run/flatpak --user run command, however, Flatpak have an exports/bin directory in every installation folder that include scripts to launch the apps using the application id.

Since the elementary position is to prefer flatpak applications, we should include theses directories in the PATH variable, for covenience of users and applications targeted to be used via CLI.

Proposal

We should add $XDG_DATA_HOME/flatpak/exports/bin and /var/lib/flatpak/exports/bin to the PATH environment with the user installation first, so that it's preferred over the system one (similar to how apps in /usr/local/bin is preferred over the ones in /usr/bin).

Something to consider is if we should prepend, append, or put them in specifics places in the PATH.

Prior Art (Optional)

Canonical appends the /snap/bin directory in the /etc/environment file.

@Marukesu Marukesu added the Needs Design Waiting for input from the UX team label Dec 22, 2021
@danirabbit danirabbit added this to OS 7 Dec 23, 2021
@danirabbit danirabbit moved this to Needs Discussion in OS 7 Dec 23, 2021
@danirabbit danirabbit removed this from OS 7 Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Waiting for input from the UX team
Projects
None yet
Development

No branches or pull requests

1 participant