Skip to content

Instantly share code, notes, and snippets.

@Greenheart
Created August 21, 2025 14:48
Show Gist options
  • Select an option

  • Save Greenheart/3bca849fd879802c419279ef08ca662c to your computer and use it in GitHub Desktop.

Select an option

Save Greenheart/3bca849fd879802c419279ef08ca662c to your computer and use it in GitHub Desktop.
Generate Flatpak aliases that can be added to the PATH
#!/usr/bin/bash
# List installed flatpaks which have a command specified
# These aliases can then be added to the PATH in for example .bashrc
for bin in /var/lib/flatpak/exports/bin/*; do
appid="$(basename $bin)"
cmd="$(flatpak info -m $appid | awk -F= '/^command=/ {print $2}')"
echo "alias ${cmd}=$bin"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment