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 f6b480fe..a1a4fcf1 100755 --- a/live-build/ubuntu-core/hooks/500-create-xdg-wrapper.binary +++ b/live-build/ubuntu-core/hooks/500-create-xdg-wrapper.binary @@ -14,3 +14,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 <