How to validate .desktop files syntax?

I am trying to add some .desktop files to ~/.config/autostart/ , but it did not work, instead of editing everytime and reboot to test, how can I test the syntax ? some search mentions desktop-file-validate, but I can not find it in dnf repoquery --whatprovides desktop-file-validate or dnf search desktop-files-utils

1 Like

I found there is desktop-file-validate command and desktop-file-utils package, without s

2 Likes

To avoid relogin:
sudo desktop-file-install --rebuild-mime-info-cache nm-edit.desktop

1 Like