From 19134b1b1ebe5e31aecdabd53eac12f4a77681bd Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Sun, 14 Apr 2024 08:37:44 +0000 Subject: [PATCH] Link scripts to /usr/bin instead of ~/.local/bin --- opensuse-setup.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/opensuse-setup.sh b/opensuse-setup.sh index b842211..14e58f6 100755 --- a/opensuse-setup.sh +++ b/opensuse-setup.sh @@ -585,7 +585,7 @@ ln -s ${DOTFILES_SOURCE_DIR}/applications/* ${HOME}/.local/share/applications # Link scripts mkdir -p ${HOME}/.local/bin -ln -s ${DOTFILES_SOURCE_DIR}/bin/* ${HOME}/.local/bin +sudo ln -s ${DOTFILES_SOURCE_DIR}/bin/* /usr/bin # Copy configuration files mkdir -p ${HOME}/.config @@ -593,11 +593,10 @@ cp -r ${DOTFILES_SOURCE_DIR}/config/* ${HOME}/.config/ # (OPTIONAL) Remove unneeded files, depending on features selected if [[ "${detected_features[@]}" != *'Touchpad'* ]]; then - rm ${HOME}/.local/bin/gnome-toggle-touchpad-lock + sudo rm /usr/bin/gnome-toggle-touchpad-lock fi if [[ "${detected_features[@]}" != *'Windows'* ]]; then - rm ${HOME}/.local/share/applications/windows.desktop - rm ${HOME}/.local/bin/reboot-windows + sudo rm /usr/bin/reboot-windows fi ########################################