Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Firefox 1.5 and Gnome file selector

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
Proton
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Sun Mar 16, 2003 9:38 pm
Location: Estoril, Portugal

Firefox 1.5 and Gnome file selector

  • Quote

Post by Proton » Mon Dec 05, 2005 11:44 am

Hi!

I installed Firefox a few days ago and was disappointed that they switched to the Gnome file selector. Not to complain, but I really find the thing unusable (is there even a way to get inside a hidden folder, for instance?).

So I was wondering, does anone know about any patch I can apply to Gnome or Firefox to get a normal, usable file selector, like the one in KDE, the one in Windows or even the one in old versions of Gnome? I know there is the possibility to use Qt widgets in version 1.5, but I heard it was still quite unstable.

Thanks!
Sérgio @ Portugal
IST - LEIC
Top
quelcom
Guru
Guru
User avatar
Posts: 306
Joined: Tue Mar 16, 2004 4:12 pm
Location: Catalonia

Re: Firefox 1.5 and Gnome file selector

  • Quote

Post by quelcom » Mon Dec 05, 2005 11:53 am

Proton wrote:Hi!

I installed Firefox a few days ago and was disappointed that they switched to the Gnome file selector. Not to complain, but I really find the thing unusable (is there even a way to get inside a hidden folder, for instance?).
I'm not using firefox 1.5 at the moment, but I think right_click-> Show Hidden Files.

It works with file-roller.

Cheers
Top
ecatmur
Advocate
Advocate
User avatar
Posts: 3595
Joined: Mon Oct 20, 2003 8:07 pm
Location: Edinburgh
Contact:
Contact ecatmur
Website

  • Quote

Post by ecatmur » Mon Dec 05, 2005 3:12 pm

Or just start typing the name of the folder; after you type the initial dot it will set the completion to show the matching files and folders.
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Top
ketjow
Guru
Guru
User avatar
Posts: 382
Joined: Thu Apr 01, 2004 5:22 pm
Location: Krakow, Poland

  • Quote

Post by ketjow » Mon Dec 05, 2005 3:33 pm

I also don't like it, nice to hear I'm not the only one. If anyone knows how to change the dialog, pleeease write :)
Top
volkmar
Tux's lil' helper
Tux's lil' helper
Posts: 122
Joined: Thu Jul 01, 2004 2:16 pm

Re: Firefox 1.5 and Gnome file selector

  • Quote

Post by volkmar » Mon Dec 05, 2005 4:14 pm

Proton wrote:So I was wondering, does anone know about any patch I can apply to Gnome or Firefox to get a normal, usable file selector, like the one in KDE, the one in Windows or even the one in old versions of Gnome?
Have you tried that hint from forums.mozillazine.org?
Top
JaQoB
n00b
n00b
Posts: 28
Joined: Thu Mar 31, 2005 6:50 pm

  • Quote

Post by JaQoB » Mon Dec 05, 2005 7:15 pm

The "trick" in the thread at the mozillaforum works :)
Great! Really hated the new one
Top
ketjow
Guru
Guru
User avatar
Posts: 382
Joined: Thu Apr 01, 2004 5:22 pm
Location: Krakow, Poland

  • Quote

Post by ketjow » Mon Dec 05, 2005 7:51 pm

It works, thanks a lot :)
Top
Proton
Apprentice
Apprentice
User avatar
Posts: 195
Joined: Sun Mar 16, 2003 9:38 pm
Location: Estoril, Portugal

  • Quote

Post by Proton » Mon Dec 05, 2005 8:52 pm

Alright! That's great! Thanks volkmar!
Sérgio @ Portugal
IST - LEIC
Top
volkmar
Tux's lil' helper
Tux's lil' helper
Posts: 122
Joined: Thu Jul 01, 2004 2:16 pm

  • Quote

Post by volkmar » Tue Dec 06, 2005 8:41 am

Proton wrote:Alright! That's great! Thanks volkmar!
Really? I've tried several times without success. :-(
What are the preconditions to make it work?
In nsFilePicker.js it says it's a javascript funtion. So, do I have to have javascript enabled when disabling and reanabling an extension?
Also the *snip* part in //@line 278 and //@line 280 is a path pointing to /tmp/portage/mozilla-firefox-1.5/something.
But after cleaning portage temp directory these parts don't exist.
Do I have to recompile Firefox before to create that content in portage tmp directory?
Top
ketjow
Guru
Guru
User avatar
Posts: 382
Joined: Thu Apr 01, 2004 5:22 pm
Location: Krakow, Poland

  • Quote

