Browse Source

Minor MacOS support

tags/v0.9.0
falkTX 13 years ago
parent
commit
c9ee061ebf
2 changed files with 9 additions and 2 deletions
  1. +3
    -1
      src/jacklib.py
  2. +6
    -1
      src/shared.py

+ 3
- 1
src/jacklib.py View File

@@ -22,7 +22,9 @@ from sys import platform

# Load JACK shared library
try:
if (platform in ("win32", "win64")):
if (platform == "darwin"):
jacklib = cdll.LoadLibrary("libjack.dylib")
elif (platform in ("win32", "win64")):
jacklib = cdll.LoadLibrary("libjack.dll")
else:
jacklib = cdll.LoadLibrary("libjack.so.0")


+ 6
- 1
src/shared.py View File

@@ -23,7 +23,12 @@ from PyQt4.QtCore import qWarning, SIGNAL, SLOT
from PyQt4.QtGui import QIcon, QMessageBox, QFileDialog

# Set Platform
if ("linux" in sys.platform):
if (sys.platform == "darwin"):
from PyQt4.QtGui import qt_mac_set_menubar_icons
qt_mac_set_menubar_icons(False)
LINUX = False
WINDOWS = False
elif ("linux" in sys.platform):
LINUX = True
WINDOWS = False
elif ("win" in sys.platform):


Loading…
Cancel
Save