mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-22 19:01:30 +00:00
system-image: add /usr/local/bin/xdg-open dbus helper
This commit is contained in:
parent
d617d8f840
commit
d436f951c3
1
debian/changelog
vendored
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
|
||||
|
||||
|
16
live-build/ubuntu-core/hooks/500-create-xdg-wrapper
Normal file
16
live-build/ubuntu-core/hooks/500-create-xdg-wrapper
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user