07-23-2023, 04:18 AM
xdg-open opens a document with the document opening tool provided by your desktop environment. (xdg stands for "Cross-Desktop Group".) This works for files such as word processor documents or spreadsheets, but also for .desktop files. So if you want to make the .desktop file executable as a script, that is the tool for it. But there is generally no need to make .desktop files directly executable at all.