gdk-pixbuf uses temporary files when loading xpm images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdk-pixbuf |
Fix Released
|
Medium
|
|||
gdk-pixbuf (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
io-xpm.
/*
* FIXME xpm loading progressively is not properly implemented.
* Instead we will buffer to a file then load that file when done.
* This is very broken but it should be relayively simple to fix
* in the future.
*/
What this actually means is that gdk creates a file in /tmp, writes to it, and then deletes it *every* time you do any of the following in a gnome/Unity environment:
- click a mouse button anywhere (any app, any window)
- scroll a mouse wheel anywhere (any app, any window)
Additionally, if you move your mouse to top-left or bottom-right of the screen *and just hold it there*, files will be created, modified and then deleted continuously.
Clearly, this is a nasty hack and temporary files are evil at the best of times. If you have slow disks, your desktop experience may also suffer.
Temp files are created using g_file_open_tmp():
fd = g_file_open_tmp ("gdkpixbuf-
This template expands to file names like "/tmp/gdkpixbuf
Pressing the Windows/meta button to get the Unity search box to appear generates approximately 60 temporary files (!!)
Changed in gdk-pixbuf: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in gdk-pixbuf: | |
status: | New → Fix Released |
The Unity team might be interested in this bug.