corrected ubz association on linux

preferencesAboutTextFull
Craig 9 years ago
parent e5445f2b43
commit 85d5d6c3a2
  1. 2
      release_scripts/linux/debian_package_files/postinst
  2. 5
      release_scripts/linux/package.sh

@ -14,8 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
xdg-mime install --mode system /opt/openboard/etc/openboard-ubz.xml
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 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

@ -31,7 +31,7 @@
# | | openboard <-- actually a symlink to run.sh # | | openboard <-- actually a symlink to run.sh
# | share/ # | share/
# | | applications/ # | | applications/
# | | | OpenBoard.desktop # | | | openboard.desktop
# opt/ # opt/
# | openboard/ # | openboard/
# | | importer/ # | | importer/
@ -175,6 +175,7 @@ chmod a+x $PACKAGE_DIRECTORY/run.sh
cp -R resources/customizations $PACKAGE_DIRECTORY/ cp -R resources/customizations $PACKAGE_DIRECTORY/
cp -R resources/linux/qtlinux/* $PACKAGE_DIRECTORY/ cp -R resources/linux/qtlinux/* $PACKAGE_DIRECTORY/
cp resources/linux/openboard-ubz.xml $PACKAGE_DIRECTORY/etc/
notifyProgress "Copying importer" notifyProgress "Copying importer"
mkdir -p $PACKAGE_DIRECTORY/importer mkdir -p $PACKAGE_DIRECTORY/importer
@ -297,7 +298,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 "MimeType=application/ubz;" >> $APPLICATION_SHORTCUT
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"

Loading…
Cancel
Save