From 9ed87db627d00dbef15099211fbd57ca8f5fbe0a Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 4 Jul 2024 11:11:53 +0900 Subject: [PATCH] added copying of Hyprland.desktop in hyprland.sh install script --- install-scripts/hyprland.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index 768b657..fb210c8 100755 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -43,5 +43,9 @@ else echo -e "${ERROR} Download failed for Hyprland." 2>&1 | tee -a "$LOG" fi +wayland_sessions_dir=/usr/share/wayland-sessions +[ ! -d "$wayland_sessions_dir" ] && { printf "$CAT - $wayland_sessions_dir not found, creating...\n"; sudo mkdir -p "$wayland_sessions_dir" 2>&1 | tee -a "$LOG"; } +sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG" + clear