From b8529030e6e44995758f614c3a4227c23ff14282 Mon Sep 17 00:00:00 2001 From: Danny Date: Wed, 15 Aug 2018 18:46:50 +0200 Subject: [PATCH] setup.py: detect "--prefix=" correctly. (#433) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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