bricscad default application on linux to open *.dwg files

goodmorning! i have a linux arch on my system installed and i was wondering how can i configure it to launch all of the *.dwg files automaticaly... how should i configure the MIME types or the bricscad shortcut to open the dwg and launch the program togeather. thanks 

Comments

  •  I'm interested in the same issue...

    Dolphin browser under plasma kde 5.

    I tried to associate the bricscad.sh script to .dwg files, but nothing happen when double click on such files.
  •  I just handled how to successfully associate dwg files to bricscad.

    Just open your DE default files association GUI editor.

    Find or add the .dwg file type. 
    Add application: /path/to/bricscad/bricscah.sh (to be associated to .dwg extension)

    Important: change the default working path to: /path/to/bricscad/

    If you still have problems, check the options to launch bricscad in terminal and keep it open. There you'll ready what kind of issue are you facing on.
  •  thank for your reply but i dont understand what to do.. I'm using Antergos x64 and i've read the forums both antergos and arch and didnt find any solution.! i want to right mouse click and in the submenu i want to add bricscad icon check  photo attached 
    imagedefault apps.jpg
  •  thank for your reply but i dont understand what to do.. I'm using Antergos x64 and i've read the forums both antergos and arch and didnt find any solution.! i want to right mouse click and in the submenu i want to add bricscad icon check  photo attached 

    I'm not a GNOME user, so I'm sorry I can't help you in detail.

    You should have a .desktop file to lunch Bricscad, like this (check paths):

    [code][Desktop Entry]
    Comment=
    Exec=/opt/BricsCAD/bricscad.sh
    GenericName[it_IT]=
    GenericName=
    MimeType=image/vnd.dwg;
    Name[it_IT]=bricscad.sh
    Name=bricscad.sh
    NoDisplay=true
    Path=/opt/BricsCAD/
    StartupNotify=true
    Terminal=false
    TerminalOptions=\s--noclose
    Type=Application
    X-DBUS-ServiceName=
    X-DBUS-StartupType=none
    X-KDE-SubstituteUID=false
    X-KDE-Username=[/code]

    It can be created manually or with the GUI (but I don't know in GNOME which is).
    I found it under ~/.local/share/applications/
  •  ok i got is working…
    1. create a folder and put the 4 files in it
      I)BricsCAD-V16-dwg.xml
      contains the following…:
      [code]<?xml version=“1.0” encoding=“UTF-8”?>
      http://www.freedesktop.org/standards/shared-mime-info’>


      CAD Drawing





      [/code]

    II) BricsCAD-V16-dwt.xml contains the following:
    [code]<?xml version=“1.0” encoding=“UTF-8”?>
    http://www.freedesktop.org/standards/shared-mime-info’>

    CAD Drawing





    [/code]

    III)BricsCAD-V16-dxf.xml contains the following:
    [code]<?xml version=“1.0” encoding=“UTF-8”?>
    http://www.freedesktop.org/standards/shared-mime-info’>


    CAD Drawing
















    [/code]

    and last but not least the shortcut itself Bricscad-V16.desktop contains the following:
    [code][Desktop Entry]

    Name=Bricscad-V16
    GenericName=Bricscad
    Comment=Bricscad V16
    Exec=/home//BricsCAD-V16/bricscad.sh
    NoDisplay=true
    StartupNotify=true
    Terminal=false
    TerminalOptions=\s–noclose
    Icon=/home//.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;[/code]

    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//.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

    image20170127_145106.jpg
  •  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”?>
      http://www.freedesktop.org/standards/shared-mime-info’>


      CAD Drawing





    II) BricsCAD-V16-dwt.xml contains the following:
    <?xml version=“1.0” encoding=“UTF-8”?>
    http://www.freedesktop.org/standards/shared-mime-info’>

    CAD Drawing





    III)BricsCAD-V16-dxf.xml contains the following:
    <?xml version=“1.0” encoding=“UTF-8”?>
    http://www.freedesktop.org/standards/shared-mime-info’>


    CAD Drawing
















    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//.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

    image20170127_145106.jpg
  •  i tried and i tried but the xml contents arent showing up.! 
    check in this link i posted the answer as well!!
This discussion has been closed.