Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coolreader18/flatpak-alias
A simple way to make shell aliases for flatpak apps
https://github.com/coolreader18/flatpak-alias
flatpak rust shell-aliases
Last synced: about 1 month ago
JSON representation
A simple way to make shell aliases for flatpak apps
- Host: GitHub
- URL: https://github.com/coolreader18/flatpak-alias
- Owner: coolreader18
- License: mit
- Created: 2018-09-12T22:52:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T01:43:49.000Z (over 6 years ago)
- Last Synced: 2024-11-25T14:48:30.543Z (about 2 months ago)
- Topics: flatpak, rust, shell-aliases
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flatpak Alias
A simple way to make shell aliases for flatpak apps.
## Installation
Make sure cargo is installed and set up.
```sh
cargo install --git https://github.com/coolreader18/flatpak-alias
```## Usage
Place the below somewhere in your shell startup script.
```sh
eval "$(flatpak-alias sh)"
```Then put something like this in `~/.flatpak-aliases`:
```toml
# The alias's name; what you run in the shell
[gimp]
# The app you want to run
app = "org.gimp.GIMP"
# other arguments
branch = "stable"
arch = "x86_64"
command = "gimp-2.10"
file-forwarding = true
```This adds an alias for the following:
```sh
flatpak run --arch=x86_64 --branch=stable --command=gimp-2.10 --file-forwarding org.gimp.GIMP
```## License
This project is licensed under the MIT license. Please see the
[LICENSE](LICENSE) file for more details