Better desktop launching support
Here are my proposals for improving the situation with regard to desktop file launching. It builds on !58 (closed). Basically we require two things to launch a desktop file, which is the same as Nautilus had in the past:
- The file has the UNIX execute permission bit set (
- The file has the gio/gvfs
metadata::trustedproperty set to true.
We add the support for launching such desktop files (showing their name and icon if so, as well as the symlink emblem to indicate that it is a launcher). Also watching for the execute permission changing.
We also add UI in the context menu for toggling
metadata::trusted. I think this is a simple way to do it, and it is also an explicit action rather than a dialog which you can respond "do what I want FFS".
It's cool that these are the two mechanisms that nautilus used before, because it means that if you upgrade from < 3.28 to 3.28 + desktop-icons, you get to still use your desktop files without any extra changes.
It's probably a good idea to review this by looking at the individual commits.