Hello, i am trying to make a desktopfile for kio’s context menu for opening files in a program and i am having some issues. Right now the context menu option is only showing for certain types of files not all of the text based ones and when i click on the context menu option i made the program launches normally but the file that was supposed to go into the program did not pass. I have tried to use %f %F %u and %U. Im on kde plasma 6.5.2 and the program that i am trying to open files to is neovim. Here is the code that i got so far.
Changed the setting that you told me still got the same issues. changing it to the konsole hold command opened up 2 terminal windows. 1 completely blank and the other with a empty instance of nvim as before. direclty putting the path of the file you want to open after nvim open the file correctly. putting the %f inside ‘‘ or ““ gives me a warning about a swap file
here is how the code stands now
For your use case, you could just mime-type association to open those files with nvim.
You can use middle cilck on a file to open a file with the second application associated with the mimetype.
Managed to get it to open correctly by just setting it as the default editor. The context menu open in nvim still does not work tho. im not sure why the system cant parse the % variables. Do you have any tips on how i can debug this?
i would like this tool to be useful, but at present v0.27 is of little use.
this utility seems to throw a lot errors for things that are actually working.
have you used this on any of your service menus?
it really doesn’t like any sort of bash scripting in the Exec key value without double quotes and adding these breaks the scripting (unless i’m doing it wrong).
it seems confused by MimeType when not designated Type=Application but the MimeType is critical to making the service menu work with the target file types.
it cant seem to find some Actions even tho they are in the file and they are working
also it says the spec is 1.5 but if you follow the link the spec is only up to 1.1
there seems to be some guides that uses things that has been deprecated. not sure what is wrong for now i have just set nvim as the default program for all text files.