# $(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
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
%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
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