autostart tmux in foot, not footclient

This commit is contained in:
Aminda Suomalainen 2025-08-11 19:28:05 +03:00
parent 8f5628ea1c
commit 77efcc12fe
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
3 changed files with 13 additions and 7 deletions

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Exec=foot tmux
Icon=foot
Terminal=false
Name=Foot running tmux
Comment=OOM killing foot-server is fun

View File

@ -1,6 +0,0 @@
[Desktop Entry]
Type=Application
Exec=footclient tmux
Icon=foot
Terminal=false
Name=Foot Client running tmux

View File

@ -210,6 +210,10 @@ if [ "$(id -u)" == "0" ]; then
fi
fi
# SECURITY WARNING, autostarts
(rm -v /etc/xdg/autostart/footclient-tmux.desktop &)
cp -v etc/xdg/autostart/foot-tmux.desktop /etc/xdg/autostart/
# Enables laziness on checking whether or not apt is installed
mkdir -vp /etc/apt/apt.conf.d/
# Enables progress bar and colours for apt/dpkg, which are helpful at
@ -257,7 +261,8 @@ if [ "$(id -u)" == "0" ]; then
# Symlink cleanup
if hash symlinks 2> /dev/null; then
symlinks -d /usr/local/bin
symlinks -d /etc/xdg/autostart/
symlinks -d /usr/local/bin/
symlinks -d /usr/local/share/fonts/
else
echo "WARNING! Executable named symlinks not found in PATH."