This reverts commit
41452349d956d5c890f7a743c155600f8b091f63.
We've optimized systemd-user without unified system/session.
So, we revert the patch for unified system/session.
Change-Id: Ib7e2e358d26ec39c5907ccc6ef9458c382754b36
%install_service sockets.target.wants %{service_name}-wp.socket
%install_service sockets.target.wants %{service_name}-admin.socket
%install_service ../user/sockets.target.wants %{service_name}-popup.socket
-%install_service ../system/user-sockets@.target.wants %{service_name}-popup@.socket
mkdir -p %{buildroot}%{rw_db_dir}
mkdir -p %{buildroot}%{ro_db_dir}
%{popup_unitdir}/%{service_name}-popup.socket
%{popup_unitdir}/sockets.target.wants/%{service_name}-popup.socket
%{popup_unitdir}/%{service_name}-popup.service
-%{_unitdir}/%{service_name}-popup@.socket
-%{_unitdir}/user-sockets@.target.wants/%{service_name}-popup@.socket
-%{_unitdir}/%{service_name}-popup@.service
%{ro_res_dir}/default-icon.png
%dir %{ro_data_dir}/%{service_name}
CONFIGURE_FILE(${SERVICE_NAME}-popup.service.in ${SERVICE_NAME}-popup.service @ONLY)
CONFIGURE_FILE(${SERVICE_NAME}-popup.socket.in ${SERVICE_NAME}-popup.socket @ONLY)
-CONFIGURE_FILE(${SERVICE_NAME}-popup@.service.in ${SERVICE_NAME}-popup@.service @ONLY)
-CONFIGURE_FILE(${SERVICE_NAME}-popup@.socket.in ${SERVICE_NAME}-popup@.socket @ONLY)
-
INSTALL(
FILES
${SERVICE_NAME}.service
${SERVICE_NAME}-cs.socket
${SERVICE_NAME}-wp.socket
${SERVICE_NAME}-admin.socket
- ${SERVICE_NAME}-popup@.service
- ${SERVICE_NAME}-popup@.socket
DESTINATION ${SYSTEMD_UNIT_DIR}
)
+++ /dev/null
-[Unit]
-PartOf=userlogin@%i.target
-Description=CSR popup service for user session
-
-[Service]
-User=%i
-Environment=DBUS_SESSION_BUS_ADDRESS=kernel:path=/sys/fs/kdbus/%i-user/bus;unix:path=/run/user/%i/bus
-Environment=XDG_RUNTIME_DIR=/run/user/%i
-SmackProcessLabel=User
-EnvironmentFile=@POPUP_SERVICE_ENV_FILE_PATH@
-ExecStart=@BIN_DIR@/@SERVICE_NAME@-popup
-Sockets=@SERVICE_NAME@-popup@%i.socket
+++ /dev/null
-[Unit]
-PartOf=userlogin@%i.target
-DefaultDependencies=no
-After=systemd-logind.service
-Description= Csr popup socket
-Wants=@SERVICE_NAME@-popup@%i.service
-Before=@SERVICE_NAME@-popup@%i.service
-
-[Socket]
-SocketUser=%i
-ListenStream=/tmp/.@SERVICE_NAME@-popup.socket
-Service=@SERVICE_NAME@-popup@%i.service
-SocketMode=0777
-
-[Install]
-WantedBy=user-sockets@.target