diff --git a/debian/changelog b/debian/changelog index 1172be84..6c16312b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ livecd-rootfs (2.425) UNRELEASED; urgency=medium * live-build/ubuntu-core/hooks/400-create-apt-get-warning.binary, 500-create-xdg-wrapper.binary, 700-classic-dir.binary: - Correct some syntax errors in the ubuntu-core snap hooks. + - Create a desktop entry and some mimetype associations for xdg-open in + ubuntu-core. That way interacting with web, email and documentations + urls in a snap should do the right thing. -- Sebastien Bacher Wed, 17 Aug 2016 12:08:42 +0200 diff --git a/live-build/ubuntu-core/hooks/500-create-xdg-wrapper.binary b/live-build/ubuntu-core/hooks/500-create-xdg-wrapper.binary index 3c2885b2..2f8c9570 100755 --- a/live-build/ubuntu-core/hooks/500-create-xdg-wrapper.binary +++ b/live-build/ubuntu-core/hooks/500-create-xdg-wrapper.binary @@ -13,3 +13,28 @@ dbus-send --print-reply --session --dest=com.canonical.SafeLauncher / com.canoni EOF chmod 755 $PREFIX/usr/local/bin/xdg-open +# corresponding .desktop entry, needed for mimetype registration +mkdir -p $PREFIX/usr/local/share/applications +cat >$PREFIX/usr/local/share/applications/xdg-open.desktop <$PREFIX/usr/local/share/applications/mimeapps.list <