Skip to content

Commit

Permalink
src/services: use a shell exec in systemd service files
Browse files Browse the repository at this point in the history
exec sub-command avoids keeping the parent shell around. Refer sh(1)
Fedora sh is bash.

BUG=#2453
  • Loading branch information
simondeziel authored and fujiwarat committed Feb 22, 2023
1 parent bc065f8 commit a140924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bus/services/org.freedesktop.IBus.session.GNOME.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Conflicts=gnome-session@gnome-login.target
[Service]
Type=dbus
# Only pull --xim in X11 session, it is done via Xwayland-session.d on Wayland
ExecStart=sh -c '@bindir@/ibus-daemon --panel disable $([ "$XDG_SESSION_TYPE" = "x11" ] && echo "--xim")'
ExecStart=sh -c 'exec @bindir@/ibus-daemon --panel disable $([ "$XDG_SESSION_TYPE" = "x11" ] && echo "--xim")'
Restart=on-abnormal
BusName=org.freedesktop.IBus
TimeoutStopSec=5
Expand Down
3 changes: 1 addition & 2 deletions bus/services/org.freedesktop.IBus.session.generic.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ Conflicts=gnome-session-initialized.target

[Service]
Type=dbus
# Only pull --xim in X11 session, it is done via Xwayland-session.d on Wayland
ExecStart=sh -c '@bindir@/ibus-daemon $IBUS_DAEMON_ARGS'
ExecStart=sh -c 'exec @bindir@/ibus-daemon $IBUS_DAEMON_ARGS'
Restart=on-abnormal
BusName=org.freedesktop.IBus
TimeoutStopSec=5
Expand Down

0 comments on commit a140924

Please sign in to comment.