Issue 14729 - clicking on OOo file opens 2 windows
Summary: clicking on OOo file opens 2 windows
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: thorsten.martens
QA Contact: issues@framework
URL:
Keywords:
: 15541 16939 17804 18966 19429 19431 19642 19712 20938 22723 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-05-22 07:30 UTC by rk
Modified: 2005-02-25 17:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Proposed patch to wrapper scripts (2.07 KB, patch)
2003-09-03 13:10 UTC, nospam4obr
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description rk 2003-05-22 07:30:18 UTC
OOo 1.1 Beta2 on Mandrake 9.1

If OOo is already running, clicking on a OOo file (.sxw,..) in konqueror opens
two windows - one for the file clicked and one - "Untitled1". The untitled blank
window always comes in front, hiding the document clicked.

RK
Comment 1 thorsten.martens 2003-05-26 14:30:55 UTC
Known problem which has already been fixed in a recent internal
staroffice build. Will therefore be fixed in OO1.1 RC too !
Comment 2 rk 2003-08-07 08:30:55 UTC
Running OOo 1.1 RC 2 on Mandrake 9.1

The problem is not fixed.  To explain it again:

1. Start OOo.
2. Open any document (bar.sxw).
3. Open Konqueror, select an OOo file (foo.sxw).
4. right click and select - open with OOo.. 1.1
5. foo.sxw opens up and also another "untitled" window opens.
Comment 3 thorsten.martens 2003-08-07 09:27:45 UTC
TM->OBR: This problem has been fixed, but now it occurs again !
verified in a 645m15-6 build. Use any Linux, start staroffice
(backing-mode), select a staroffice file in the konquerror and use the
contextmenu for "open with" or simply click on the document icon ->
the doc will open correctly in the backing-window but an additional
blank and untitled doc is opened too !
Comment 4 thorsten.martens 2003-08-07 09:28:30 UTC
.
Comment 5 nospam4obr 2003-08-08 07:08:34 UTC
This bug has been fixed for CDE and Gnome, but not for KDE.
Unfortunatly for KDE the fix is not that easy: because there is no
desktop entry that directly launches soffice, which would need to have
_all_ the mime types assigned, the mime types are instead assigned to
each individual app launcher.

The result is a call to soffice with -writer file:///myfile.sxw.

->AS: Any ideas ?
Comment 6 nospam4obr 2003-08-08 10:02:34 UTC
A hidden KDE launcher with all mime types assigned is ruled out by the
"Open with" context menu entry, which would show nothing in this case.

So either we need a "OpenOffice" launcher again or we have to make the
swriter etc. shell scripts smart enough to skip -writer etc. in case
of file paramters.

-> TM: could you please clearify the appropriate target ?!
Comment 7 nospam4obr 2003-08-14 09:23:21 UTC
Thorsten, I think this is a candidate for 1.1.1. Changing the shell
scripts to be clever enough to work around the KDE mime registration
mess, seems not to be too dangerous to me.

What do you think ?
Comment 8 thorsten.martens 2003-08-14 10:53:33 UTC
*** Issue 17804 has been marked as a duplicate of this issue. ***
Comment 9 thorsten.martens 2003-08-14 10:54:13 UTC
*** Issue 16939 has been marked as a duplicate of this issue. ***
Comment 10 thorsten.martens 2003-08-14 10:54:50 UTC
*** Issue 15541 has been marked as a duplicate of this issue. ***
Comment 11 phemmel 2003-08-14 14:53:22 UTC
Hello  
 
As I said in my duplicated issue 15541 (sorry for that ...), I replace the 
1.1 shell scripts by the old 1.0 scripts, and it works ! 
 
What's wrong with this solution ? 
 
Philippe 
Comment 12 nospam4obr 2003-08-15 06:07:58 UTC
Hi Philippe,

the problem with the 1.0 solution is that scripters want to use the
-accept switch with scalc etc.. The old script was not smart enough to
differentiate between files and switches.

The -writer etc. should actually do exactly the same as the
private://factory URLs, so the real difference between the 1.0 and 1.1
solution is that 1.0 didn't pass the app specific switch when it was
launched with any parameter itself.
Comment 13 nospam4obr 2003-08-15 11:12:24 UTC
.
Comment 14 nospam4obr 2003-08-15 12:54:01 UTC
Target approved by TZ.
Comment 15 nospam4obr 2003-08-18 09:49:32 UTC
Whether actually a fix is required for the scripts depends on the
resolution of issue 18338.
Comment 16 thorsten.martens 2003-09-02 15:47:30 UTC
*** Issue 18966 has been marked as a duplicate of this issue. ***
Comment 17 nospam4obr 2003-09-03 13:10:16 UTC
Created attachment 8977 [details]
Proposed patch to wrapper scripts
Comment 18 nospam4obr 2003-09-03 13:14:56 UTC
Since 18338 won't probably be fixed before 2.0, I have attached a
patch to the wrapper scripts that should solve this issue for 1.1 code
path. What it does _not_ handle correctly is e.g. "swriter -help";
this has to wait until 2.0.
Comment 19 jack.warchold 2003-09-11 11:12:28 UTC
*** Issue 19431 has been marked as a duplicate of this issue. ***
Comment 20 thorsten.martens 2003-09-11 11:26:06 UTC
*** Issue 19429 has been marked as a duplicate of this issue. ***
Comment 21 thorsten.martens 2003-09-11 11:42:30 UTC
*** Issue 19429 has been marked as a duplicate of this issue. ***
Comment 22 udomerk 2003-09-11 16:02:09 UTC
I just found a work around under KDE: 
 
- I simply link *.sxw not against swriter, but soffice 
and the 2nd windows does not show up. 
- for sxc just do the same 
 
Comment 23 rblackeagle 2003-09-12 01:52:19 UTC
Don't overlook issue #19429, as it's very similar.
Comment 24 nospam4obr 2003-09-12 06:58:30 UTC
Calling soffice instead of swriter/scalc/sdraw/simpress will always
avoid this issue. The real fix has to be done in the soffice.bin
binary, because it behaves differently in case an office process is
already running, but we will probably patch the scripts as a workaround.

What do you mean with "link sxw to soffice" ? Did you patch the
launchers (.desktop files) ?
Comment 25 thorsten.martens 2003-09-16 14:27:19 UTC
*** Issue 19642 has been marked as a duplicate of this issue. ***
Comment 26 thorsten.martens 2003-09-18 09:32:11 UTC
*** Issue 19712 has been marked as a duplicate of this issue. ***
Comment 27 lohmaier 2003-10-15 18:33:27 UTC
*** Issue 20938 has been marked as a duplicate of this issue. ***
Comment 28 nospam4obr 2003-12-01 08:08:25 UTC
Commited to CWS fwk03pp1.
Comment 29 nospam4obr 2003-12-10 12:04:46 UTC
To verify, launch the e.g. calc application and run from the command line /path
to office/swriter mydocument.sxw - you will no longer get an empty document window.
Comment 30 nospam4obr 2003-12-10 12:06:06 UTC
Restored state FIXED.
Comment 31 thorsten.martens 2003-12-15 12:57:26 UTC
Checked and verified in cws fwk03pp1 -> OK !
Comment 32 Olaf Felka 2004-01-28 11:51:19 UTC
of: ok in srx645m27s1.
Comment 33 guido.pinkernell 2004-02-01 12:54:28 UTC
*** Issue 22723 has been marked as a duplicate of this issue. ***
Comment 34 mcanedo 2005-02-25 17:10:49 UTC
This is not really fixed yet, I'm using 1.9.79 on Mandrakelinux KDE, and it
still happens