From 281e56c44298c1cac9c4f22b7c0fdc70a4a137ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Ball=C3=B3?= Date: Sun, 12 Feb 2017 04:28:59 +0100 Subject: [PATCH] Allow to disable installing .desktop files --- src/sugar3/activity/bundlebuilder.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sugar3/activity/bundlebuilder.py b/src/sugar3/activity/bundlebuilder.py index 7c4bc4ba..72d0046c 100644 --- a/src/sugar3/activity/bundlebuilder.py +++ b/src/sugar3/activity/bundlebuilder.py @@ -560,7 +560,7 @@ def cmd_install(config, options): """Install the activity in the system""" installer = Installer(Builder(config)) - installer.install(options.prefix, options.install_mime) + installer.install(options.prefix, options.install_mime, options.install_desktop_file) def _po_escape(string): @@ -645,6 +645,10 @@ def start(): "--skip-install-mime", dest="install_mime", action="store_false", default=True, help="Skip the installation of custom mime types in the system") + install_parser.add_argument( + "--skip-install-desktop-file", dest="install_desktop_file", + action="store_false", default=True, + help="Skip the installation of desktop file in the system") check_parser = subparsers.add_parser( "check", help="Run tests for the activity")