Disabled package is not able to create an instance.
[platform/framework/web/livebox-viewer.git] / src / livebox.c
index a3f9038..641e3a8 100644 (file)
@@ -589,6 +589,11 @@ EAPI struct livebox *livebox_add_with_size(const char *pkgname, const char *cont
                return NULL;
        }
 
+       if (livebox_service_is_enabled(pkgname) == 0) {
+               DbgPrint("Livebox [%s] is disabled package\n", pkgname);
+               return NULL;
+       }
+
        if (type != LB_SIZE_TYPE_UNKNOWN)
                livebox_service_get_size(type, &width, &height);