[postr: 5/8] Allow for multiple running pyunique programs to exist peacefully.
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [postr: 5/8] Allow for multiple running pyunique programs to exist peacefully.
- Date: Fri, 3 Sep 2010 06:41:25 +0000 (UTC)
commit d24d90e1a73ed3b8d5069a3c15df983cd4119f2d
Author: Karl Mikaelsson <derfian lysator liu se>
Date: Wed Aug 18 20:41:08 2010 +0200
Allow for multiple running pyunique programs to exist peacefully.
Use the program name as base name for lock instead of a fixed PyUnique
string.
src/PyUnique.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/PyUnique.py b/src/PyUnique.py
index f895515..ad9d981 100644
--- a/src/PyUnique.py
+++ b/src/PyUnique.py
@@ -107,7 +107,7 @@ class UniqueApp(gobject.GObject):
# TODO: Find out what the startup_id is meant to be.
self._startup_id = startup_id
self.sess_bus = dbus.SessionBus()
- lock = "org.gtk.PyUnique.lock"
+ lock = "%s.lock" % name #"org.gtk.PyUnique.lock"
good_requests = [dbus.bus.REQUEST_NAME_REPLY_PRIMARY_OWNER,
dbus.bus.REQUEST_NAME_REPLY_ALREADY_OWNER]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]