Skip to content

Instantly share code, notes, and snippets.

View tsilvs's full-sized avatar
🏠
Working from home

Seva Tsiliurik tsilvs

🏠
Working from home
View GitHub Profile
@tsilvs
tsilvs / Replace distutils.spawn.find_executable with shutil.which
Created October 26, 2025 11:26 — forked from mogoh/Replace distutils.spawn.find_executable with shutil.which
Utility for making Flatpak-installed apps available in the terminal through their normal command names
#!/usr/bin/env python3
"""Flatpak CLI Shortcut Generator
A simple no-argument tool that generates launchers with traditional non-flatpak
command names for your installed Flatpak applications in ~/.local/bin/flatpak.
Does full collision detection and warns you if you forgot to add its output
directory to your PATH. Also overrules the command-line specified in the
``.desktop`` file if the Flatpak maintainer didn't include support for
command-line arguments.