livecd-rootfs/live-build/ubuntu-core/hooks/500-create-xdg-wrapper.binary
Adam Conrad a98e648df2 Import patches-unapplied version 2.416 to ubuntu/yakkety-proposed
Imported using git-ubuntu import.

Changelog parent: 2848624193ee7c9fc50f098382c6f58e64a94231

New changelog entries:
  * Fix security mirror sources.list entries for non-x86 architectures.
2016-06-13 09:09:07 +00:00

17 lines
344 B
Bash
Executable File

#!/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.SafeLauncher / com.canonical.SafeLauncher.OpenURL string:"$1"
EOF
chmod 755 $PREFIX/usr/local/bin/xdg-open