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

ubuntu/yakkety
Michael Vogt 9 years ago
parent d617d8f840
commit d436f951c3

1
debian/changelog vendored

@ -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

@ -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
Loading…
Cancel
Save