How do I set a file type to execute a program? Like open JPEGs with an image viewer, or flacs with a music player.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do I set a file type to execute a program? Like open JPEGs with an image viewer, or flacs with a music player.
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 toVPDF="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