system-image: add /usr/local/bin/xdg-open dbus helper

This commit is contained in:
Michael Vogt 2016-05-13 11:43:15 -07:00
parent d617d8f840
commit d436f951c3
2 changed files with 17 additions and 0 deletions

1
debian/changelog vendored
View File

@ -1,6 +1,7 @@
livecd-rootfs (2.411) UNRELEASED; urgency=medium
* update kernel snap building to match the new kernel policy
* system-image: add /usr/local/bin/xdg-open dbus helper
-- Michael Vogt <michael.vogt@ubuntu.com> Tue, 10 May 2016 18:16:56 -0700

View File

@ -0,0 +1,16 @@
#!/bin/sh
set -ex
echo "I: Creating xdg helper"
PREFIX=binary/boot/filesystem.dir
mkdir -p $PREFIX/usr/local/bin
cat >$PREFIX/usr/local/bin/xdg-open <<EOF
#!/bin/sh
cat <<'EOF'
dbus-send --print-reply --session --dest=com.canonical.SnappyUrlHelper / com.canonical.SnappyUrlHelper.XdgOpen string:"$1"
EOF
chmod 755 $PREFIX/usr/local/bin/xdg-open