This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Assign a particular file to open in a particular application

Tags: None
(comma "," separated)
kde-deshmukh
Registered Member
Posts
184
Karma
0
I want to assign a particular file to open in a specific non-default application.

For instance, I want to open all text files in a konsole in vim and I have a .desktop file for that in my .local/share/applications

But there is a text file containing some non-english characters and I want to open it in Kate.

Can this be done? How?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately i'm not sure if this is possible. The only way I can think of doing it is manipulating the "magic" which KDE (among others) uses to determine the mimetype of files. Each mimetype could then have different associated applications.

I would suggest checking the documentation on freedesktop.org, relating to file associations and mime types.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]