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.
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
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?
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?
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
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?
I would say, that this is minor problem, so target 6.0 is fine.
Passing to new installer.
fixed using (Exec=/bin/sh "$command") format.