WINDOWS 7 & VISTA ONLY (maybe xp) When I open a .csv file, the popup dialog does not appear to the front if any program (calc, draw, writer, ...) IS ALREADY RUNNING. When you switch to the libreoffice window, the modal popup appears. If instead libreoffice is closed, the popup appears to the front.
I'm confused. Are you running libreoffice and openoffice at the same time? >If instead libreoffice is closed, the popup appears to the front. If libreoffice is closed, how can any of its dialogs appear!?
I only have libreoffice installed. > If libreoffice is closed, how can any of its dialogs appear!? because when you double click on an associated file libreoffice starts :) So if libreoffice is closed, after you double click on the .csv file the modal popup appears to the front. Instead if you were already running libreoffice (because you were working with other documents) the modal popup does not appear to the front. So this bug can be summarized as: when opening a .csv file the popup should always appear to the front
[Reproducible] with "LibreOffice 3.4.1RC1 – WIN7 Home Premium (64bit) German UI [OOO340m1 (Build:101)]". Steps to reproduce: 0. download attached "sample.csv" and save it in your default LibO Folder 1. close LibO, if it's running 2. Start LibO Start Center from WIN start center 3. Switch WIN Explorer to folder where "sample.csv" has been saved If necessary, make CALC default program for .csv and restart from 1. 4. Couble click "sample.csv" Expected: CALC Text Import should appear in focus Actual: Nothing! A LibO button will flash in the WIN Task Bar, but no dialog will appear @Kohei: Please feel free to reassign if it’s not your area or if provided information is not sufficient.
Created attachment 48201 [details] Sample, see Comment 3
This bug is a stumbling block to acceptance of LibreOffice by my co-workers. I should be assigned a higher priority. When a csv file is double-clicked, the csv dialog should always be on top(i.e., it should immediately be given focus). Thanks, Rmax
I presume this is a Windows-only issue? I'd like to give this to Tor who I believe has worked on similar Windows focus issues in the past. BTW please don't mess with the priority and importance field. Those fields are for the implementer use only. (I personally ignore these fields precisely because so many reporters abuse them.)
Note: Many developers, me included, tend to take claims "this is the only thing stopping me from starting to use this software" pretty lightly. People always say so. And if that one thing is fixed, then there is another thing. Etc. Anyway, yes, there was a similar issue in the past. I don't remember exactly how similar it was, and can't guess at this stage whether the same "fix" (or more like workaround) can be applied to this problem, too. Presumably this is a farily generic problem, not specific to the dialog for .csv files.
Since all new unconfirmed bugs start in state UNCONFIRMED now and old unconfirmed bugs were moved to NEEDINFO with a explanatory comment, all bugs promoted above those bug states to NEW and later are automatically confirmed making the CONFIRMED whiteboard status redundant. Thus it will be removed.
*** Bug 41706 has been marked as a duplicate of this bug. ***
*** Bug 54765 has been marked as a duplicate of this bug. ***
This bug has not been touched by its owner for a long time. To make it clearer which bugs should be fixed by someone else please take following action: - If you are the owner, and you are actively working on the bug, please give it an update. - If you are the owner, and you do not plan to work on it in the near future, please reassign it to the default assignee and change its status to NEW.
*** Bug 57931 has been marked as a duplicate of this bug. ***
*** Bug 61799 has been marked as a duplicate of this bug. ***
When I double click a file in Windows, I expect some application to appear that opens the file. This bug creates the experience that "nothing happened" and I would double click again (Thinking that my mouse button is malfunctioning). Then I would think that the associated application is hanging if nothing still happens. Then I would switch to my currently open LibreOffice window to see if it is "Not Responding" just to suddenly notice the stack of "Text Import" dialogs waiting for user input. Really annoying, and seems so easy to fix. The dialog should just take focus when it opens. I believe this is a problem with all Text files and not just csv. But since I use LibreOffice (alongside (company's) Ms Office) just because it is so nice in displaying and importing CSVs, it is a daily irritation.
Marking as NEW per duplicates and bug is unowned.
*** Bug 74871 has been marked as a duplicate of this bug. ***
1/ Can confirm this issue for LibreOffice 4.2.4.2 on Ubuntu 14.04 2/ Its a really annoying bug! 3/ We are willing to help sponsor a bug fix.
We have just sponsored this issue for USD 300.00 on FreedomSponsors to the first person who fixes it: http://www.freedomsponsors.org/issue/527/csv-import-dialog-doesnt-get-focus-if-libreoffice-is-already-running If you want to add a few dollars to this issue we'll all get it fixed faster :) If you solve it (according to the acceptance criteria described there), please register on FreedomSponsors and mark it as resolved there. We will then check it out and gladly pay.
LO4.3.0.4 Win 7 x86 32bit, 1. I downloaded sample.csv 2. closed LO 3. I opened the windows explorer and saw that sample.csv was registered to open with LO-calc, 4a. I double clicked sample.csv and LO appeared with the text-import dialog to import the csv-File 4b. I opend LO-Startcenter (Startmenu->Libreoffice4.3->Libreoffice) and doubleclicked sample.csv in the win-explorer . the import-dialog appeared 4c. I tried to open with the Opendialog of LO and the import-dialog appeared also. 4d. I opened LO-calc (an empty document) and did the same as in 4b and all is fine. also when i tried to do this with the open-dialog of LO. my guess. this is fixed.
Reproducible on Windows 7 Pro 64bit with LO 4.3.0.4 Downloaded sample CSV file. Made a second copy so i had 2 CSV files. 1. Closed all LO windows. 2. Opened first CSV file from windows Explorer, import dialogue opened and was in focus. Click ok on import. Minimised this document. 3. Opened second CSV file from Windows explorer, no import dialogue came into focus. 4. Clicked on already opened LO file. The import dialogue then appeared. Have also tried it on Ubuntu 14.04 64 Bit with LO 4.3.0.4 with the same result, that once you have one document already open and try to open another CSV file the import dialogue does not come into focus. I have to click on the already open LO document in order to complete the import of the CSV file.
(In reply to comment #19) > LO4.3.0.4 Win 7 x86 32bit, > > 1. I downloaded sample.csv > 2. closed LO > 3. I opened the windows explorer and saw that sample.csv was registered to > open with LO-calc, > 4a. I double clicked sample.csv and LO appeared with the text-import dialog > to import the csv-File > 4b. I opend LO-Startcenter (Startmenu->Libreoffice4.3->Libreoffice) and > doubleclicked sample.csv in the win-explorer . the import-dialog appeared > 4c. I tried to open with the Opendialog of LO and the import-dialog appeared > also. > 4d. I opened LO-calc (an empty document) and did the same as in 4b and all > is fine. also when i tried to do this with the open-dialog of LO. > > my guess. this is fixed. Hi Christoph, Yes, your use case is OK. This specific issue occurs when a csv is opened in LO via an application or file manager (such as Dolphin or Windows Explorer) & a copy of LO is already opened (ALSO from a file manager or application such as FireFox) and minimised. Regards Bill
This happens to me too and it is very frustrating.
Still happening with us, have a few fustrated users, complaining the time spent looking for window, that continually hides!!!! When opening a .csv file, the popup dialog does not appear to the front if any program (calc, draw, writer, ...) IS ALREADY RUNNING. When you switch to the libreoffice window, the modal popup appears. If instead libreoffice is closed, the popup appears to the front.
This is _still_ reproducible, almost 4 years on: Kubuntu 14.04 LTS LibreOffice 4.3.0.4 from the PPA Open a libreoffice document, and minimise it, or hide it behind another focussed (non-libreoffice) application window Using a file manager (in my case dolphin), or any non-libreoffice application that will honour file associations (eg email client), open a csv file The csv import dialog is opened as a child of the existing hidden/minimised libreoffice window, and it remains hidden/minimised. The perceived outcome of this for the user is one or more of the following: * nothing happened, so they try double clicking again (and nothing happens) * they assume libreoffice has crashed * further libreoffice launch attempts from non-libreoffice applications fail because they are being blocked by the hidden dialog, so... * they assume the computer has crashed, and reboot only to have the same behaviour occur None of these outcomes are desirable for a functional user experience.
I wonder if some users can reproduce this in linux. But I can't reproduce in: - Ubuntu 12.04 gnome/unity x86 with LO 4.2.6.2 (from PPA) - Kubuntu 12.04 (kde 4.13.2) x86 with LO 4.0.4.2 (from PPA)
(In reply to comment #25) > I wonder if some users can reproduce this in linux. > > But I can't reproduce in: > - Ubuntu 12.04 gnome/unity x86 with LO 4.2.6.2 (from PPA) > - Kubuntu 12.04 (kde 4.13.2) x86 with LO 4.0.4.2 (from PPA) I made two videos - based on: Ubuntu 12.04, bog standard install. Add kde via: sudo apt-get install kubuntu-desktop add this ppa: https://launchpad.net/~libreoffice/+archive/ubuntu/libreoffice-4-3 upgrade all libreoffice packages to 4.3.0.4: sudo apt-get install $(dpkg -l | grep libreoffice | awk '{print $2}') Video 1: Unity Desktop, expected (correct) behaviour https://drive.google.com/file/d/0BxhtBAYzjZj5V1V1NjRTRVRKZ0E/edit?usp=sharing Video 2: Logged out of Unity, logged into KDE Desktop - unexpected behaviour, as described by this bug: https://drive.google.com/file/d/0BxhtBAYzjZj5ODZ2RG1GZHZtUEE/edit?usp=sharing
Thanks for your videos Bernard. Seems I forgot to minimize existing opened window while testing on previous comment. Confirm reproduced in LO 4.0.4.2 with Kubuntu 12.04 x86. It seems only reproduced in Linux within KDE environment. But I think this bug only for Windows, possibly different cause in linux. How about filing this bug in launchpad or kde?
Hi LibreOffice bug team. Yes I have the same issue with this. Hope you can fix this bug sooner rather than later. Good luck. :-)
(In reply to comment #27) > Thanks for your videos Bernard. Seems I forgot to minimize existing opened > window while testing on previous comment. > > Confirm reproduced in LO 4.0.4.2 with Kubuntu 12.04 x86. It seems only > reproduced in Linux within KDE environment. > > But I think this bug only for Windows, possibly different cause in linux. > How about filing this bug in launchpad or kde? Logged against qt-x11 in ubuntu/launchpad. I can replicate on the razorqt wm/de so the problem is bigger than kde. https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/1369424
I can confirm this bug in Windows 7 Professional with LibreOffice 4.3.1.2. It is very frustrating working with CSV files in LibreOffice Calc.
(In reply to Bernard Gray from comment #29) > (In reply to comment #27) > > Thanks for your videos Bernard. Seems I forgot to minimize existing opened > > window while testing on previous comment. > > > > Confirm reproduced in LO 4.0.4.2 with Kubuntu 12.04 x86. It seems only > > reproduced in Linux within KDE environment. > > > > But I think this bug only for Windows, possibly different cause in linux. > > How about filing this bug in launchpad or kde? > > Logged against qt-x11 in ubuntu/launchpad. I can replicate on the razorqt > wm/de so the problem is bigger than kde. > > https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/1369424 After some discussion with qt guys, I've redirected the bug (which affects KDE/Linux users) to the KDE kwin team, I'm cleaning up the extraneous bugs I've created. https://bugs.kde.org/show_bug.cgi?id=339621 This comment does not relate to this windows specific bug.
Added a link to bug/feature request 74580, which involves a closely related use case and has in my view wrongly been marked resolved. Please see my comment on that bug for explanation.
Exactly same happens with HTML imports. Should another bug be raised for that?
*** Bug 87306 has been marked as a duplicate of this bug. ***
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.0.4 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-12-20
The essence of the bug (or misfeature) is that the dialog is attached to the wrong window. When any CSV or HTML file is right clicked in Windows Explorer and 'Open with... LibreOffice Calc' selected (a) if LibreOffice is not running: (i) The Import Dialog opens with no parent window, at the top of the Z order, i.e. on top of the Explorer window from which it was called. (ii) If OK is clicked on the Import Dialog, a Calc window opens. (iii) If Cancel is selected, LibreOffice quits. In other words, correct behaviour. (b) if LibreOffice is running (i) the Import Dialog opens with some existing LibreOffice window as its parent. This need not be a Calc window: it will attach to e.g. a Writer window if any is open. (ii) In no case does the Import Dialog or its parent window come to the top of the Z-order. Even if its parent is the topmost window other than the calling Explorer window, the dialog remains underneath the Explorer window. If the parent window happens to be deeper in the Z-order, the dialog is completely hidden, with no clue to the user that it is there. In other words, the bug/misfeature is exercised. It looks like potentially a very simple fix. The Import Dialog just needs to open with no parent even if LibreOffice is already running. I would expect it to involve no more than changing a parent window reference to null for both kinds of import dialog. If you wish me to raise a separate bug report for the HTML Import Dialog, please let me know.
I spent some time diving through the libreoffice source, and I can see how to fix this but I don't really have time to get libreoffice compiling, and get this through the development process. There are two options to fix this: 1) Easy option: Add the Dialog::InitFlag::NoParent flag to the ModalDialog constructor for imports (as far as I can tell this is, ScImportOptionsDlg and ScImportAsciiDlg): line 240 of sc/source/ui/dbgui/scuiasciiopt.cxx: ScImportAsciiDlg::ScImportAsciiDlg( vcl::Window* pParent, const OUString& aDatName, SvStream* pInStream, ScImportAsciiCall eCall ) : ModalDialog (pParent, "TextImportCsvDialog", "modules/scalc/ui/textimportcsv.ui"), becomes: ScImportAsciiDlg::ScImportAsciiDlg( vcl::Window* pParent, const OUString& aDatName, SvStream* pInStream, ScImportAsciiCall eCall ) : ModalDialog (pParent, "TextImportCsvDialog", "modules/scalc/ui/textimportcsv.ui", Dialog::InitFlag::NoParent), and line 101 of core/sc/source/ui/dbgui/scuiimoptdlg.cxx: ScImportOptionsDlg::ScImportOptionsDlg( vcl::Window* pParent, bool bAscii, const ScImportOptions* pOptions, const OUString* pStrTitle, bool bMultiByte, bool bOnlyDbtoolsEncodings, bool bImport ) : ModalDialog ( pParent, "ImOptDialog", "modules/scalc/ui/imoptdialog.ui" ) becomes: ScImportOptionsDlg::ScImportOptionsDlg( vcl::Window* pParent, bool bAscii, const ScImportOptions* pOptions, const OUString* pStrTitle, bool bMultiByte, bool bOnlyDbtoolsEncodings, bool bImport ) : ModalDialog ( pParent, "ImOptDialog", "modules/scalc/ui/imoptdialog.ui", Dialog::InitFlag::NoParent) This will make the dialog always have a window tab - even when you're pasting ascii into calc. I think this is probably acceptable. Main issue will be that the dialog won't be modal in these cases. 2) Harder option: So the issue with option 1 is that the dialog will always be a new window. What we really need is another dialog flag added like Dialog::InitFlag::NoParentIfNull or something - so it takes a parent if there is one, but otherwise doesn't set one. This would be easy enough to add to dialog.cxx, but I think the things that call ScImportOptionsDlg and ScImportAsciiDlg don't bother to pass the window in and rely on the default window-finding behaviour of ModalDialog. Still not super hard to fix - just have to track down the places that reference the dialogs and pass the window context in.
Many thanks for your work, Matt. I may have a go at it if I get time, but don't let me stop you or anyone else who gets there first. There are actually three distinct use cases... (1) open csv from outside LibreOffice (e.g. from Windows Explorer) (2) open csv from Calc window with no spreadsheet loaded (loads in same window) (3) open csv from Calc window with spreadsheet loaded (loads in new window) ...possibly more, but those are what I have spotted. Please Matt or anyone comment if you think of more. Preliminary thought is that the dialog only really needs to be modal in case (2). I'll mull it some more if I actually make a start on it.
There's also a forth case: 4) Copy/paste text into calc (should be modal)
Another case is a makefile driven design setup where a script starts LibreOffice 5.2.4.2.1 20m0(Build:2): libreoffice --calc filename.tsv Starts the program, but does not give it focus, so the new dialogbox is under the window of the terminal emulator, which usually is fairly large so I do not see it until I lower it, or tab through windows overlapping each other to find it. So, it stops automation. Well, not for too long -- I can maybe use gnumeric...
For my use case, makefile automation, I discovered a workaround: openofc --calc --infilter=generic_Text kvboard.bom.tsv opens the file kvboard.bom.tsv immediately!
This ??what's it doing?? behaviour has been annoying for some time, yet I was hoping it would be gone with the LibreOffice fix for "don't open a double-click file in the background" (fixed c. end 2016). Yet the .csv dialogue still opens in the background. It really looks like LO is doing nothing. I'm astonished that this has been observed, known about and hanging around for 6 years and it's not been progressed :( Observed, again (2017-03-14) on Version: 5.3.0.3 Build ID: 7074905676c47b82bbcfbea1aeefc84afe1c50e1 CPU Threads: 8; OS Version: Windows 6.2; UI Render: default; Layout Engine: new; Locale: en-GB (en_GB); Calc: group
This ??what's it doing?? behaviour has been annoying for some time, yet I was hoping it would be gone with the LibreOffice fix for "don't open a double-click file in the background" (fixed c. end 2016). Yet the .csv dialogue still opens in the background. It really looks like LO is doing nothing. I'm astonished that this has been observed, known about and hanging around for 6 years and it's not been progressed :( Observed, again, (2017-03-14) on Version: 5.3.0.3 Build ID: 7074905676c47b82bbcfbea1aeefc84afe1c50e1 CPU Threads: 8; OS Version: Windows 6.2; UI Render: default; Layout Engine: new; Locale: en-GB (en_GB); Calc: group
still present in 5.3.1.2
Still present in 5.3.0.3 (x64)
*** Bug 109027 has been marked as a duplicate of this bug. ***
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=3b57cb72ec8b47f033be5a516617ed8c752517b0 tdf#32935 tdf#49134 tdf#114466 Activate newly opened modal dialogs It will be available in 6.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
(In reply to Commit Notification from comment #49) > > http://cgit.freedesktop.org/libreoffice/core/commit/ > ?id=3b57cb72ec8b47f033be5a516617ed8c752517b0 > > tdf#32935 tdf#49134 tdf#114466 Activate newly opened modal dialogs > Functions correctly in Windows builds...
*** Bug 115316 has been marked as a duplicate of this bug. ***
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-6-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=3f4b0788ba688dbdf7d4487b7ef83edc7e81c1e8&h=libreoffice-6-0 tdf#32935 tdf#49134 tdf#114466 Activate newly opened modal dialogs It will be available in 6.0.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 115683 has been marked as a duplicate of this bug. ***
@Mike Please close this as fixed :-)
Reset OS back to Windows (as it was reported initially). macOS-specific *still-not-fixed* problem is tracked in bug 115683. I cannot reproduce the problem on my Ubuntu, but in case it still exists, it should have a dedicated issue.
Hi Mike et al, This is definitely an issue on Ubuntu. I have noticed it for many years from at least 16.04 (now running 18.04). If there is any way to apply this patch to Ubuntu it would be greatly appreciated as it's a really frustrating thing about Libreoffice which is otherwise excellent. I can create an issue myself but thought should ask here first to see what would be the best way to go about this. Thanks in advance for your help, Jesse
I can confirm that this bug exists in version 6.0.3.2 on Ubuntu 18.04.
(In reply to Jesse McNichol from comment #56) (In reply to valentas from comment #57) As mentioned in comment 55, Ubuntu problem needs its own dedicated issue. Please go forward and create one; you might set this one to "See Also" if required. This specific issue was used to track a Windows problem, and is fixed.
Thanks Mike, opened a new bug here: https://bugs.documentfoundation.org/show_bug.cgi?id=119813 @valentas, please comment there to confirm you have the same problem
We are past the 8 year mark on this bug. I hit it multiple times a day on Ubuntu 18.04.02 LTS using LibreOffice 6.0.7.3 Open LibreOffice open with cvs file (first file opens fine) Select another csv file to open. Import screen doesn't get focus. Import screen is buried somewhere on desktop. (Must minimize all active windows to find.) It happily lets you to try to open the same file again (giving you another buried import screen).
Please read the comment above yours. Thank you.
(In reply to Miranda from comment #60) Thank you for your effort to make LibreOffice better. However, please refrain from changing a bug that has a very clear scope (Windows), which has been fixed, into something different, just because on your platform you see similar problems. Window management (including focus stealing prevention and Z-order) are inherently platform-specific; and for Linux, there's a different tdf#119813 - you only had to look at the post right above yours to see it. Thanks.
The bug is still present in Windows 10 Only in bit different form - when clicked to open csv file - dialog pops up then immediately hides behind the explorer window
(In reply to ikke from comment #63) Please file a new bug report for your slightly different issue, and link this one in the See Also field.