Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: xdg-utils (Ubuntu)
       Status: New => Confirmed

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

Title:
  xdg-screensaver blocks unmounting with sleep 50

Status in “xdg-utils” package in Ubuntu:
  Confirmed

Bug description:
  Description:  Ubuntu 12.04.1 LTS
  Release:      12.04
  xdg-utils: Installed: 1.1.0~rc1-2ubuntu6

  If using a program that calls the screensaver_suspend_loop() in xdg-
  screensaver (for example, vlc does this), the "sleep 50" in the last
  line of that function blocks unmounting of file systems containing the
  current directory at the time the function was called.

  This is easy enough to bypass, while preserving the same
  functionality, if we can simply change the last line of that function
  from:

  (while [ -f "$screensaver_file" ]; do $*; sleep 50; done) > /dev/null
  2> /dev/null &

  to:

  (cd /; while [ -f "$screensaver_file" ]; do $*; sleep 50; done) >
  /dev/null 2> /dev/null &

  Changing to the root directory prevents it from blocking the unmount.
  And this shouldn't affect anything else since that line is a
  background loop.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1051197/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to