[fantasdic] The X11-based IPC system failed to work on Mac OS X's X11.
- From: Mathieu Blondel <mblondel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [fantasdic] The X11-based IPC system failed to work on Mac OS X's X11.
- Date: Sun, 13 Sep 2009 11:46:33 +0000 (UTC)
commit 9ac3618818501742493942588d6f211d88601b41
Author: Mathieu Blondel <mathieu mblondel org>
Date: Sun Sep 13 20:45:23 2009 +0900
The X11-based IPC system failed to work on Mac OS X's X11.
lib/fantasdic.rb | 1 +
lib/fantasdic/ui/ipc.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/fantasdic.rb b/lib/fantasdic.rb
index 803f563..f043c5d 100644
--- a/lib/fantasdic.rb
+++ b/lib/fantasdic.rb
@@ -65,6 +65,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
EOL
WIN32 = (/mingw|mswin|win32/ =~ RUBY_PLATFORM)
+ OSX = (/darwin/ =~ RUBY_PLATFORM)
if WIN32
begin
diff --git a/lib/fantasdic/ui/ipc.rb b/lib/fantasdic/ui/ipc.rb
index 7d96ed2..1ac6fca 100644
--- a/lib/fantasdic/ui/ipc.rb
+++ b/lib/fantasdic/ui/ipc.rb
@@ -28,7 +28,7 @@
# IPC is used in Fantasdic to make the application a single-instance
# application. It is possible to pass parameters to the running instance.
-if Fantasdic::WIN32
+if Fantasdic::WIN32 or Fantasdic::OSX
begin
require "win32/pipe"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]