Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
Fix ubuntu tweak daemon failed to start on oneric (Bug #853154)
Browse files Browse the repository at this point in the history
  • Loading branch information
tualatrix committed Sep 18, 2011
1 parent dc15708 commit a34d6bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions data/ubuntu-tweak-daemon
Expand Up @@ -5,10 +5,12 @@ import optparse

import dbus
import dbus.mainloop.glib
import gobject

from gi.repository import GObject

from ubuntutweak.common.consts import VERSION


if __name__ == '__main__':
parser = optparse.OptionParser(prog="ubuntu-tweak-daemon",
version="%%prog %s" % VERSION,
Expand All @@ -24,6 +26,6 @@ if __name__ == '__main__':
#TODO make it exist when timeout
from ubuntutweak.backends.daemon import Daemon
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
mainloop = gobject.MainLoop()
mainloop = GObject.MainLoop()
Daemon(dbus.SystemBus(), mainloop)
mainloop.run()

0 comments on commit a34d6bb

Please sign in to comment.