• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. specify editor for ADE Explorer documents

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 126
  • Views 8272
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

specify editor for ADE Explorer documents

drdanmc
drdanmc over 3 years ago

Is there a way to specify what editor will be used for opening a document in ADE Explorer?  I have an Ocean file (.ocn suffix) and when I open it, it is coming up in gedit and I'd prefer xemacs.  The "editor" SKILL variable doesn't seem to take in this case.

Thanks

-Dan

  • Cancel
Parents
  • henker
    henker over 3 years ago

    It uses the freedesktop style file association database of your underlying desktop system.
    How to add/modify the file associations via GUI depends on your window/file manager;
    e.g. in KDE its in the Menu -> System Settings -> File Associations.
    Other option is to manually edit the local user database in ~/.local/share/applications (or edit the global database for all users).
    An overview can be found e.g. on www.freedesktop.org/.../


    Regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • henker
    henker over 3 years ago

    It uses the freedesktop style file association database of your underlying desktop system.
    How to add/modify the file associations via GUI depends on your window/file manager;
    e.g. in KDE its in the Menu -> System Settings -> File Associations.
    Other option is to manually edit the local user database in ~/.local/share/applications (or edit the global database for all users).
    An overview can be found e.g. on www.freedesktop.org/.../


    Regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • drdanmc
    drdanmc over 3 years ago in reply to henker

    Thanks!  It's working now.  In case someone else is looking or I find my own question in 5 years:

    mkdir -p ~/.local/share/mime/packages/ 

    cat > ~/.local/share/mime/packages/application-x-ocean.xml <<EOF

    <?xml version="1.0" encoding="UTF-8"?>
      <mime-info xmlns="">www.freedesktop.org/.../shared-mime-info">
      <mime-type type="application/x-ocean">
        <comment>Cadence Ocean File</comment>
        <glob pattern="*.ocn"/>
      </mime-type>
    </mime-info>

    EOF

    cp ~/.local/share/mime/packages/application-x-ocean.xml ~/.local/share/mime/packages/application-x-skill.xml
    cp ~/.local/share/mime/packages/application-x-ocean.xml ~/.local/share/mime/packages/'application-x-skill++.xml'

    # edit the SKILL and SKILL++ files to set extensions to .il and .ils respectively and change from

    # Ocean to SKILL and SKILL++
    vi ~/.local/share/mime/packages/application-x-skill*


    mkdir -p ~/.local/share/applications/

    cat > ~/.local/share/applications/ocean-editor.desktop << EOF

    [Desktop Entry]
    Type=Application
    MimeType=application/x-ocean
    Name=Cadence Ocean
    Exec=xemacs

    EOF
    cp ~/.local/share/applications/ocean-editor.desktop ~/.local/share/applications/skill-editor.desktop
    cp ~/.local/share/applications/ocean-editor.desktop ~/.local/share/applications/skill++-editor.desktop
    vi ~/.local/share/applications/skill*.desktop

    update-mime-database ~/.local/share/mime
    update-desktop-database ~/.local/share/applications

    # check 

    gio mime application/x-ocean
    gio mime application/x-skill
    gio mime application/x-skillx
    gio mime application/x-skill++

    touch /tmp/myfile.ocn
    gio info /tmp/myfile.ocn | grep "standard::content-type"

    Thanks again for pointing me in the right direction.

    -Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • drdanmc
    drdanmc over 3 years ago in reply to henker

    Thanks.  That worked.  I added a longer reply detailing exactly what I did for it to work but it triggered some sort of content filter.  

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to drdanmc

    Thanks Dan. This went into moderation because the repeated text causes the forum software to consider it as potentially spam. I was on vacation and not reading emails, so only just saw this...

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information