forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usersession/userd: add OpenDesktopEntry2 D-Bus method
- Loading branch information
1 parent
e1247fc
commit 704d9d8
Showing
15 changed files
with
256 additions
and
32 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
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
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
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
6 changes: 6 additions & 0 deletions
6
tests/main/interfaces-desktop-launch/test-launcher/bin/dbus-v1.sh
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,6 @@ | ||
#!/bin/sh | ||
|
||
exec busctl --user call \ | ||
io.snapcraft.Launcher /io/snapcraft/PrivilegedDesktopLauncher \ | ||
io.snapcraft.PrivilegedDesktopLauncher OpenDesktopEntry "s" \ | ||
"$1" |
24 changes: 24 additions & 0 deletions
24
tests/main/interfaces-desktop-launch/test-launcher/bin/dbus-v2.sh
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,24 @@ | ||
#!/bin/bash | ||
|
||
action="" | ||
while getopts "a:" arg; do | ||
case "$arg" in | ||
a) | ||
action="$OPTARG" | ||
;; | ||
*) | ||
echo "Unexpected option $arg" >&2 | ||
exit 1 | ||
esac | ||
done | ||
shift $((OPTIND-1)) | ||
|
||
desktop="$1" | ||
shift | ||
|
||
exec busctl --user call \ | ||
io.snapcraft.Launcher /io/snapcraft/PrivilegedDesktopLauncher \ | ||
io.snapcraft.PrivilegedDesktopLauncher OpenDesktopEntry2 "ssasa{ss}" \ | ||
"$desktop" "$action" $# "$@" \ | ||
2 DESKTOP_STARTUP_ID "$DESKTOP_STARTUP_ID" \ | ||
XDG_ACTIVATION_TOKEN "$XDG_ACTIVATION_TOKEN" |
6 changes: 0 additions & 6 deletions
6
tests/main/interfaces-desktop-launch/test-launcher/bin/dbus.sh
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.