include a .desktop file in the package
Description:
There is now a .desktop file and an icon upstream (assets/com.microsoft.edit.desktop and assets/edit.svg)
- The desktop file cannot be used as is, because it uses
edit
as the name of the binary and icon, those at least need to be changed tomsedit
and according to upstream the file is there as a reference for package maintainers to create their own desktop file:
I do not expect everyone to install or package this .desktop entry, it's here as a reference.
- I have previously created a more complete .desktop file based on the one included with similar editors like
vim
: ms-edit-desktop. It has categories, and a more complete list of media types that can be opened with a plain text editor. It also uses the recommended Linux binary names, and has edit as an alias (keyword) following upstreams naming suggestions:
Package Naming The canonical executable name is "edit" and the alternative name is "msedit". We're aware of the potential conflict of "edit" with existing commands and recommend alternatively naming packages and executables "msedit". Names such as "ms-edit" should be avoided. Assigning an "edit" alias is recommended, if possible.
- Other than packaging a .desktop file and the official icon, it could be useful to suggest upstream to improve the .desktop file so it could be directly used in packaging (using recommended Linux naming), and to make it more feature complete (in line with other editors).
Additional info:
- package version(s): 1.2.0
- config and/or log files:
- link to upstream bug report, if any: https://github.com/microsoft/edit/pull/107