diff -Nru apturl-0.5.2ubuntu11.1/AptUrl/gtk/backend/InstallBackendSynaptic.py apturl-0.5.2ubuntu11.2/AptUrl/gtk/backend/InstallBackendSynaptic.py --- apturl-0.5.2ubuntu11.1/AptUrl/gtk/backend/InstallBackendSynaptic.py 2016-05-19 23:08:55.000000000 +0300 +++ apturl-0.5.2ubuntu11.2/AptUrl/gtk/backend/InstallBackendSynaptic.py 2017-09-23 13:55:57.000000000 +0300 @@ -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.2ubuntu11.1/debian/changelog apturl-0.5.2ubuntu11.2/debian/changelog --- apturl-0.5.2ubuntu11.1/debian/changelog 2016-05-24 19:00:24.000000000 +0300 +++ apturl-0.5.2ubuntu11.2/debian/changelog 2017-09-23 13:55:39.000000000 +0300 @@ -1,3 +1,9 @@ +apturl (0.5.2ubuntu11.2) UNRELEASED; urgency=medium + + * Make Synaptic backend actually work (LP: #1338482) + + -- Vlad Orlov Sat, 23 Sep 2017 13:55:22 +0300 + apturl (0.5.2ubuntu11.1) xenial; urgency=medium * Fix common crashes (AttributeError in doEnableChannel), due to changes