1. add smack manifest
authorJaeho Lee <jaeho81.lee@samsung.com>
Thu, 25 Oct 2012 11:14:26 +0000 (20:14 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Thu, 25 Oct 2012 11:14:26 +0000 (20:14 +0900)
2. add system target
3. Applied systemd change

app-core.manifest [new file with mode: 0644]
packaging/app-core.spec
packaging/core-efl.target [new file with mode: 0644]
src/appcore-efl.c

diff --git a/app-core.manifest b/app-core.manifest
new file mode 100644 (file)
index 0000000..97e8c31
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_"/>
+       </request>
+</manifest>
index 7f3fd9f..93a8eb9 100644 (file)
@@ -2,10 +2,11 @@
 Name:       app-core
 Summary:    Application basic
 Version:    1.2
-Release:    28
+Release:    34
 Group:      TO_BE/FILLED_IN
 License:    Apache License, Version 2.0
 Source0:    app-core-%{version}.tar.gz
+Source101:  packaging/core-efl.target
 BuildRequires:  pkgconfig(sensor)
 BuildRequires:  pkgconfig(vconf)
 BuildRequires:  pkgconfig(aul)
@@ -86,6 +87,8 @@ make %{?jobs:-j%jobs}
 %install
 rm -rf %{buildroot}
 %make_install
+install -d %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants
+install -m0644 %{SOURCE101} %{buildroot}%{_libdir}/systemd/user/
 
 
 %post efl -p /sbin/ldconfig
@@ -101,6 +104,7 @@ rm -rf %{buildroot}
 
 
 %files efl
+%manifest app-core.manifest
 %defattr(-,root,root,-)
 %{_libdir}/libappcore-efl.so.*
 
@@ -111,8 +115,11 @@ rm -rf %{buildroot}
 %{_libdir}/pkgconfig/appcore-efl.pc
 
 %files common
+%manifest app-core.manifest
 %defattr(-,root,root,-)
 %{_libdir}/libappcore-common.so.*
+%{_libdir}/systemd/user/core-efl.target
+%{_libdir}/systemd/user/core-efl.target.wants/
 
 %files common-devel
 %defattr(-,root,root,-)
diff --git a/packaging/core-efl.target b/packaging/core-efl.target
new file mode 100644 (file)
index 0000000..67ec56e
--- /dev/null
@@ -0,0 +1,15 @@
+#
+# This virtual unit maps the default core components and their dependencies.
+#
+# The real desktop services should go into the final desktop target
+# folder, which should require this virtual target. While starting
+# up, systemd will assure that the core EFL and daemons start before
+# anything else. After the core target finishes, dependencies should
+# not matter too much anymore and less fine-grained dependencies can
+# be used.
+#
+
+[Unit]
+Description=Core EFL UI target
+After=xorg.target
+Requires=xorg.target
index 25d4f1c..ce6b387 100755 (executable)
@@ -74,7 +74,7 @@ static const char *_as_name[] = {
        [AS_DYING] = "DYING",
 };
 
-static bool b_active = 1;
+static bool b_active = 0;
 struct win_node {
        unsigned int win;
        bool bfobscured;
@@ -458,6 +458,13 @@ static int __before_loop(struct ui_priv *ui, int *argc, char ***argv)
        g_type_init();
        elm_init(*argc, *argv);
 
+       if(getenv("opengl_x11")) {
+               elm_config_preferred_engine_set("opengl_x11");
+               _DBG("elm_config_preferred_engine_set");
+       } else {
+               _DBG("opengl_x11 is not set");
+       }
+
        r = appcore_init(ui->name, &efl_ops, *argc, *argv);
        _retv_if(r == -1, -1);