Resolves: RHEL-62152 - add tmux service
Signed-off-by: Josef Ridky <jridky@redhat.com>
This commit is contained in:
parent
e17e9365b3
commit
1cc5ed8e4a
@ -9,7 +9,7 @@ Name: tmux
|
||||
|
||||
Version: 3.3a
|
||||
# forge meta appends commit info
|
||||
Release: 12%{?dist}
|
||||
Release: 13%{?dist}
|
||||
Summary: A terminal multiplexer
|
||||
|
||||
License: ISC AND BSD-2-Clause AND BSD-3-Clause AND SSH-short AND LicenseRef-Fedora-Public-Domain
|
||||
@ -17,6 +17,7 @@ URL: https://tmux.github.io/
|
||||
Source0: %{forgesource}
|
||||
# Examples has been removed - so include the bash_completion here
|
||||
Source1: bash_completion_tmux.sh
|
||||
Source2: tmux@.service
|
||||
|
||||
# don't crash instead of displaying certain glyphs
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2253441
|
||||
@ -61,6 +62,7 @@ sh ./autogen.sh
|
||||
%make_install
|
||||
# bash completion
|
||||
install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux
|
||||
install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/tmux@.service
|
||||
|
||||
%post
|
||||
if [ "$1" = 1 ]; then
|
||||
@ -87,8 +89,12 @@ fi
|
||||
%{_bindir}/tmux
|
||||
%{_mandir}/man1/tmux.1.*
|
||||
%{_datadir}/bash-completion/completions/tmux
|
||||
%{_unitdir}/tmux@.service
|
||||
|
||||
%changelog
|
||||
* Fri Feb 07 2025 Josef Ridky <jridky@redhat.com> - 3.3a-13
|
||||
- Add tmux@.service (RHEL-62152)
|
||||
|
||||
* Fri Feb 07 2025 Josef Ridky <jridky@redhat.com> - 3.3a-12
|
||||
- fix SAST findings (RHEL-45543)
|
||||
|
||||
|
13
tmux@.service
Normal file
13
tmux@.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=tmux session for user %I
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=%I
|
||||
ExecStart=/usr/bin/tmux new-session -s %I -d
|
||||
ExecStop=/usr/bin/tmux kill-session -t %I
|
||||
WorkingDirectory=~
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user