Modified systemd launching target 58/35958/1
authorWonkeun Oh <wonkeun.oh@samsung.com>
Thu, 26 Feb 2015 05:15:30 +0000 (14:15 +0900)
committerWonkeun Oh <wonkeun.oh@samsung.com>
Thu, 26 Feb 2015 07:23:03 +0000 (16:23 +0900)
Change-Id: I803ee3134bf352417788343f49e340396ffb4782

Makefile.am
packaging/isf.spec
scim.service

index d543515..3dbd39c 100644 (file)
@@ -58,7 +58,7 @@ pkgconfig_DATA          = isf.pc scim.pc \
 
 
 # $(libdir) will be /usr/lib64 on x86_64 arch, so hard-coded.
-systemduserunitdir = /usr/lib/systemd/system
+systemduserunitdir = /usr/lib/systemd/user
 systemduserunit_DATA = scim.service
 
 ACLOCAL_AMFLAGS = -I ism/m4
@@ -72,5 +72,5 @@ uninstall-local:
        rm -rf @SCIM_MODULE_PATH@
 
 install-data-hook:
-       $(mkinstalldirs) $(DESTDIR)$(systemduserunitdir)/graphical.target.wants
-       ln -sf ../scim.service $(DESTDIR)$(systemduserunitdir)/graphical.target.wants/scim.service
+       $(mkinstalldirs) $(DESTDIR)$(systemduserunitdir)/default.target.wants
+       ln -sf ../scim.service $(DESTDIR)$(systemduserunitdir)/default.target.wants/scim.service
index f3594f3..501fd7a 100644 (file)
@@ -147,8 +147,8 @@ cat scim.lang > isf.lang
 %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/system/graphical.target.wants/scim.service
-%{_prefix}/lib/systemd/system/scim.service
+%{_prefix}/lib/systemd/user/default.target.wants/scim.service
+%{_prefix}/lib/systemd/user/scim.service
 %attr(755,root,root) %{_sysconfdir}/profile.d/isf.sh
 %{_sysconfdir}/scim/global
 %{_sysconfdir}/scim/config
index ad35b89..1601ce3 100644 (file)
@@ -7,9 +7,8 @@ Requires=enlightenment.service
 ExecStart=/usr/bin/scim -d
 Environment="DISPLAY=:0.0" "HOME=%h"
 Nice=5
-OOMScoreAdjust=-100
 Restart=always
 RestartSec=2
 
 [Install]
-WantedBy=graphical.target
+WantedBy=default.target