Closed
Bug 249654
Opened 21 years ago
Closed 21 years ago
Open finished download not working on linux
Categories
(Toolkit :: Downloads API, defect, P2)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ang3l0, Assigned: dmosedale)
References
Details
(Keywords: fixed-aviary1.0)
Attachments
(2 files, 5 obsolete files)
|
5.23 KB,
patch
|
bugs
:
review+
dmosedale
:
approval-aviary+
|
Details | Diff | Splinter Review |
|
791 bytes,
patch
|
dveditz
:
review+
benjamin
:
superreview+
asa
:
approval-aviary+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040629 Firefox/0.9.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040629 Firefox/0.9.1
Trying to open a finished download doesn't work on linux.
It doesn't work using open link and neither using open in the context menu
Reproducible: Always
Steps to Reproduce:
1. Download a file
2. Once finished try to open via the link
3. Try also using the context menu
Actual Results:
Nothing happens
Expected Results:
Use default program to open it or popup a program selection dialog
Comment 1•21 years ago
|
||
Yep.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking-aviary1.0?
Comment 2•21 years ago
|
||
Just to clarify, neither double click nor context menu options work to open the
file.
Comment 3•21 years ago
|
||
*** Bug 249786 has been marked as a duplicate of this bug. ***
Comment 4•21 years ago
|
||
Related to bug 232138?
Updated•21 years ago
|
Flags: blocking-aviary1.0? → blocking-aviary1.0+
Priority: -- → P2
Comment 5•21 years ago
|
||
I don't think this is a problem on Mac. but is this an issue on Windows?
Comment 6•21 years ago
|
||
Windows works.
Updated•21 years ago
|
Hardware: All → PC
Updated•21 years ago
|
Assignee: bugs → mconnor
Comment 7•21 years ago
|
||
nsIFile.reveal doesn't work on GTK
If I can find time, I'll post the incomplete diff that fixes show folder in the
dlmgr and in options, but opening the file directly needs some mucking around.
Comment 9•21 years ago
|
||
Can we get an alternate patch to disable all this UI for GTK?
Keywords: helpwanted
Comment 10•21 years ago
|
||
I know we try to stay away from Gnome and just use GTK, but a solution without
too much "mucking around" for Gnome users might be to call the gnome-open
program. It takes an argument of an URL to open (in this case a file: url) and
then opens it with Gnome's default handler for that type. It's what Gaim uses to
open links in Gnome's default browser.
The source is here, but if we used the source rather than calling it we'd have
to link with more than libgtk:
http://cvs.gnome.org/viewcvs/libgnome/libgnome/gnome-open.c?view=markup
This is comparable to KDE's `kfmclient exec file:/foo` but I haven't tracked
that one down in KDE CVS yet. I imagine it would be easy to call out to either
of these programs in much the same way that we call out to whatever program when
the user clicks on an externally-handled link.
| Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Keywords: helpwanted
| Assignee | ||
Comment 12•21 years ago
|
||
This patch will disable both the link and the context menu item for "open" on
GNOME platforms.
Comment 13•21 years ago
|
||
I believe dmose is looking at the "Show" button in dl prefs, too.
| Assignee | ||
Comment 14•21 years ago
|
||
Attachment #162032 -
Attachment is obsolete: true
| Assignee | ||
Updated•21 years ago
|
Attachment #162142 -
Flags: review?(bugs)
Attachment #162142 -
Flags: approval-aviary?
Comment 15•21 years ago
|
||
http://lxr.mozilla.org/aviarybranch/source/toolkit/mozapps/downloads/content/downloads.js#815
also needs to be fixed (open containing folder in the DM context menu) in the
same way as Show Folder was. That, or hidden/disabled a la Open.
It might be worthwhile to consider doing the nsIFile.reveal() bits in a
try/catch, so that if we in future do get working nsIFile.reveal, we'll pick
that up for free. However, odds are that it would be partial, GTK-version
limited fix like the filepicker etc, so we'd already have the fallback in place
for ANY time the reveal call fails/is unsupported.
| Assignee | ||
Comment 16•21 years ago
|
||
Excellent idea re try/catch, Mike. The code is definitely cleaner this way.
I've fixed the other instance of reveal that you pointed out as well. Once
this is reviewed, should I land it on the trunk first and then the branch?
Attachment #162142 -
Attachment is obsolete: true
| Assignee | ||
Updated•21 years ago
|
Attachment #162142 -
Flags: review?(bugs)
Attachment #162142 -
Flags: approval-aviary?
| Assignee | ||
Comment 17•21 years ago
|
||
Fixed a couple of comments.
Attachment #162153 -
Attachment is obsolete: true
| Assignee | ||
Updated•21 years ago
|
Attachment #162154 -
Flags: review?(bugs)
Attachment #162154 -
Flags: approval-aviary?
Comment 18•21 years ago
|
||
Wouldn't it make more sense to do something along the lines of:
#ifdef XP_GNOME
<!-- reveal is disabled in GNOME -->
#else
real implementation goes here
#endif
That way, the comment shows up in the GNOME build rather in all the non-GNOME
builds, where it wouldn't be relevant.
Comment 19•21 years ago
|
||
the less the actual code is different between platforms, the better, IMO. Plus,
if reveal gets implemented on GTK, we pick this up for free, while leaving the
fallback for cases like the qt port, which isn't GNOME and might get support for
Reveal sooner or later than GTK.
Updated•21 years ago
|
Whiteboard: [have patch] - need review ben
Comment 20•21 years ago
|
||
Comment on attachment 162154 [details] [diff] [review]
patch v4: fix "show folder"; disable "open"
a=asa for aviary checkin pending the r=
Attachment #162154 -
Flags: approval-aviary? → approval-aviary+
Comment 21•21 years ago
|
||
Comment on attachment 162154 [details] [diff] [review]
patch v4: fix "show folder"; disable "open"
This won't work in thunderbird... you need #ifdef MOZ_PHOENIX wrapping the
openDialog calls (just use "chrome://browser/content/browser.xul" - don't worry
about getting the pref - it's only in the Firefox case that you'll be able to
do this anyway... and in in the #else part use the External Protocol service to
open the path as it's done here:
http://lxr.mozilla.org/aviarybranch/source/toolkit/mozapps/extensions/content/e
xtensions.js#57
Attachment #162154 -
Flags: review?(bugs) → review-
Updated•21 years ago
|
Attachment #162154 -
Flags: approval-aviary+
Updated•21 years ago
|
Whiteboard: [have patch] - need review ben → [have patch] - needs updated patch
Comment 22•21 years ago
|
||
dmose, other ideas?
| Assignee | ||
Comment 23•21 years ago
|
||
Fixed as per Ben's suggestion.
Attachment #162154 -
Attachment is obsolete: true
| Assignee | ||
Comment 24•21 years ago
|
||
A funny thing happened on the way to this patch. Using the external protocol is
the right thing to do, but for a different reason than expected. It used the
default "file:" handler to open the directory... and the default handler was
Nautilus, not the browser.
So this makes me think that in fact we can fix both "show folder" and "open" by
sending them to the external handler all the time. New patch forthcoming shortly.
| Assignee | ||
Updated•21 years ago
|
Attachment #162635 -
Attachment is obsolete: true
| Assignee | ||
Comment 25•21 years ago
|
||
The patch seems to work as expected in both Firefox and Thunderbird.
| Assignee | ||
Comment 26•21 years ago
|
||
Comment on attachment 162640 [details] [diff] [review]
patch v6: fix both "show folder" and "open"
Requesting review; carrying forward pending approval. I propose to check this
in on the trunk as well as the branch, since it actually fixes the real issue.
Attachment #162640 -
Flags: review?(bugs)
Attachment #162640 -
Flags: approval-aviary+
| Assignee | ||
Updated•21 years ago
|
Whiteboard: [have patch] - needs updated patch → [have patch] - needs review
| Assignee | ||
Updated•21 years ago
|
Hardware: PC → All
Comment 27•21 years ago
|
||
Comment on attachment 162640 [details] [diff] [review]
patch v6: fix both "show folder" and "open"
r+a=ben@mozilla.org
Attachment #162640 -
Flags: review?(bugs) → review+
Updated•21 years ago
|
Whiteboard: [have patch] - needs review → [have patch] - ready to land
Comment 28•21 years ago
|
||
dmose, is this checked in? needs to go in soon to make the RC1 train
| Assignee | ||
Comment 29•21 years ago
|
||
Fix checked in to the both the trunk and the branch.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
Whiteboard: [have patch] - ready to land
Comment 30•21 years ago
|
||
verified with Linux FF branch build 2004-10-21-09-0.9
Clicking open in the download manager brings up an External Protocol Request
dialog. Clicking Launch application opens the page in FF, since I have set it to
be my default browser.
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 31•21 years ago
|
||
As Tracy points out, this now opens an External Protocol Handler warning dialog,
and people may well want to turn this off by default. Since it's bad user
experience, and we don't want to train people to turn off this warning, dveditz
suggests whitelisting the file: protocol as far as these warnings go on Unix.
Patch forthcoming.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 32•21 years ago
|
||
| Assignee | ||
Updated•21 years ago
|
Status: REOPENED → ASSIGNED
Keywords: fixed-aviary1.0
| Assignee | ||
Updated•21 years ago
|
Attachment #162954 -
Flags: superreview?(dveditz)
Attachment #162954 -
Flags: review?(dveditz)
Attachment #162954 -
Flags: approval-aviary?
Comment 33•21 years ago
|
||
Comment on attachment 162954 [details] [diff] [review]
patch to get rid of warning, v1
a=asa pending reviews.
Attachment #162954 -
Flags: approval-aviary? → approval-aviary+
Comment 34•21 years ago
|
||
Comment on attachment 162954 [details] [diff] [review]
patch to get rid of warning, v1
r=dveditz. I don't think this is an area of combined r/sr but sr= too if it is.
Attachment #162954 -
Flags: superreview?(dveditz)
Attachment #162954 -
Flags: superreview?(darin)
Attachment #162954 -
Flags: review?(dveditz)
Attachment #162954 -
Flags: review+
Comment 35•21 years ago
|
||
*** Bug 249786 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Attachment #162954 -
Flags: superreview?(darin) → superreview+
| Assignee | ||
Comment 36•21 years ago
|
||
Fixed on the branch. Awaiting trunk opening.
Keywords: fixed-aviary1.0
Comment 37•21 years ago
|
||
hmm, I know that Linux is a problem here because its different windowmanagers
and desktop environments. The problem now is that it makes heavy use of GNOME in
GTK2 builds. At least this makes problems if you don't use GNOME at all.
If I use "Show folder" now in Firefox with my windowmanager "WindowMaker" it will
start up many gnome stuff and change my windowmanager's behaviour so it is
unusable without killing those stuff again.
I have no better idea at this point but the current solution makes Firefox
almost a GNOME-only application :-(
| Assignee | ||
Comment 38•21 years ago
|
||
Fixed on the trunk.
Wolfgang, the problem is that there's currently no standard way to do this. It
could perhaps be implemented in a KDE-specific way as an extension. At some
point, there will hopefully be a standard way to get this info. The
shared-mimetypes stuff on freedesktop.org is at least a start in the right
direction. Feel free to file a separate bug on that, if there isn't one already.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•