Issue 120501 - Starting OpenOffice with "-nodefault" parameter should not open the StartCenter
Summary: Starting OpenOffice with "-nodefault" parameter should not open the StartCenter
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 3.4.0
Hardware: All All
: P3 Major with 14 votes (vote)
Target Milestone: 3.4.1
Assignee: Ariel Constenla-Haile
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-08 18:52 UTC by j.steinhilber
Modified: 2017-05-20 10:32 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---
jsc: 3.4.1_release_blocker+


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description j.steinhilber 2012-08-08 18:52:41 UTC
Steps to reproduce:

1. Make sure no soffice process is already running
2. Start Apache OpenOffice with the command "soffice -nodefault" or "soffice --nodefault"
3. The AOO Startcenter window appears. (This shouldn't happen!)

This behaviour is a.) incorrect and it is a realy great bug, b.) the behaviour stands in opposite of the documentation of this startparameter, and c.) it means that for most of the Java-Programmers who embeds OpenOffice in their Software, AOO ist absolutely unusable, and for the Users of their Software too.

The same bug ist in LO >= 3.4 so I think it's a bug which is imported from LO while integrating some code of the LO-Projekt.

The LO-Projekt is not very interested in solving this bug, but i think Apache-Software and Java is a historical grown community which should have a focus on work together well.

Cheers for solving this realy annoying bug 
Jürgen Steinhilber
Comment 1 letzter3 2012-08-09 06:24:46 UTC
I can confirm this bug.
Comment 2 Ariel Constenla-Haile 2012-08-09 06:50:09 UTC
(In reply to comment #0)
> Steps to reproduce:
> 
> 1. Make sure no soffice process is already running
> 2. Start Apache OpenOffice with the command "soffice -nodefault" or "soffice
> --nodefault"
> 3. The AOO Startcenter window appears. (This shouldn't happen!)
> 
> This behaviour is a.) incorrect and it is a realy great bug, b.) the
> behaviour stands in opposite of the documentation of this startparameter,

According to the documentation, the current behavior isn't wrong:

-nodefault    don't start with an empty document

Because the StartCenter is not a document.


> and c.) it means that for most of the Java-Programmers who embeds OpenOffice
> in their Software, AOO ist absolutely unusable, and for the Users of their
> Software too.
> 
> The same bug ist in LO >= 3.4 so I think it's a bug which is imported from
> LO while integrating some code of the LO-Projekt.

It's the other way around: LO integrated OpenOffice.org code. AOO does not integrate LO code, due to license conflict.


Back to this issue, supposing that we do not want to introduce yet another parameter, and we interpret the -nodefault as don't starting with an empty document nor with the StartCenter, then this bug can be solved by simply adding && !pCmdLineArgs->IsNoDefault() in 

(!pCmdLineArgs->WantsToLoadDocument() && !pCmdLineArgs->IsInvisible() && !pCmdLineArgs->IsHeadless() && !pCmdLineArgs->IsQuickstart())

http://svn.apache.org/viewvc/incubator/ooo/trunk/main/desktop/source/app/app.cxx?revision=1364581&view=markup#l2057
Comment 3 JBecker 2012-08-09 12:07:45 UTC
*** This issue has been confirmed by popular vote. ***
Comment 4 SVN Robot 2012-08-10 11:41:55 UTC
"arielch" committed SVN revision 1371665 into trunk:
#i120501# - Do not show the StartCenter when the office is executed with -nod...
Comment 5 Ariel Constenla-Haile 2012-08-10 11:54:32 UTC
(In reply to comment #0)
> c.) it means that for most of the Java-Programmers who embeds OpenOffice
> in their Software, AOO ist absolutely unusable, and for the Users of their
> Software too.

I will request release blocker status, so that the fix gets included in the next release.
This isn't really a release blocker, but the fix is very trivial and it has no risk at all. On the other hand, Programmability should always be a top priority in Apache OpenOffice, because it is a way to develop custom solutions on top of Apache OpenOffice binary release without the need to rebuild from source code nor hack it around. And as the reporter says, this bug is rather annoying.
Comment 6 j.steinhilber 2012-08-10 16:15:00 UTC
(In reply to comment #5)
> I will request release blocker status, so that the fix gets included in the
> next release.
> This isn't really a release blocker, but the fix is very trivial and it has
> no risk at all. On the other hand, Programmability should always be a top
> priority in Apache OpenOffice, because it is a way to develop custom
> solutions on top of Apache OpenOffice binary release without the need to
> rebuild from source code nor hack it around. And as the reporter says, this
> bug is rather annoying.

Hi Ariel,
thank you very much for that. And for sure a lot of developers and their users will be happy about this message and the possibility to use AOO with the next release.
By the way, next release, do you know when the next Version will be released?

Once more many thanks
Jürgen
Comment 7 jsc 2012-08-13 06:55:35 UTC
set release blocker flag for 3.4.1
Comment 8 SVN Robot 2012-08-13 07:13:37 UTC
"jsc" committed SVN revision 1372282 into branches/AOO34:
#120501# don't show start center if -nodefault is usedPatch By: arielchReview...
Comment 9 jsc 2012-08-13 07:21:43 UTC
merged on branch
Comment 10 Li Feng Wang 2012-08-14 02:34:52 UTC
Verified pass with AOO341 r1372282 on Windows and Redhat.

Start Apache OpenOffice with the command "soffice -nodefault" or "soffice --nodefault". There is no starting with an empty document nor with the StartCenter.