diff --git a/setup.py b/setup.py index 40bfa7e8..fc8bf4c1 100755 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ sys.path[0] = backup_path_0 if 'install' in sys.argv: # naively guess where the autostart .desktop file should be installed - if '--prefix' in sys.argv or '--home' in sys.argv: + if '--prefix' in sys.argv or any(x.startswith('--prefix=') for x in sys.argv) or '--home' in sys.argv: autostart_path = 'etc/xdg/autostart' elif '--user' in sys.argv: from os import environ