Skip to content

Instantly share code, notes, and snippets.

@sigismund
Created June 2, 2022 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigismund/11b163cc27971cdddf9bd0ad2010e6ae to your computer and use it in GitHub Desktop.
Save sigismund/11b163cc27971cdddf9bd0ad2010e6ae to your computer and use it in GitHub Desktop.
#!/bin/sh
for bin in ~/.local/share/flatpak/exports/bin/*; do
appid="$(basename $bin)"
cmd="$(flatpak info -m $appid | awk -F= '/^command=/ {print $2}')"
echo "alias ${cmd}=$bin"
done
@sigismund
Copy link
Author

This works only for flatpaks installed in user mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment