mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2026-06-13 04:04:59 +03:00
Update NSLPluginInstaller.sh
This commit is contained in:
@@ -4,6 +4,15 @@
|
||||
logged_in_user=$(logname 2>/dev/null || whoami)
|
||||
logged_in_home=$(eval echo "~${logged_in_user}")
|
||||
|
||||
# Function to switch to Game Mode
|
||||
switch_to_game_mode() {
|
||||
echo "Switching to Game Mode..."
|
||||
rm -rf ${logged_in_home}/.config/systemd/user/nslgamescanner.service
|
||||
unlink ${logged_in_home}/.config/systemd/user/default.target.wants/nslgamescanner.service
|
||||
systemctl --user daemon-reload
|
||||
qdbus org.kde.Shutdown /Shutdown org.kde.Shutdown.logout
|
||||
}
|
||||
|
||||
# Function to display a Zenity message
|
||||
show_message() {
|
||||
zenity --notification --text="$1" --timeout=1
|
||||
|
||||
Reference in New Issue
Block a user