Check for Foundation module for MacOS system track icon
* Fixes Tautulli/Tautulli-Issues#249
This commit is contained in:
@@ -259,6 +259,7 @@ def main():
|
|||||||
if common.PLATFORM == 'Darwin' and plexpy.CONFIG.SYS_TRAY_ICON:
|
if common.PLATFORM == 'Darwin' and plexpy.CONFIG.SYS_TRAY_ICON:
|
||||||
try:
|
try:
|
||||||
import AppKit
|
import AppKit
|
||||||
|
import Foundation
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logger.warn("The pyobjc module is missing. Install this "
|
logger.warn("The pyobjc module is missing. Install this "
|
||||||
"module to enable the system tray icon.")
|
"module to enable the system tray icon.")
|
||||||
|
Reference in New Issue
Block a user