Open
Bug 386519
Opened 18 years ago
Updated 2 years ago
Show file location using custom command on unix-like OS
Categories
(Firefox :: File Handling, enhancement)
Tracking
()
UNCONFIRMED
People
(Reporter: peterkuma, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(7 files)
1.59 KB,
patch
|
Details | Diff | Splinter Review | |
786 bytes,
patch
|
Details | Diff | Splinter Review | |
2.83 KB,
patch
|
Details | Diff | Splinter Review | |
678 bytes,
patch
|
Details | Diff | Splinter Review | |
1.31 KB,
patch
|
Details | Diff | Splinter Review | |
728 bytes,
patch
|
Details | Diff | Splinter Review | |
728 bytes,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0
Build Identifier:
Show file location feature could have more user-friendly behaviour on unix systems.
Reproducible: Always
Actual Results:
When `Show file location' is selected, new Mozilla windows is opened showing the contents of the parent directory.
Expected Results:
In preferences, user can enter custom command, such as `nautilus --no-desktop --browser %d' to be executed to open the containing directory.
%d is replaced by directory location
%f is replaced by file location
Reporter | ||
Comment 1•18 years ago
|
||
Reporter | ||
Comment 2•18 years ago
|
||
Implementation was added into nsLocalFileUnix.cpp only. May it cause problems on windows builds?
Reporter | ||
Comment 3•18 years ago
|
||
Uses fixed-size string buffer (REVEAL_MAX_CMD_SIZE), might need to be re-written.
Opens new process using fork() and does not wait for the child to finish. I don't know whether there is any Mozilla API for this. Does it create a zombie process?
Reporter | ||
Comment 4•18 years ago
|
||
Reporter | ||
Comment 5•18 years ago
|
||
Reporter | ||
Comment 6•18 years ago
|
||
The value is example only, which works in GNOME. If it is left empty, default behaviour is used.
Reporter | ||
Comment 7•18 years ago
|
||
The value is example only, which works in GNOME. If it is left empty, default behaviour is used.
Reporter | ||
Updated•18 years ago
|
Attachment #270511 -
Attachment is patch: true
Attachment #270511 -
Attachment mime type: text/x-patch → text/plain
Reporter | ||
Updated•18 years ago
|
Attachment #270515 -
Attachment is patch: true
Attachment #270515 -
Attachment mime type: text/x-patch → text/plain
Related to bug 213849?
Comment 9•17 years ago
|
||
> Implementation was added into nsLocalFileUnix.cpp only. May it cause problems
> on windows builds?
Yes, unforunately. The current code (Reveal) is invoking nsIGnomeVFSService->ShowURIForInput(dirPath). Is there some way to customize that behavior instead?
Version: unspecified → Trunk
Comment 10•17 years ago
|
||
OK, the ShowURIForInput call goes to gnome_url_show, which (in theory) is customizable (although I don't see any UI in gnome to configure that or even anything in gconf that looks appropriate).
Reporter | ||
Comment 11•17 years ago
|
||
The calling sequence inside libgnome is like this:
gnome_url_show
gnome_vfs_url_show_with_env
gnome_vfs_mime_get_default_application_for_uri
gnome_vfs_mime_get_all_desktop_entries
which I suppose is driven by MIME database and one should be able to set the default application in Nautilus -> any directory -> Properties -> Open With.
Comment 12•17 years ago
|
||
Hmm, yes that does work. Given that, do you think it still makes sense to make that behavior customizable within SeaMonkey? Would people want to open directories in a different app than they would normally (I'm having trouble imagining that)?
Comment 13•17 years ago
|
||
(In reply to comment #12)
> Hmm, yes that does work. Given that, do you think it still makes sense to make
> that behavior customizable within SeaMonkey? Would people want to open
> directories in a different app than they would normally (I'm having trouble
> imagining that)?
>
I believe it would make sense to open the downloaded file's directory sometimes in a SeaMonkey tab and other times in a Konqueror (or other file manager) tab (or maybe window) depending on what one wants to do with the file. But I'm not sure that's what this bug is about.
Peter, are you still willing to implement this bug? And you, Andrrew, to review it? I guess if both answers are yes the first job would be to write an updated patch?
Comment 14•17 years ago
|
||
At this point, I'm unconvinced that changing SeaMonkey code is the right approach. You (Tony and/or Peter) are welcome to start a discussion in the newsgroup (mozilla.dev.apps.seamonkey) to consider various alternatives or get wider feedback.
Reporter | ||
Comment 15•17 years ago
|
||
I think that using GnomeVFS as implemented in current code is satisfactory. Does it integrate well with KDE/Konqueror? Perhaps xdg-open would be even better.
Comment 16•17 years ago
|
||
(In reply to comment #15)
> I think that using GnomeVFS as implemented in current code is satisfactory.
> Does it integrate well with KDE/Konqueror? Perhaps xdg-open would be even
> better.
>
I'm using the KDE winmanager, and by default, "Show File Location" opens the file's directory in Konqueror with no problem. In general, programs compiled with the Gnome libraries will usually integrate well with KDE, and vice-versa.
Comment 17•17 years ago
|
||
Correction: "Show File Location" opens the file's directory in SeaMonkey as a "file:" URL.
![]() |
||
Updated•16 years ago
|
Assignee: download → nobody
Component: Download & File Handling → File Handling
Product: SeaMonkey → Core
QA Contact: file-handling
Comment 18•10 years ago
|
||
Everyone who worries about this bug, please click the little "vote" button at the top and vote for this bug to be solved!
Updated•9 years ago
|
Product: Core → Firefox
Version: Trunk → unspecified
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•