VirtualBox

Changeset 34522 in vbox


Ignore:
Timestamp:
Nov 30, 2010 2:49:21 PM (14 years ago)
Author:
vboxsync
Message:

Linux installer: added mime type handling for the generic .run packages

Location:
trunk/src/VBox/Installer/linux
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile.kmk

    r34456 r34522  
    7575linux-misc_SOURCES = \
    7676        $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_32px.png=>VBox.png \
     77        $(PATH_ROOT)/src/VBox/Installer/linux/virtualbox.xml \
    7778        $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)=>LICENSE) \
    7879        $(if $(VBOX_WITH_QTGUI),$(PATH_linux-misc)/virtualbox.desktop,)
     
    8788endif
    8889
     90INSTALLS += linux-icons
     91linux-icons_INST = bin/icons
     92linux-icons_MODE = a+r,u+w
     93linux-icons_SOURCES = $(VBOX_MIME_ICONS)
    8994
    9095
     
    160165 VBOX_LNX_NO_STRIP += \
    161166        virtualbox.desktop \
     167        virtualbox.xml \
    162168        $(VBOX_LICENSE_FILES) \
    163169        $(if $(VBOX_WITH_QT4_SUN),$(notdir $(wildcard $(PATH_BIN)/lib*VBox*)),) \
    164170        $(if $(VBOX_WITH_QT4_SUN),accessible/libqtaccessiblewidgets.so,) \
    165         $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
     171        $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm) \
     172        icons
    166173endif
    167174
     
    254261        VBoxEFI64.fd
    255262endif
     263
     264VBOX_MIME_ICONS = \
     265        $(addprefix $(PATH_ROOT)/src/VBox/Resources/other/,\
     266            $(foreach f,ova ovf vbox vbox-extpack, \
     267                $(foreach s,16 20 24 32 48 64 72 96 128 256,\
     268                    virtualbox-$(f)-$(s)px.png=>$(s)x$(s)/virtualbox-$(f).png)))
    256269
    257270#
  • trunk/src/VBox/Installer/linux/install.sh

    r34456 r34522  
    386386    ln -sf $INSTALLATION_DIR/VBox.png /usr/share/pixmaps/VBox.png
    387387    ln -sf $INSTALLATION_DIR/virtualbox.desktop /usr/share/applications/virtualbox.desktop
     388    ln -sf $INSTALLATION_DIR/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
    388389    ln -sf $INSTALLATION_DIR/rdesktop-vrdp /usr/bin/rdesktop-vrdp
    389390    ln -sf $INSTALLATION_DIR/src/vboxhost /usr/src/vboxhost-_VERSION_
     
    394395    ln -sf VBoxSDL /usr/bin/vboxsdl > /dev/null 2>&1
    395396    ln -sf VBoxHeadless /usr/bin/vboxheadless > /dev/null 2>&1
     397
     398    # Icons
     399    cur=`pwd`
     400    cd $INSTALLATION_DIR/icons
     401    for i in *; do
     402        cd $i
     403        if [ -d /usr/share/icons/hicolor/$i ]; then
     404            for j in *; do
     405                if [ -d /usr/share/icons/hicolor/$i/mimetypes ]; then
     406                    ln -s $INSTALLATION_DIR/icons/$i/$j /usr/share/icons/hicolor/$i/mimetypes/$j
     407                    echo /usr/share/icons/hicolor/$i/mimetypes/$j >> $CONFIG_DIR/$CONFIG_FILES
     408                fi
     409            done
     410        fi
     411        cd -
     412    done
     413    cd $cur
     414
     415    # Update the MIME database
     416    update-mime-database /usr/share/mime 2>/dev/null
    396417
    397418    # If Python is available, install Python bindings
  • trunk/src/VBox/Installer/linux/uninstall.sh

    r33231 r34522  
    9696  /usr/share/pixmaps/VBox.png \
    9797  /usr/share/applications/virtualbox.desktop \
     98  /usr/share/mime/packages/virtualbox.xml \
    9899  /usr/bin/rdesktop-vrdp \
    99100  /usr/bin/virtualbox \
     
    158159    log "Successfully $INSTALL_VER$INSTALL_REV removed VirtualBox."
    159160fi
     161update-mime-database /usr/share/mime >/dev/null 2>&1
  • trunk/src/VBox/Installer/linux/virtualbox.desktop

    r28865 r34522  
    55GenericName=Virtual Machine
    66Type=Application
    7 Exec=VirtualBox
     7Exec=VirtualBox "%U"
    88TryExec=VirtualBox
     9MimeType=application/x-virtualbox-vbox;application/x-virtualbox-vbox-extpack;application/x-virtualbox-ovf;application/x-virtualbox-ova
    910DocPath=file://$VBOX_DOC_PATH/UserManual.pdf
    1011Icon=VBox
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette