diff --git a/release_scripts/linux/debian_package_files/postinst b/release_scripts/linux/debian_package_files/postinst index f3152d3b..c1e93d0e 100644 --- a/release_scripts/linux/debian_package_files/postinst +++ b/release_scripts/linux/debian_package_files/postinst @@ -15,5 +15,9 @@ # --------------------------------------------------------------------- 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 + exit 0 diff --git a/release_scripts/linux/package.sh b/release_scripts/linux/package.sh index 5960ab58..dfb57d8e 100755 --- a/release_scripts/linux/package.sh +++ b/release_scripts/linux/package.sh @@ -297,6 +297,7 @@ echo "Icon=/$APPLICATION_PATH/$APPLICATION_CODE/${APPLICATION_NAME}.png" >> $APP echo "StartupNotify=true" >> $APPLICATION_SHORTCUT echo "Terminal=false" >> $APPLICATION_SHORTCUT echo "Type=Application" >> $APPLICATION_SHORTCUT +echo "MimeType=application/ubz" echo "Categories=Education;" >> $APPLICATION_SHORTCUT cp "resources/images/${APPLICATION_NAME}.png" "$PACKAGE_DIRECTORY/${APPLICATION_NAME}.png" diff --git a/resources/linux/openboard-ubz.xml b/resources/linux/openboard-ubz.xml new file mode 100644 index 00000000..cda36e1d --- /dev/null +++ b/resources/linux/openboard-ubz.xml @@ -0,0 +1,8 @@ + + + + OpenBoard document file + Document OpenBoard + + +