This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 99516 - Exec entry in netbeans5.5.desktop, Solaris Express, Developer Edition
Summary: Exec entry in netbeans5.5.desktop, Solaris Express, Developer Edition
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P4 blocker (vote)
Assignee: dlipin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-30 11:16 UTC by migi
Modified: 2007-06-18 16:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description migi 2007-03-30 11:16:42 UTC
In the Solaris Express, Developer Edition the Exec entry in netbeans5.5.desktop
is in the quotes:

Exec="/opt/netbeans-5.5/bin/netbeans"

The specification tells, that the arguments might be in the quotes, not the Exec
command:
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

This prevents to start NetBeans from copied desktop file, to reproduce the bug:
1. In the Solaris Express, Developer Edition go to the All Applications ->
Developer Tools 
2. Right click on the NetBeans icon and select "Add this launcher to panel"
3. Clicking on the created icon does not launch NetBeans

Proposed working solution:
Remove the quotes from Exec entry in the
DeveloperTools/NetBeans/netbeans5.5.desktop file on the Solaris Express,
Developer Edition DVD:

Exec=/opt/netbeans-5.5/bin/netbeans

-- 
best
Michal Pryc
Comment 1 mslama 2007-03-30 14:03:50 UTC
I had problem with space in path. Then without double quotes it did not work. I
know on Linux/Solaris space in path are not very common but still they are
possible and it should work. Any solution to this problem?
Comment 2 mslama 2007-03-30 14:19:32 UTC
I do not read that Exec command cannot be quoted. Where is it? There is just:
Arguments may be quoted in whole. If an argument contains a reserved character
the argument must be quoted. The rules for quoting of arguments is also
applicable to the executable name or path of the executable program as provided.

It just means that executable name or path may be quoted. So I think problem is
elsewhere. I just tested on Ubuntu 7.04 with Gnome 2.18 and it works fine. I
added NB icon to panel and I can launch NB without any problem. It looks like
Gnome problem. So I can remove quoting but it will cause problem when there will
be space in path. What is bigger problem?
Comment 3 migi 2007-03-30 14:22:57 UTC
The workaround is to use shell and the netbeans as argument in quotes, like:

Exec=/bin/bash "/opt/netbeans-5.5/bin/netbeans"

so spaces are acceptable:
Exec=/bin/bash "/opt/netbeans 5.5/bin/netbeans"

Another possibility is to use character " " as a space, like:
Exec=/opt/netbeans" "5.5/bin/netbeans

I think this might be a bug in panel luncher, but on the other hand, the
specification does not tells anything about it.

-- 
best
Michal Pryc
Comment 4 mslama 2007-03-30 14:50:14 UTC
First possibility is simpler. I will use /bin/sh as it is more general. (It is
symlink to bash on FC5 and to dash on Ubuntu 7/04.) I will test it both on
Solaris and Linux. Shall I fix it for 5.5.1 or is 6.0 enough?
Comment 5 migi 2007-03-30 14:56:01 UTC
I would say, that this is minor problem, so target 6.0 is fine.
Comment 6 mslama 2007-04-18 15:36:19 UTC
Passing to new installer.
Comment 7 dlipin 2007-06-18 16:21:24 UTC
fixed using (Exec=/bin/sh "$command") format.