From: Krisztian Litkey Date: Tue, 17 Dec 2013 16:29:23 +0000 (+0200) Subject: config: block system-controller if ivi-resource-manager is found. X-Git-Tag: accepted/tizen/ivi/20150112.012920~299 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbf4309d5fa615c2de38d1e1cacd90d21c5f74c0;p=profile%2Fivi%2Fmurphy.git config: block system-controller if ivi-resource-manager is found. If ivi-resource-manager is found load it and prevent system-controller from being loaded. Otherwise load system-controller if it is found. Change-Id: Icac35836c96f1d98f1631fe70e5f067d3f57521e --- diff --git a/packaging.in/murphy.lua b/packaging.in/murphy.lua index a64df72..2b130dc 100644 --- a/packaging.in/murphy.lua +++ b/packaging.in/murphy.lua @@ -1,4 +1,4 @@ -with_system_controller = false +with_system_controller = true m = murphy.get() @@ -60,8 +60,9 @@ else m:info("No audio session manager plugin found...") end -if m:plugin_exists('ivi-resource-manager') and not with_system_controller then +if m:plugin_exists('ivi-resource-manager') then m:load_plugin('ivi-resource-manager') + with_system_controller = false end -- define application classes @@ -167,9 +168,7 @@ zone { -- define resource classes -if not m:plugin_exists('ivi-resource-manager') and - not with_system_controller -then +if not m:plugin_exists('ivi-resource-manager') then resource.class { name = "audio_playback", shareable = true, @@ -453,10 +452,13 @@ m:try_load_plugin('telephony') -- system controller test setup -if not with_system_controller then +if not with_system_controller or + not m:plugin_exists('system-controller') then return end +m:load_plugin('system-controller') + window_operation_names = { [1] = "create", [2] = "destroy",