file chooser not to display icons



Hi,

I'm using gedit 2.12.1 on SUSE.

I am trying to open a file in a directory with about 15000 things in
it.  It takes forever (10 mins or so).  I do an strace and I can see
the following:

open("/blah/blah", O_RDONLY) = 17
fstat(17, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b33705f3000
read(17, "#!sdf lsdjf lsjfsl jdslkfdj lkflka"..., 1048576) = 2057
close(17)                               = 0
munmap(0x2b33705f3000, 1048576)         = 0

So it looks like it is opening every single file and reading the first
line.  Presumably this is so the gtk file chooser can determine the
type of the file for displaying the icon?  I can't see anywhere in
gedit where I can turn this behaviour off.  I suppose there must be
some .gconf setting somewhere I could set?

Any help will be much appreciated please.

(on a related note I have a wxpython programme that uses gtk
underneath that has the exact same problem.  It would be nice to sort
both problems out, ie. I would rather not just have a
gedit-work-around-fix, but rather a more general solution).

Thank you

Matt



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]