Skip to main content
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265
Source Link
Albert
  • 103
  • 1

Monitor file and overwrite it every time it changes?

I have an application with the default icon which I don't like, I want to enforce the icon I wish. I can change the .desktop file and set the Icon value to use my icon. But the problem is: whenever the application gets an update, it replaces the .desktop file to reflect changes (new Exec path, etc.).

I need a way to make my Linux system to somehow monitor this .desktop file for changes, and overwrite the Icon field in the file whenever it changes. Is there any way to not to do it manually?