From b93e153050e47bbe9954b2a39e5356de9909e7bf Mon Sep 17 00:00:00 2001 From: HaseenaSainul Date: Tue, 26 Dec 2023 06:40:34 -0500 Subject: [PATCH] Changed Autostart to startmode --- CMakeLists.txt | 1 + Launcher.conf.in | 2 +- Launcher.config | 2 +- README.md | 8 ++++---- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c7142f8..983e8c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ if(BUILD_REFERENCE) add_definitions(-DBUILD_REFERENCE=${BUILD_REFERENCE}) endif() +set(PLUGIN_LAUNCHER_STARTMODE "activated" CACHE STRING "Automatically start the plugin") find_package(${NAMESPACE}Plugins REQUIRED) add_library(${MODULE_NAME} SHARED diff --git a/Launcher.conf.in b/Launcher.conf.in index 79dd3c7..d0882fe 100644 --- a/Launcher.conf.in +++ b/Launcher.conf.in @@ -1 +1 @@ -autostart = "true" +startmode = "@PLUGIN_LAUNCHER_STARTMODE@" diff --git a/Launcher.config b/Launcher.config index b403be9..ef864e3 100644 --- a/Launcher.config +++ b/Launcher.config @@ -1 +1 @@ -set (autostart true) +set (startmode ${PLUGIN_LAUNCHER_STARTMODE}) diff --git a/README.md b/README.md index a8a6f8c..1f0f21e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Plugin to "Launch" linux applications and scripts "precondition":[ "Platform" ], - "autostart":true + "startmode":"activated" } ``` @@ -30,7 +30,7 @@ Plugin to "Launch" linux applications and scripts "precondition":[ "Platform" ], - "autostart":true, + "startmode":"activated", "configuration": { "command":"du" } @@ -47,7 +47,7 @@ Plugin to "Launch" linux applications and scripts "precondition":[ "Platform" ], - "autostart":true, + "startmode":"activated", "configuration": { "command":"du", "parameters": [ @@ -144,7 +144,7 @@ Note: "precondition":[ "Platform" ], - "autostart":true, + "startmode":"activated", "configuration": { "command":"du", "closetime":5