Post by ketjow » Tue Dec 06, 2005 9:37 am

volkmar wrote:Also the *snip* part in //@line 278 and //@line 280 is a path pointing to /tmp/portage/mozilla-firefox-1.5/something.
But after cleaning portage temp directory these parts don't exist.
Do I have to recompile Firefox before to create that content in portage tmp directory?
I can't see a path to /tmp/whatever
you don't need to recompile, just find line 278 and replace:

Code: Select all

    compMgr.registerFactoryLocation(FILEPICKER_CID,
                                    "FilePicker JS Component",
//@line 278 *snip*
                                    "",
//@line 280 *snip*
                                    fileSpec,
                                    location,
                                    type);
with

Code: Select all

    compMgr.registerFactoryLocation(FILEPICKER_CID,
                                    "FilePicker JS Component",
//@line 278 *snip*
                                    FILEPICKER_CONTRACTID,
//@line 280 *snip*
                                    fileSpec,
                                    location,
                                    type);
Then disable a random extension, restart and enable it again.
Top
volkmar
Tux's lil' helper
Tux's lil' helper
Posts: 122
Joined: Thu Jul 01, 2004 2:16 pm

  • Quote

Post by volkmar » Tue Dec 06, 2005 10:39 am

ketjow wrote:I can't see a path to /tmp/whatever
you don't need to recompile, just find line 278 and replace:
Well, I don't have *snip* in there. Instead I am having that path. So I changed

Code: Select all

filePickerModule.registerSelf =
function (compMgr, fileSpec, location, type)
{
    debug("registering (all right -- a JavaScript module!)");
    compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar);

    compMgr.registerFactoryLocation(FILEPICKER_CID,
                                    "FilePicker JS Component",
//@line 278 "/tmp/portage/mozilla-firefox-1.5/work/mozilla/xpfe/components/filepicker/src/nsFilePicker.js.in"
                                    "",
//@line 280 "/tmp/portage/mozilla-firefox-1.5/work/mozilla/xpfe/components/filepicker/src/nsFilePicker.js.in"
                                    fileSpec,
                                    location,
                                    type);
}
into

Code: Select all

filePickerModule.registerSelf =
function (compMgr, fileSpec, location, type)
{
    debug("registering (all right -- a JavaScript module!)");
    compMgr = compMgr.QueryInterface(Components.interfaces.nsIComponentRegistrar);

    compMgr.registerFactoryLocation(FILEPICKER_CID,
                                    "FilePicker JS Component",
//@line 278 "/tmp/portage/mozilla-firefox-1.5/work/mozilla/xpfe/components/filepicker/src/nsFilePicker.js.in"
                                    "FILEPICKER_CONTRACTID",
//@line 280 "/tmp/portage/mozilla-firefox-1.5/work/mozilla/xpfe/components/filepicker/src/nsFilePicker.js.in"
                                    fileSpec,
                                    location,
                                    type);
}
And after disable and re-enable of an extension I am still having that ugly gnome file picker. :-( Grrrrmm!!!
Top
ketjow
Guru
Guru
User avatar
Posts: 382
Joined: Thu Apr 01, 2004 5:22 pm
Location: Krakow, Poland

  • Quote

Post by ketjow » Tue Dec 06, 2005 11:59 am

not
"FILEPICKER_CONTRACTID",
but
FILEPICKER_CONTRACTID,

:)
Top
volkmar
Tux's lil' helper
Tux's lil' helper
Posts: 122
Joined: Thu Jul 01, 2004 2:16 pm

  • Quote

Post by volkmar » Tue Dec 06, 2005 12:42 pm

ketjow wrote:not
"FILEPICKER_CONTRACTID",
but
FILEPICKER_CONTRACTID,

:)
Oh yes! I should learn how to read.
Top
eldacar
n00b
n00b
Posts: 64
Joined: Tue Feb 22, 2005 3:27 pm
Location: Göteborg, Sweden

  • Quote

Post by eldacar » Fri Dec 16, 2005 8:39 am

If you want the kde file picker instead try the nsFilePicker.js on this page. It seems to work quite good for me

http://www.polinux.upv.es/mozilla/mejoras.php?idioma=en
Top
Post Reply

14 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic