Hi Kurt,

I'm forced to use eclipse for a project at uni, and I was very happy
and grateful when discovering the OpenBSD port for it in the tree,
so that installing the thing was not a PITA.

Anyway, the .desktop file provided with the eclipse port seems to 
have a small error.

When I used the menu entry to start eclipse, it complained about the
JDK being missing. Starting eclipse from the command line worked though.

The eclipse port installs a wrapper script in /usr/local/bin/eclipse,
which sets up the proper path to the java VM prior to launching the IDE
itself which is installed as /usr/local/eclipse/eclipse.

The .desktop file does not point to the wrapper script, but points
directly to /usr/local/eclipse/eclipse.

Making the .desktop file use the wrapper script fixed the issue for me:

Index: eclipse.desktop
===================================================================
RCS file: /usr/OpenBSD-CVS/ports/devel/eclipse/sdk/files/eclipse.desktop,v
retrieving revision 1.1
diff -u -r1.1 eclipse.desktop
--- eclipse.desktop     25 Jan 2008 20:17:26 -0000      1.1
+++ eclipse.desktop     27 Feb 2008 18:56:45 -0000
@@ -4,6 +4,6 @@
 Name=Eclipse
 GenericName=Eclipse, an IDE for all reasons
 Icon=%%PREFIX%%/eclipse/icon.xpm
-Exec=%%PREFIX%%/eclipse/eclipse
+Exec=%%PREFIX%%/bin/eclipse
 Terminal=false
 Categories=Development;

-- 
stefan
http://stsp.name                                         PGP Key: 0xF59D25F0

Attachment: pgpv38FyZcENa.pgp
Description: PGP signature

Reply via email to