diff --git a/setup.py b/setup.py index 729b1ba16..ed0ccc69b 100755 --- a/setup.py +++ b/setup.py @@ -34,6 +34,10 @@ except ImportError: def windows_check(): return platform.system() in ('Windows', 'Microsoft') + +def osx_check(): + return platform.system() == "Darwin" + desktop_data = 'deluge/ui/data/share/applications/deluge.desktop' @@ -268,7 +272,7 @@ cmdclass = { # Data files to be installed to the system. _data_files = [] -if not windows_check() or not osx_check(): +if not windows_check() and not osx_check(): _data_files = [ ('share/icons/hicolor/scalable/apps', ['deluge/ui/data/icons/scalable/apps/deluge.svg']), ('share/icons/hicolor/128x128/apps', ['deluge/ui/data/icons/hicolor/128x128/apps/deluge.png']),