• how to add manually applications to the default app menu?


    guys good morning i have one simple question for you…
    how to add manually one application to the default apps menu??
    the menu is this:
    0_1485513520837_default apps.jpg
    and all i want to do is to add an entry manually to Bricscad! how am i supposed to do that?

  • New installed the programm? starting it already? can you choose it over activities?
    May you need to start the program ones before it is listen in the menue, or restart the system ones…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3-wm#gnome-shell

  • ok i got is working…

    1. create a folder and put the 4 files in it
      I)BricsCAD-V16-dwg.xml
      contains the following…:
      <?xml version=“1.0” encoding=“UTF-8”?>
      <mime-info xmlns=‘http://www.freedesktop.org/standards/shared-mime-info’>
      <mime-type type=“application/vnd.BricsCAD-V16-dwg”>
      <sub-class-of type=“image/vnd.dwg”/>
      <comment>CAD Drawing</comment>
      <magic priority=“59”>
      <match type=“string” offset=“0” value=“AC10”/>
      </magic>
      <glob pattern="*.dwg"/>
      </mime-type>
      </mime-info>

    II) BricsCAD-V16-dwt.xml contains the following:
    <?xml version=“1.0” encoding=“UTF-8”?>
    <mime-info xmlns=‘http://www.freedesktop.org/standards/shared-mime-info’>
    <mime-type type=“application/vnd.BricsCAD-V16-dwt”>
    <comment>CAD Drawing</comment>
    <magic priority=“59”>
    <match type=“string” offset=“0” value=“AC10”/>
    </magic>
    <glob pattern="*.dwt"/>
    </mime-type>
    </mime-info>

    III)BricsCAD-V16-dxf.xml contains the following:
    <?xml version=“1.0” encoding=“UTF-8”?>
    <mime-info xmlns=‘http://www.freedesktop.org/standards/shared-mime-info’>
    <mime-type type=“application/vnd.BricsCAD-V16-dxf”>
    <sub-class-of type=“image/vnd.dxf”/>
    <comment>CAD Drawing</comment>
    <magic priority=“59”>
    <match type=“string” offset=“0” value=“AutoCAD Binary DXF”/>
    <match type=“string” offset=“0” value=" “/>
    <match type=“string” offset=“0” value=“1”/>
    <match type=“string” offset=“0” value=“2”/>
    <match type=“string” offset=“0” value=“3”/>
    <match type=“string” offset=“0” value=“4”/>
    <match type=“string” offset=“0” value=“5”/>
    <match type=“string” offset=“0” value=“6”/>
    <match type=“string” offset=“0” value=“7”/>
    <match type=“string” offset=“0” value=“8”/>
    <match type=“string” offset=“0” value=“9”/>
    <match type=“string” offset=“0” value=“0”/>
    </magic>
    <glob pattern=”*.dxf"/>
    </mime-type>
    </mime-info>

    and last but not least the shortcut itself Bricscad-V16.desktop contains the following:
    [Desktop Entry]
    Name=Bricscad-V16
    GenericName=Bricscad
    Comment=Bricscad V16
    Exec=/home/linux/BricsCAD-V16/bricscad.sh
    NoDisplay=true
    StartupNotify=true
    Terminal=false
    TerminalOptions=\s–noclose
    Icon=/home/linux/.local/share/icons/bricscad.png
    Type=Application
    X-DBUS-ServiceName=
    X-DBUS-StartupType=none
    X-KDE-SubstituteUID=false
    X-KDE-Username=
    MimeType=image/vnd.dwg;image/vnd.dwt;image/vnd.dxf;application-vnd.BricsCAD-V16-dwg;application-vnd.BricsCAD-V16-dwt;application-vnd.BricsCAD-V16-dxf
    Categories=Application;Graphics;2DGraphics;RasterGraphics;

    ok bear with me and open the terminal and put those commands

    sudo xdg-mime install --novendor --mode system "BricsCAD-V16-dwg.xml"
    sudo xdg-mime install --novendor --mode system "BricsCAD-V16-dwt.xml"
    sudo xdg-mime install --novendor --mode system “BricsCAD-V16-dxf.xml”

    for the next commands on the terminal i suggest to move the Bricscad-V16.desktop in the folder
    /home/<username>/.local/share/applications/
    sudo xdg-desktop-menu install --novendor --mode system "Bricscad-V16.desktop"
    sudo [ -x /usr/sbin/update-mime ] && /usr/sbin/update-mime ]

    and finally the result should be just like mine… :D
    0_1485521610035_20170127_145106.jpg

  • @qaron Now there is only one thing to do!
    Wipe the dust!:smiling_imp:

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3-wm#gnome-shell

  • @joekamprad ahahahahahha sometimes i loose track of time and i get dusty!!! :D

mimeapps2 default4 applications19 menu24 Posts 5Views 627
Log in to reply