summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2016-05-09 10:37:53 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2016-05-09 10:37:53 +0900
commit70052c10dc6f39de31e96eee4c95b481b93f5dfa (patch)
tree5a271d7fd65af34c3a929800f849e75aa7e4e254
parent79dd0ca77acdfafb77d00be5a6247dcd890c620d (diff)
downloadisf-config-70052c10dc6f39de31e96eee4c95b481b93f5dfa.tar.gz
isf-config-70052c10dc6f39de31e96eee4c95b481b93f5dfa.tar.bz2
isf-config-70052c10dc6f39de31e96eee4c95b481b93f5dfa.zip
Change-Id: I6f38b51bc74b9f161989d018cb6cac0a13bc173b
-rw-r--r--isf-config-mobile.manifest5
-rw-r--r--packaging/isf-config-mobile.spec13
-rw-r--r--scim.path6
-rw-r--r--scim.service12
4 files changed, 36 insertions, 0 deletions
diff --git a/isf-config-mobile.manifest b/isf-config-mobile.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/isf-config-mobile.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/isf-config-mobile.spec b/packaging/isf-config-mobile.spec
index 7deb026..952f486 100644
--- a/packaging/isf-config-mobile.spec
+++ b/packaging/isf-config-mobile.spec
@@ -19,9 +19,22 @@ ISF configuration files for mobile profile
%install
rm -rf %{buildroot}
%__mkdir_p %{buildroot}%{_sysconfdir}/scim/conf
+%__mkdir_p %{buildroot}%{_prefix}/lib/systemd/user
+%__mkdir_p %{buildroot}%{_prefix}/lib/systemd/user/default.target.wants
+
%__cp etc/scim/conf/* %{buildroot}%{_sysconfdir}/scim/conf
+%__cp scim.service %{buildroot}%{_prefix}/lib/systemd/user
+%__cp scim.path %{buildroot}%{_prefix}/lib/systemd/user
+
+%post
+mkdir -p %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
+ln -sf %{_prefix}/lib/systemd/user/scim.path %{_prefix}/lib/systemd/user/default.target.wants/scim.path
+ln -sf %{_prefix}/lib/systemd/user/scim.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
%files
+%manifest %{name}.manifest
%defattr(-,root,root,-)
/etc/scim/conf/*
+%{_prefix}/lib/systemd/user/scim.service
+%{_prefix}/lib/systemd/user/scim.path
%license LICENSE.APLv2
diff --git a/scim.path b/scim.path
new file mode 100644
index 0000000..f2fbf95
--- /dev/null
+++ b/scim.path
@@ -0,0 +1,6 @@
+[Unit]
+Description=This path will tell you that isf (scim) daemons are ready to launch
+
+[Path]
+PathExists=/run/.wm_ready
+
diff --git a/scim.service b/scim.service
new file mode 100644
index 0000000..5e6fcbd
--- /dev/null
+++ b/scim.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Start the input service framework panel
+
+[Service]
+ExecStart=/usr/bin/isf-panel-efl
+Environment="DISPLAY=:0.0" "HOME=%h" USE_OZONE_WAYLAND_VKB=1 OZONE_WAYLAND_USE_XDG_SHELL='defined'
+EnvironmentFile=/run/tizen-system-env
+Restart=always
+RestartSec=2
+
+[Install]
+WantedBy=default.target