Add support for opening UBZ files on Linux

preferencesAboutTextFull
Craig Watson 9 years ago
parent 0233d674d5
commit e5445f2b43
  1. 4
      release_scripts/linux/debian_package_files/postinst
  2. 1
      release_scripts/linux/package.sh
  3. 8
      resources/linux/openboard-ubz.xml

@ -15,5 +15,9 @@
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
xdg-desktop-menu install --novendor /usr/share/applications/openboard.desktop xdg-desktop-menu install --novendor /usr/share/applications/openboard.desktop
xdg-mime install /opt/openboard/etc/openboard-ubz.xml
xdg-mime default /usr/share/applications/openboard.desktop application/ubz
ln -s /opt/openboard/run.sh /usr/bin/openboard ln -s /opt/openboard/run.sh /usr/bin/openboard
exit 0 exit 0

@ -297,6 +297,7 @@ echo "Icon=/$APPLICATION_PATH/$APPLICATION_CODE/${APPLICATION_NAME}.png" >> $APP
echo "StartupNotify=true" >> $APPLICATION_SHORTCUT echo "StartupNotify=true" >> $APPLICATION_SHORTCUT
echo "Terminal=false" >> $APPLICATION_SHORTCUT echo "Terminal=false" >> $APPLICATION_SHORTCUT
echo "Type=Application" >> $APPLICATION_SHORTCUT echo "Type=Application" >> $APPLICATION_SHORTCUT
echo "MimeType=application/ubz"
echo "Categories=Education;" >> $APPLICATION_SHORTCUT echo "Categories=Education;" >> $APPLICATION_SHORTCUT
cp "resources/images/${APPLICATION_NAME}.png" "$PACKAGE_DIRECTORY/${APPLICATION_NAME}.png" cp "resources/images/${APPLICATION_NAME}.png" "$PACKAGE_DIRECTORY/${APPLICATION_NAME}.png"

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/ubz">
<comment>OpenBoard document file</comment>
<comment xml:lang="fr">Document OpenBoard</comment>
<glob pattern="*.ubz"/>
</mime-type>
</mime-info>
Loading…
Cancel
Save