Author: andar

Revision: 5060

Log:
        Fix starting the daemon in OS X

Diff:
Modified: branches/1.1.0_RC/ChangeLog
===================================================================
--- branches/1.1.0_RC/ChangeLog 2009-04-14 20:36:13 UTC (rev 5059)
+++ branches/1.1.0_RC/ChangeLog 2009-04-14 20:40:29 UTC (rev 5060)
@@ -3,6 +3,7 @@
   * Fix #883 segfault if locale is not using UTF-8 encoding
   * Fix for adding torrents with invalid filename encodings
   * Fix displaying IPv6 peers in the Peers tab
+  * Fix starting the daemon in OS X
 
 === Deluge 1.1.6 - (06 April 2009) ===
 ==== Core ====

Modified: branches/1.1.0_RC/deluge/ui/gtkui/connectionmanager.py
===================================================================
--- branches/1.1.0_RC/deluge/ui/gtkui/connectionmanager.py      2009-04-14 
20:36:13 UTC (rev 5059)
+++ branches/1.1.0_RC/deluge/ui/gtkui/connectionmanager.py      2009-04-14 
20:40:29 UTC (rev 5060)
@@ -491,6 +491,9 @@
         # Spawn a local daemon
         if deluge.common.windows_check():
             win32api.WinExec("deluged -p %s" % port)
+        elif deluge.common.osx_check():
+            subprocess.call(["nohup", "deluged", "--port=%s" % port,
+                "--config=%s" % deluge.configmanager.get_config_dir()])
         else:
             subprocess.call(["deluged", "--port=%s" % port,
                 "--config=%s" % deluge.configmanager.get_config_dir()])

Modified: trunk/deluge/ui/client.py
===================================================================
--- trunk/deluge/ui/client.py   2009-04-14 20:36:13 UTC (rev 5059)
+++ trunk/deluge/ui/client.py   2009-04-14 20:40:29 UTC (rev 5060)
@@ -527,6 +527,8 @@
         try:
             if deluge.common.windows_check():
                 win32api.WinExec("deluged --port=%s --config=%s" % (port, 
config))
+            elif deluge.common.osx_check():
+                subprocess.call(["nohup", "deluged", "--port=%s" % port, 
"--config=%s" % config])
             else:
                 subprocess.call(["deluged", "--port=%s" % port, "--config=%s" 
% config])
         except Exception, e:



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to