Apply systemd path activation 13/52713/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 26 Nov 2015 06:43:57 +0000 (15:43 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 26 Nov 2015 06:43:57 +0000 (15:43 +0900)
Change-Id: Ie70accc79b1305b39a193e29791715921bd9cb04

Makefile.am
packaging/isf.spec
scim.path [new file with mode: 0644]
scim.service

index 4b74b8e..67a028a 100644 (file)
@@ -62,7 +62,7 @@ kbdmodechangerxml_DATA = org.tizen.isf-kbd-mode-changer.xml
 endif
 
 if ISF_INSTALL_SYSTEMD_SCRIPT
-SYSTEMD_SCRIPT = scim.service
+SYSTEMD_SCRIPT = scim.service scim.path
 endif
 # $(libdir) will be /usr/lib64 on x86_64 arch, so hard-coded.
 systemduserunitdir = /usr/lib/systemd/user
@@ -81,5 +81,5 @@ uninstall-local:
 install-data-hook:
 if ISF_INSTALL_SYSTEMD_SCRIPT
        $(mkinstalldirs) $(DESTDIR)$(systemduserunitdir)/default.target.wants
-       ln -sf ../scim.service $(DESTDIR)$(systemduserunitdir)/default.target.wants/scim.service
+       ln -sf ../scim.path $(DESTDIR)$(systemduserunitdir)/default.target.wants/scim.path
 endif
index 01fde45..374b06e 100644 (file)
@@ -154,8 +154,9 @@ ln -sf %{_libdir}/ecore_imf/modules/wayland/v-1.16/module.so %{_libdir}/ecore_im
 %dir /opt/apps/scim/lib/scim-1.0/1.4.0/SetupUI
 %dir /opt/apps/scim/lib/scim-1.0/1.4.0/IMEngine
 %dir /etc/scim/conf
-%{_prefix}/lib/systemd/user/default.target.wants/scim.service
+%{_prefix}/lib/systemd/user/default.target.wants/scim.path
 %{_prefix}/lib/systemd/user/scim.service
+%{_prefix}/lib/systemd/user/scim.path
 %attr(755,root,root) %{_sysconfdir}/profile.d/isf.sh
 %{_sysconfdir}/scim/global
 %{_sysconfdir}/scim/config
diff --git a/scim.path b/scim.path
new file mode 100644 (file)
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
+
index acced33..5f23f71 100644 (file)
@@ -1,10 +1,7 @@
 [Unit]
 Description=Start the input service framework panel
-After=enlightenment.service
-Requires=enlightenment.service
 
 [Service]
-#ExecStart=/usr/bin/scim -d
 ExecStart=/usr/bin/isf-wsc-efl
 Environment="DISPLAY=:0.0" "HOME=%h" USE_OZONE_WAYLAND_VKB=1 OZONE_WAYLAND_USE_XDG_SHELL='defined'
 EnvironmentFile=/run/tizen-system-env