Menu

File Associations

dank101
2017-05-01
2019-10-29
  • dank101

    dank101 - 2017-05-01

    How do I set a file type to execute a program? Like open JPEGs with an image viewer, or flacs with a music player.

     
    • Anonymous

      Anonymous - 2019-10-29

      Hey! Two years later, a response comes...

      What you actually need to do is modify /usr/dt/bin/dtopen. It's a proxy application called by CDE to open files and, the bunch of weird file associations were hardcoded in there.

      For example, I don't have Okular, but I have Qpdfview - so at the line where it said VPDF="okular xpdf", I changed it to VPDF="qpdfview xpdf".

      dtopen currently also handles opening images and videos, so change it there.

      There should be a way to add more types of file associations, but you basically have to emulate it the way they did it. But it seems flexible enough.

       

      Last edit: Anonymous 2019-10-29

Log in to post a comment.