From 7b5f59f5acc813128326ffc231a1d8d935c8079a Mon Sep 17 00:00:00 2001 From: James O'SHANNESSY <12959316+joshanne@users.noreply.github.com> Date: Fri, 24 Apr 2026 21:23:27 +1000 Subject: [PATCH] setup.py: Remove the .desktop file installation unless running `python setup.py install --user` --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e003177..7650984 100755 --- a/setup.py +++ b/setup.py @@ -89,7 +89,7 @@ package_data={'DroneCAN_GUI_Tool': [ 'icons/*.png', 'icons/*.ico']} ) -if sys.platform.startswith('linux') or sys.platform.startswith('darwin'): +if 'install' in sys.argv and (sys.platform.startswith('linux') or sys.platform.startswith('darwin')): # Delegating the desktop integration work to 'install_freedesktop' args.setdefault('setup_requires', []).append('install_freedesktop')