Launching applications that require stdin input hangs qtile
Some applications like bashbug causes qtile to hangup. And the only way out is to kill X. Happens regardless if the program was launched by qtile or any other app.

diff --git a/libqtile/manager.py b/libqtile/manager.py
index cea9fb79..6aeb4fa6 100644
--- a/libqtile/manager.py
+++ b/libqtile/manager.py
@@ -1174,7 +1174,11 @@ class Qtile(command.CommandObject):
 
                 spawn("firefox")
         """
-        pid, _, _, _ = gobject.spawn_async([os.environ['SHELL'], '-c', cmd])
+        pid, _, _, _ = gobject.spawn_async(
+            [os.environ['SHELL'], '-c', cmd],
+            flags=(gobject.SPAWN_STDOUT_TO_DEV_NULL |
+                   gobject.SPAWN_STDERR_TO_DEV_NULL)
+        )
         return str(pid)
 
     def cmd_status(self):
diff --git a/libqtile/widget/launchbar.py b/libqtile/widget/launchbar.py
index 151a69ca..48913062 100644
--- a/libqtile/widget/launchbar.py
+++ b/libqtile/widget/launchbar.py
@@ -16,7 +16,6 @@ from libqtile import bar
 from libqtile.widget import base
 import os.path
 import cairo
-import gobject
 from xdg.IconTheme import getIconPath
 
 
@@ -129,7 +128,7 @@ class LaunchBar(base._Widget):
                 if cmd.startswith('qsh:'):
                     eval(cmd[4:])
                 else:
-                    gobject.spawn_async([os.environ['SHELL'], '-c', cmd])
+                    self.qtile.cmd_spawn(cmd)
             self.draw()
 
     def draw(self):
['libqtile/manager.py', 'libqtile/widget/launchbar.py']