Bug 15716

Summary: Netscape Composer invocation from command line should be improved
Product: [Retired] Red Hat Linux Reporter: Rabbe Fogelholm <eubrafo>
Component: netscapeAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: rvokal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-08 12:33:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rabbe Fogelholm 2000-08-08 12:33:13 UTC
Invoking Netscape Communicator from the command line is
usually done by the script /usr/bin/netscape. This script
does not do "the right thing" in the following case:

    /usr/bin/netscape +composer SomeFileURL

The "right thing" IMHO would be to open a Composer window on
the specified file (starting up Communicator unless there
isn't one running already).

What curently happens is that you get a Navigator window
onto the specifed file. I have tested this for Communicator
versions 4.73 and 4.74.

BTW, the simpler case where you provide the +composer
option but no file URL is handled properly--the Composer
is then opened.

I have found out how to hack the /usr/bin/netscape script so
as to handle the composer-with-file-URL. The maintainer of
the script ought to review this and perhaps come up with a
more general solution.

Here is the output of
diff -e netscape netscape-myProvisionalFix (executed in
/usr/bin, assuming NC 4.74 installed).

---------------- cut
85a
elif [ "$b_opt" = openEditor ]; then
exec $netscape $defs $cl_opt "$@"
.
76a
elif [ "$b_opt" = openEditor ]; then
$netscape $defsrem "xfeDoCommand($b_opt,$url)" 2>/dev/null || \
{ killstale && exec $netscape $defs $cl_opt "$@" ; }
.
---------------- cut

Comment 1 Bill Nottingham 2001-01-19 22:38:20 UTC
Will be changed in netscape-4.76-5.