editors/microsoft-edit: Fix desktop file

- Correct Exec and Icon fields
- Use desktop-file-utils to properly add desktop entry

PR:		287718
Reported by:	ykla <yklaxds@gmail.com>
This commit is contained in:
MANTANI Nobutaka 2025-06-22 22:31:05 +09:00
parent 56acc75c66
commit e271da020a
2 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,7 @@
PORTNAME= microsoft-edit
DISTVERSIONPREFIX= v
DISTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= editors
MAINTAINER= nobutaka@FreeBSD.org
@ -10,7 +11,7 @@ WWW= https://github.com/microsoft/edit
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cargo
USES= cargo desktop-file-utils
USE_GITHUB= yes
GH_ACCOUNT= microsoft
GH_PROJECT= edit

View File

@ -0,0 +1,13 @@
--- assets/com.microsoft.edit.desktop.orig 2025-06-11 21:26:27 UTC
+++ assets/com.microsoft.edit.desktop
@@ -3,8 +3,8 @@ Comment=A simple editor for simple needs
Name=Microsoft Edit
GenericName=Text Editor
Comment=A simple editor for simple needs
-Icon=edit
-Exec=edit %U
+Icon=msedit
+Exec=msedit %U
Terminal=true
MimeType=text/plain
Keywords=text;editor