git: e271da020abf - main - editors/microsoft-edit: Fix desktop file
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 Jun 2025 13:39:56 UTC
The branch main has been updated by nobutaka:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e271da020abf1814e8248edc2c938027aaa02c65
commit e271da020abf1814e8248edc2c938027aaa02c65
Author: MANTANI Nobutaka <nobutaka@FreeBSD.org>
AuthorDate: 2025-06-22 13:31:05 +0000
Commit: MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2025-06-22 13:39:24 +0000
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>
---
editors/microsoft-edit/Makefile | 3 ++-
.../files/patch-assets_com.microsoft.edit.desktop | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/editors/microsoft-edit/Makefile b/editors/microsoft-edit/Makefile
index 3b9929a2a660..9ed34e15e4a8 100644
--- a/editors/microsoft-edit/Makefile
+++ b/editors/microsoft-edit/Makefile
@@ -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
diff --git a/editors/microsoft-edit/files/patch-assets_com.microsoft.edit.desktop b/editors/microsoft-edit/files/patch-assets_com.microsoft.edit.desktop
new file mode 100644
index 000000000000..2f8c62887296
--- /dev/null
+++ b/editors/microsoft-edit/files/patch-assets_com.microsoft.edit.desktop
@@ -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