feat: added portprotonqt-desktop-return script and added Hyprland support to it
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -57,7 +57,7 @@ configure_sddm() {
|
||||
}
|
||||
|
||||
yad_question() {
|
||||
env GDK_BACKEND="x11" yad --window-icon="/usr/share/icons/hicolor/scalable/actions/steamdeck-gaming-return.svg" --image="/usr/share/icons/hicolor/scalable/actions/steamdeck-gaming-return.svg" --question --title="$1" --text="$2" --width=300 --text-align=center
|
||||
yad --window-icon="/usr/share/icons/hicolor/scalable/actions/steamdeck-gaming-return.svg" --image="/usr/share/icons/hicolor/scalable/actions/steamdeck-gaming-return.svg" --question --title="$1" --text="$2" --width=300 --text-align=center
|
||||
[[ "$?" != 0 ]] && return 1 || return 0
|
||||
}
|
||||
|
||||
@ -81,6 +81,8 @@ case "$session" in
|
||||
elif [[ "$DE" == "KDE" ]]; then
|
||||
session_launcher="plasma"
|
||||
[[ "$KDE6" != "true" ]] && session_launcher="plasmawayland"
|
||||
elif [[ "$DE" == "Hyprland" ]]; then
|
||||
session_launcher="hyprland"
|
||||
fi
|
||||
else
|
||||
if [[ "$DE" == "GNOME" ]]; then
|
||||
@ -95,7 +97,7 @@ case "$session" in
|
||||
create_sentinel=1
|
||||
;;
|
||||
gamescope)
|
||||
session_launcher="gamescope-session-steam"
|
||||
session_launcher="gamescope-session-portprotonqt"
|
||||
create_sentinel=1
|
||||
;;
|
||||
*)
|
||||
@ -110,12 +112,12 @@ if [[ ! -z $4 ]]; then
|
||||
fi
|
||||
|
||||
if systemctl is-active --quiet gdm; then
|
||||
env GDK_BACKEND="x11" yad --window-icon="/usr/share/icons/hicolor/scalable/actions/steamdeck-gaming-return.svg" --image="/usr/share/icons/hicolor/scalable/actions/steamdeck-gaming-return.svg" --title="Требуется подтверждение" --text="Для работы данной функии требуется LIGHTDM или SDDM, GDM не поддерживается" --width=290 --text-align=center --button="OK"
|
||||
yad --window-icon="/usr/share/icons/hicolor/scalable/actions/steamdeck-gaming-return.svg" --image="/usr/share/icons/hicolor/scalable/actions/steamdeck-gaming-return.svg" --title="Требуется подтверждение" --text="Для работы данной функии требуется LIGHTDM или SDDM, GDM не поддерживается" --width=290 --text-align=center --button="OK"
|
||||
echo "autologin=false" >> "$config_dir/$SENTINEL_FILE"
|
||||
die "Autologin configuration aborted due to GDM."
|
||||
fi
|
||||
|
||||
if ! grep -iq "autologin" "$config_dir/$SENTINEL_FILE" || [[ "$2" == "plasma" ]] || [[ "$2" == "desktop" ]] ; then
|
||||
if ! grep -iq "autologin" "$config_dir/$SENTINEL_FILE" && [[ "$2" == "desktop" ]]; then
|
||||
if yad_question "Требуется подтверждение" "Для работы данной функции требуется настроить автологин. Хотите ли вы, чтобы это было настроено автоматически?" ; then
|
||||
echo "autologin=true" >> "$config_dir/$SENTINEL_FILE"
|
||||
echo "autologin enabled"
|
||||
|
Reference in New Issue
Block a user