Bug 504334 - open document in new window if empty window is displaying an error
Summary: open document in new window if empty window is displaying an error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: evince
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Marek Kašík
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-05 16:19 UTC by Jeff Bastian
Modified: 2018-10-27 15:01 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, evince classified a single error dialog as a full running instance. Consequently, if an instance of evince contained only an error dialog, any document opened would appear that instance. This may have confused users, as documents were displayed in the workspace where the error dialog is located, rather than the current workspace. In this updated package, evince no longer treats a single error dialog as an opened document, resolving this issue. (BZ#504334)
Clone Of:
Environment:
Last Closed: 2010-03-30 08:03:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to open new window (1.64 KB, patch)
2009-06-15 21:31 UTC, Jeff Bastian
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0195 0 normal SHIPPED_LIVE evince bug fix update 2010-03-29 12:24:19 UTC

Description Jeff Bastian 2009-06-05 16:19:33 UTC
Description of problem:
This is a usability bug with evince.

Scenario: a user is working in workspace 2 and opens a PDF from the web with Firefox.  It launches evince to display the PDF.  Then the user saves his session and logs out.  He logs in sometime later, launches Firefox in workspace 1, and tries open another PDF, but nothing happens, i.e., evince does not launch.

Actually, it did launch, but it's not obvious to the user.

evince was started in workspace 2 on login when the session was restored, but it's empty except for an error in a modal dialog box
    Unable to open document
    File not found
(This is because Firefox cleaned up after itself and removed the PDF file from the first session.)

Even though it's displaying an error, evince considers the window available for usage, so it opens the new document in this window.

When evince is displaying an error, that window should be considered unavailable, and it should open a new window.  And this new window would appear in workspace 1 automatically where the user expects it to.


Version-Release number of selected component (if applicable):
evince-0.6.0-8.el5.x86_64

How reproducible:
every time

Steps to Reproduce:
1. in workspace 1, run 'evince foo.pdf' where foo.pdf does NOT exist
2. switch to workspace 2
3. run 'evince bar.pdf' where bar.pdf DOES exist
  
Actual results:
bar.pdf displays in the evince window in workspace 1, and it's also displaying an error

Expected results:
bar.pdf opens in a new window in workspace 2

Additional info:
behavior is the same on evince-2.24.2-1.fc10 in Fedora 10

Comment 1 Jeff Bastian 2009-06-15 21:31:37 UTC
Created attachment 348014 [details]
patch to open new window

Attached is a proof-of-concept patch to open a document in a new window if the current window(s) are empty but displaying an error dialog box.

Comment 4 Marek Kašík 2009-11-12 13:55:00 UTC
Hi,

I tested and committed the patch from comment #1.
Thank you for the patch.

Marek

Comment 8 Ryan Lerch 2010-03-11 01:47:26 UTC
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.

New Contents:
Previously, evince classified a single error dialog as a full running instance. Consequently, if an instance of evince contained only an error dialog, any document opened would appear that instance. This may have confused users, as documents were displayed in the workspace where the error dialog is located, rather than the current workspace. In this updated package, evince no longer treats a single error dialog as an opened document, resolving this issue. (BZ#504334)

Comment 9 errata-xmlrpc 2010-03-30 08:03:11 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0195.html


Note You need to log in before you can comment on or make changes to this bug.