Last active
December 21, 2025 03:23
-
-
Save teklynk/8ee65386bf3d48ce0bbb3f00ff5ebdf5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Name of the Flatpak application | |
| FLATPAK_APP="com.plexamp.Plexamp" | |
| # Check if the app is currently running | |
| if flatpak ps --columns=application | grep -q "^${FLATPAK_APP}$"; then | |
| # If it's running then kill it | |
| flatpak kill "$FLATPAK_APP" | |
| else | |
| # If it's Not running then start it | |
| flatpak run "$FLATPAK_APP" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment