ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gtkbfc/README
(Generate patch)

Comparing gtkbfc/README (file contents):
Revision 1.1 by root, Sat Aug 18 13:33:20 2007 UTC vs.
Revision 1.2 by root, Sat Aug 18 14:23:15 2007 UTC

1=head1 GTK+ BASH FILE CHOOSER 1=head1 GTK+ BASH FILE CHOOSER
2
3Gtk+ is a nice toolkit, but ever since the new file chooser was introduced
4in version 2, it became less and less usable. Not only is tab completion
5gone (at least in a useful form), quickly entering a path has become
6impossible due to many extra keys one has to press and due to the extreme
7slowness of the file chooser itself.
8
9As an example, when firefox finds a new filetype (e.g. a pdf) and I use
10its file chooser to select F</usr/bin/xpdf>, here is what happens: After
11typing F</usr/bin> the app freezes for around 40 seconds. Then it has
12loaded F</usr/bin> (this is on a typical debian install, F<ls -l /usr/bin>
13is much faster). Then after pressing return to select it, the window
14again freezes for about 30 seconds. In the gtk+ 1.0 file selector this
15took less than a second. As another example, when I save an image in
16the GIMP to F</tmp>, I can actually see the Gtk+ file chooser accessing
17other, automounted, paths such as F</fs/cdrom>, or F</fs/doom>, which
18are my dvd drive and an nfs fs on anoher machine. Mounting those takes
19additional time to the time required scanning F</tmp> (which again is
20about a minute).
21
22Clearly, this makes the Gtk+ file chooser completely
23unusable. Unfortunately, despite many people having opened bug reports
24about these problems, they are either getting ignored, or fixed in an
25half-assed attempt just to come back in the next gtk+ release.
2 26
3B<gtkbfc> is a hack that replaces the dreaded, slow and hard-to-use GTK+ 27B<gtkbfc> is a hack that replaces the dreaded, slow and hard-to-use GTK+
4file chooser by a rxvt-unicode window with a little script that you to use 28file chooser by a rxvt-unicode window with a little script that you to use
5readline tab-completion to enter filenames. 29readline tab-completion to enter filenames.
6 30
7Again, its a dire hack and will not work with all programs. It does work 31Again, its a dire hack and will not work with all programs. It does work
8for gimp, firefox, gedit at least, though. 32for gimp, firefox, gedit at least, though. Most importantly, it does work
33for me, which really is all that counts.
34
9 35
10=head2 INSTALLATION 36=head2 INSTALLATION
11 37
12Install rxvt-unicode. Then copy the F<gtkbfc-helper> to F</etc/> and make 38Install rxvt-unicode. Then copy the F<gtkbfc-helper> to F</etc/> and make
13sure its executable and opens a window where you can enter a filename when 39sure its executable and opens a window where you can enter a filename when
24 alias gimp='LD_PRELOAD=/path/to/gtkbfc.so gimp' 50 alias gimp='LD_PRELOAD=/path/to/gtkbfc.so gimp'
25 51
26Or by putting it into your F</etc/ld.so.preload> (not really recommended 52Or by putting it into your F</etc/ld.so.preload> (not really recommended
27for performance reasons). 53for performance reasons).
28 54
55
56=head2 BUGS
57
58You want to use readline, so you are some kind of guru anyways, so if you
59have a bug report, better attach a patch or a very thorough analysis of
60what goes wrong to your e-mail. Thank you very much.
61
62
29=head2 AUTHOR 63=head2 AUTHOR
30 64
31Marc Lehmann <gtkbfc@schmorp.de>. 65Marc Lehmann <gtkbfc@schmorp.de>.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines