With a desktop environment, there are file associations that goes with it.

I'm a minimalistic user, who doesn't use any of such, but still want some kind of file associations to ease my burden.

So I'm searching for a program that does something like the following.

open file.pdf

this will look at the extension, and translate to okular file.pdf.

Of course one can always write a bash script to do this. I wonder if there is something existing, so I don't reinvent the wheel.

link|improve this question
feedback

2 Answers

You want xdg-open for this.​

link|improve this answer
feedback

You can use gnome-open for ubuntu / gnome.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.