Thank you for your bug report, the fedora bug suggests it's fixed in the
current ibus version and I can confirm here on raring that the strace
command shows no constant polling

** Bug watch added: Red Hat Bugzilla #572611
   https://bugzilla.redhat.com/show_bug.cgi?id=572611

** Also affects: ibus (Fedora) via
   https://bugzilla.redhat.com/show_bug.cgi?id=572611
   Importance: Unknown
       Status: Unknown

** Changed in: ibus (Ubuntu)
   Importance: Undecided => Low

** Changed in: ibus (Ubuntu)
       Status: New => Fix Released

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

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

Status in “ibus” package in Ubuntu:
  Fix Released
Status in “ibus” package in Fedora:
  Unknown

Bug description:
  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

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to