Merge pull request #1011 from torbsd/torbsd

DragonFly is *BSD; bringing back #716
This commit is contained in:
Micah Lee 2019-09-01 13:44:35 -07:00 committed by GitHub
commit 4dd26f6d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class Common(object):
# The platform OnionShare is running on
self.platform = platform.system()
if self.platform.endswith('BSD'):
if self.platform.endswith('BSD') or self.platform == 'DragonFly':
self.platform = 'BSD'
# The current version of OnionShare

View File

@ -74,7 +74,7 @@ data_files=[
(os.path.join(sys.prefix, 'share/onionshare/static/img'), file_list('share/static/img')),
(os.path.join(sys.prefix, 'share/onionshare/static/js'), file_list('share/static/js'))
]
if platform.system() != 'OpenBSD':
if not platform.system().endswith('BSD') and platform.system() != 'DragonFly':
data_files.append(('/usr/share/nautilus-python/extensions/', ['install/scripts/onionshare-nautilus.py']))
setup(