diff -Nru apturl-0.5.2ubuntu4/AptUrl/gtk/backend/InstallBackendSynaptic.py apturl-0.5.2ubuntu4.1/AptUrl/gtk/backend/InstallBackendSynaptic.py --- apturl-0.5.2ubuntu4/AptUrl/gtk/backend/InstallBackendSynaptic.py 2013-12-11 14:16:03.000000000 +0400 +++ apturl-0.5.2ubuntu4.1/AptUrl/gtk/backend/InstallBackendSynaptic.py 2017-09-23 15:18:13.000000000 +0300 @@ -7,7 +7,7 @@ import tempfile from gettext import gettext as _ -from gi.repository import GObject +from gi.repository import GObject, GdkX11 # https://bugzilla.gnome.org/673396 from UpdateManager.backend import InstallBackend @@ -15,6 +15,9 @@ class InstallBackendSynaptic(InstallBackend): """ Install backend based on synaptic """ + def __init__(self, window_main): + InstallBackend.__init__(self, window_main, self.ACTION_INSTALL) + def _run_synaptic(self, action, opt, tempf): """Execute synaptic.""" try: @@ -25,7 +28,7 @@ "--desktop", "/usr/share/applications/update-manager.desktop", "--", "/usr/sbin/synaptic", "--hide-main-window", "--non-interactive", "--parent-window-id", - "%s" % self.window_main.window.xid ] + "%s" % self.window_main.get_window().get_xid() ] cmd.extend(opt) flags = GObject.SPAWN_DO_NOT_REAP_CHILD (pid, stdin, stdout, stderr) = GObject.spawn_async(cmd, flags=flags) @@ -39,7 +42,7 @@ action, tempf = data if tempf: tempf.close() - self.emit("action-done", action, True, os.WEXITSTATUS(condition) == 0, None, None) + self._action_done(action, True, os.WEXITSTATUS(condition) == 0, None, None) def update(self): opt = ["--update-at-startup"] @@ -65,4 +68,4 @@ opt.append("--set-selections-file") opt.append("%s" % tempf.name) tempf.flush() - self._run_synaptic(self.INSTALL, opt, tempf) + self._run_synaptic(self.ACTION_INSTALL, opt, tempf) diff -Nru apturl-0.5.2ubuntu4/debian/changelog apturl-0.5.2ubuntu4.1/debian/changelog --- apturl-0.5.2ubuntu4/debian/changelog 2014-03-16 06:56:58.000000000 +0400 +++ apturl-0.5.2ubuntu4.1/debian/changelog 2017-09-23 14:52:56.000000000 +0300 @@ -1,3 +1,9 @@ +apturl (0.5.2ubuntu4.1) UNRELEASED; urgency=medium + + * Make Synaptic backend actually work (LP: #1338482) + + -- Vlad Orlov Sat, 23 Sep 2017 14:52:08 +0300 + apturl (0.5.2ubuntu4) trusty; urgency=medium * Drop libgtk2-perl Recommends to Suggests.