1 |
root |
1.1 |
=head1 GTK+ BASH FILE CHOOSER |
2 |
|
|
|
3 |
|
|
B<gtkbfc> is a hack that replaces the dreaded, slow and hard-to-use GTK+ |
4 |
|
|
file chooser by a rxvt-unicode window with a little script that you to use |
5 |
|
|
readline tab-completion to enter filenames. |
6 |
|
|
|
7 |
|
|
Again, its a dire hack and will not work with all programs. It does work |
8 |
|
|
for gimp, firefox, gedit at least, though. |
9 |
|
|
|
10 |
|
|
=head2 INSTALLATION |
11 |
|
|
|
12 |
|
|
Install rxvt-unicode. Then copy the F<gtkbfc-helper> to F</etc/> and make |
13 |
|
|
sure its executable and opens a window where you can enter a filename when |
14 |
|
|
executed as F</etc/gtkbfc-helper>, which will then be echod to stdout. |
15 |
|
|
|
16 |
|
|
Then run F<make>, this will create a F<gtkbfc.so> shared object. You |
17 |
|
|
have to specify this shared object as LD_PRELOAD when running gtk |
18 |
|
|
programs. Either manually: |
19 |
|
|
|
20 |
|
|
LD_PRELOAD=/path/to/gtkbfc.so gimp |
21 |
|
|
|
22 |
|
|
Via an alias: |
23 |
|
|
|
24 |
|
|
alias gimp='LD_PRELOAD=/path/to/gtkbfc.so gimp' |
25 |
|
|
|
26 |
|
|
Or by putting it into your F</etc/ld.so.preload> (not really recommended |
27 |
|
|
for performance reasons). |
28 |
|
|
|
29 |
|
|
=head2 AUTHOR |
30 |
|
|
|
31 |
|
|
Marc Lehmann <gtkbfc@schmorp.de>. |