From: Ismo Puustinen Date: Fri, 7 Mar 2014 14:16:42 +0000 (+0200) Subject: packaging: updated config for HS lifecycle management. X-Git-Tag: accepted/tizen/ivi/20150112.012920~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=755d5fbf12954e6c3985e9a5197d79b140bb4677;p=profile%2Fivi%2Fmurphy.git packaging: updated config for HS lifecycle management. Change-Id: I00da3f519743e9953685f317a9e2b6ffb5054ad3 --- diff --git a/packaging.in/murphy.lua b/packaging.in/murphy.lua index ae782f8..c5e86dd 100644 --- a/packaging.in/murphy.lua +++ b/packaging.in/murphy.lua @@ -1414,22 +1414,18 @@ if sc then print('client ' .. cid .. ' (' .. msg.appid .. ') disconnected') end if msg.appid == homescreen then - if verbose > 1 then - end - connected = false homescreen = "" - wmgr:disconnect() for i,v in pairs(special_screen_sets) do - resource_set_destroy("screen", i) + resclnt:resource_set_destroy("screen", i) special_screen_sets[i] = nil end end return end - -- handle the connection + -- handle the connection to weston - if not connected and appid then + if appid then if appid == "org.tizen.ico.homescreen" then print('Setting homescreen='..appid) homescreen = appid @@ -1437,11 +1433,14 @@ if sc then send_driving_mode_to_home_screen() send_night_mode_to_home_screen() end - print('Trying to connect to wayland...') - connected = wmgr:connect() elseif appid == "org.tizen.ico.onscreen" then onscreen = appid end + + if not connected and appid == "org.tizen.ico.homescreen" then + print('Trying to connect to weston...') + connected = wmgr:connect() + end end end