misc/143296: editors/py-room: desktop file should be patched
Anatoly Borodin
anatoly.borodin at gmail.com
Wed Jan 27 16:50:03 UTC 2010
>Number: 143296
>Category: misc
>Synopsis: editors/py-room: desktop file should be patched
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 27 16:50:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anatoly Borodin
>Release:
>Organization:
>Environment:
>Description:
The desktop file contains Linux-style path for the icon and the executable. See possible patch.
Or should DESKTOP_ENTRIES be used instead?
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
>From a5b3a56a009e9621b2404e750672ddeb3aabd0fc Mon Sep 17 00:00:00 2001
From: Anatoly Borodin <anatoly.borodin at gmail.com>
Date: Tue, 19 Jan 2010 22:51:43 +0100
Subject: [PATCH 21/21] editors/py-room: .desktop file fixed.
---
editors/py-room/Makefile | 3 ++-
editors/py-room/files/patch-pyroom.desktop | 14 ++++++++++++++
2 files changed, 16 insertions(+), 1 deletions(-)
create mode 100644 editors/py-room/files/patch-pyroom.desktop
diff --git editors/py-room/Makefile editors/py-room/Makefile
index ff161e5..aa69fd5 100644
--- editors/py-room/Makefile
+++ editors/py-room/Makefile
@@ -29,6 +29,7 @@ post-patch:
@${REINPLACE_CMD} -e \
's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/setup.py ${WRKSRC}/PyRoom/preferences.py \
- ${WRKSRC}/PyRoom/gui.py
+ ${WRKSRC}/PyRoom/gui.py \
+ ${WRKSRC}/pyroom.desktop
.include <bsd.port.mk>
diff --git editors/py-room/files/patch-pyroom.desktop editors/py-room/files/patch-pyroom.desktop
new file mode 100644
index 0000000..fa8b8b8
--- /dev/null
+++ editors/py-room/files/patch-pyroom.desktop
@@ -0,0 +1,14 @@
+--- pyroom.desktop 2009-04-06 10:32:56.000000000 +0200
++++ pyroom.desktop 2009-04-06 10:32:56.000000000 +0200
+@@ -1,9 +1,9 @@
+ [Desktop Entry]
+ Version=1.0
+ Name=PyRoom
+-Icon=/usr/share/pyroom/pyroom.png
++Icon=%%LOCALBASE%%/share/pyroom/pyroom.png
+ Comment=Distraction free full-screen text editor
+-Exec=/usr/bin/pyroom %F
++Exec=%%LOCALBASE%%/bin/pyroom %F
+ Terminal=false
+ Type=Application
+ Categories=GNOME;GTK;Office;
--
1.6.6.1
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list