vim: E212: Can't open file for writing (even when using sudo)

I'm trying to write to /usr/share/application/whatever.desktop and every time I try to save, using vim, I get the following error:

E212: Can't open file for writing

I get this error even using sudo.

Any ideas?

Thanks!

1 Answer

There's no such directory /usr/share/application/.

It is:

/usr/share/applications/

You are missing the final s.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like