It's working as expected. You need to add: p.wait_until_no_display()
-- message flashes on screen for barely a milli second https://launchpad.net/bugs/58815 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs