Augeas cannot guess which lens to use. For example, in the case of a Desktop file (your example), many lenses could be used (MySQL.lns
, PHP.lns
, etc.) but each of them would introduce restrictions that would not be compatible with the Desktop format.
In your case, you want to use the Desktop.lns
lens:
$ augtool --autosave --noautoload --transform "Desktop.lns incl /path/to/your/example.desktop" set "/files/path/to/your/example.desktop/Desktop Entry/NoDisplay" true