Public bug reported:

I've tried to do my homework but I apologize if this issue has already
been fixed or if I'm reporting it to the wrong package.

First off, here is my system and package info:

  $ lsb_release -rd
  Description:    Ubuntu 10.04.4 LTS
  Release:        10.04

  $ apt-cache policy ibus
  ibus:
    Installed: 1.2.0.20091215-1ubuntu4
    Candidate: 1.2.0.20091215-1ubuntu4
    Version table:
   *** 1.2.0.20091215-1ubuntu4 0
          500 http://nl.archive.ubuntu.com/ubuntu/ lucid/main Packages
          100 /var/lib/dpkg/status

I observe that when the directory $HOME/.config/ibus/bus does not exist,
*all* GTK apps poll for its creation at roughly four second intervals.
To wit:

  $ strace -re inotify_add_watch -p $(pidof evince)
  Process 11784 attached - interrupt to quit
       0.000000 inotify_add_watch(10, "/home/bnoordhuis/.config/ibus/bus", 
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
 = -1 ENOENT (No such file or directory)
       4.001651 inotify_add_watch(10, "/home/bnoordhuis/.config/ibus/bus", 
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
 = -1 ENOENT (No such file or directory)
       3.999569 inotify_add_watch(10, "/home/bnoordhuis/.config/ibus/bus", 
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
 = -1 ENOENT (No such file or directory)
       4.000487 inotify_add_watch(10, "/home/bnoordhuis/.config/ibus/bus", 
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
 = -1 ENOENT (No such file or directory)
  ^CProcess 11784 detached
  $ strace -re inotify_add_watch -p $(pidof clock-applet)
  Process 3647 attached - interrupt to quit
       0.000000 inotify_add_watch(19, "/home/bnoordhuis/.config/ibus/bus", 
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
 = -1 ENOENT (No such file or directory)
       4.002690 inotify_add_watch(19, "/home/bnoordhuis/.config/ibus/bus", 
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
 = -1 ENOENT (No such file or directory)
       3.999550 inotify_add_watch(19, "/home/bnoordhuis/.config/ibus/bus", 
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
 = -1 ENOENT (No such file or directory)
       3.997275 inotify_add_watch(19, "/home/bnoordhuis/.config/ibus/bus", 
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
 = -1 ENOENT (No such file or directory)
  ^CProcess 3647 detached

A simple `mkdir -p $HOME/.config/ibus/bus` resolves the issue.
Applications that are not in use don't poll and remain dormant. It seems
to have increased my laptop's battery life by about 15 minutes.

The bug may have been fixed upstream (I found a Fedora bug report[1]
that mentions it) but I haven't been able to pinpoint the commit.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=572611

** Affects: ibus (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1020212

Title:
  gtk apps keep polling for $HOME/.config/ibus/bus dir

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/1020212/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to