-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flatpak-spawn wrapper for calling other flatpak apps
- Loading branch information
1 parent
15df89e
commit ed18630
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
# This wrapper requires the following permission: | ||
# --talk-name=org.freedesktop.Flatpak | ||
|
||
set -oue pipefail | ||
|
||
APP="$(basename $0)" | ||
|
||
if [[ "$(basename "$(realpath $0)")" == "${APP}" ]]; then | ||
echo "Error: Must be called from a symlink. Exiting." | ||
exit 1 | ||
fi | ||
|
||
flatpak-spawn --host /var/lib/flatpak/exports/bin/${APP} $@ |
This file contains 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