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

Feature Request: create file on /home/user/.local/bin location that allows running of flatpaks more easly #165

Open
MrDraxs opened this issue Dec 24, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@MrDraxs
Copy link

MrDraxs commented Dec 24, 2024

after installation is complete would be nice if a file was create on /home/user/.local/bin with contents like this

#!/bin/sh
flatpak run org.flatpak.name

and then make the file a executable
chmod +x /home/user/.local/bin/package

@MrDraxs MrDraxs added the enhancement New feature or request label Dec 24, 2024
@heliguy4599
Copy link
Member

Hello, can you elaborate what you mean more specifically? What should the file's name be? Also, not all distros have ~/.local/bin in the PATH, so there might be some confusion if Warehouse puts something there. Also also, Flatpak usually makes executable files with the app's ID in ~/.local/share/flatpak/exports/bin and /var/lib/flatpak/exports/bin (User and System). These folders can be added to your PATH so you can run installed Flatpaks by their ID alone.

@MrDraxs
Copy link
Author

MrDraxs commented Jan 8, 2025

maybe is a better idea is to create symlinks to /var/lib/flatpak/exports/bin/nameofpackage.com instead of a file containing said contents
and also for less confusion check if said file exists if not create ~/.local/bin and add to path

it could also be done by adding either ~/.local/share/flatpak/exports/bin or /var/lib/flatpak/exports/bin/ to the PATH variable and change the name of the runners cotained into these locations to the name of the program instead of "com.program.org"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants