You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
livecd-rootfs/live-build/ubuntu-core/hooks/500-create-xdg-wrapper.binary

17 lines
344 B

#!/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