Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 5401  / 3 Years ago, fri, july 23, 2021, 9:03:31

On Kubuntu 11.04 I just installed gvim, which magically added an "open with gvim" for a bunch of text files. Great, but I would like to add another one in order to start gvim on the given file and change current working directory to the file location:



gvim -f %F -c "cd %d"


The command above works fine, but I have no idea how to make another "open with" to use the command. I don't want to make this the default, just an option. The file manager I'm using is dolphin, if that matters.


More From » kubuntu

 Answers
5

The KDE is using the desktop files to add the "open with" options. To add or edit the desktop files use the KDE Menu Editor.



The default application and the order of the applications is set with the File Associations. System Settings > File Associations.


[#43147] Friday, July 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terneive

Total Points: 329
Total Questions: 117
Total Answers: 105

Location: Denmark
Member since Tue, Oct 18, 2022
2 Years ago
;