diff options
| author | TLD136 <48219004+TLD136@users.noreply.github.com> | 2024-07-09 20:43:24 +0200 |
|---|---|---|
| committer | TLD136 <48219004+TLD136@users.noreply.github.com> | 2024-07-09 20:43:24 +0200 |
| commit | 3d6c815db1f83eda3b72be393edb520976719a4b (patch) | |
| tree | 96f513786537380b6d549db6e237759220528b61 | |
| parent | b6ed88facf5480c2e81ee843bbb8e37958b9d17c (diff) | |
| download | decky-installer-3d6c815db1f83eda3b72be393edb520976719a4b.tar.gz decky-installer-3d6c815db1f83eda3b72be393edb520976719a4b.zip | |
Remove unnecessary check
| -rw-r--r--[-rwxr-xr-x] | gui/user_install_script.sh | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gui/user_install_script.sh b/gui/user_install_script.sh index 504f5ed..1d7a119 100755..100644 --- a/gui/user_install_script.sh +++ b/gui/user_install_script.sh @@ -7,14 +7,7 @@ temp_pass_cleanup() { # removes unhelpful GTK warnings zen_nospam() { -# If we are on a wayland compositor the Wayland socket will be on /run/user/$UID(probaby 1000)/wayland-[socket-number]. -# When running Zenity under root(sudo) Zenity will assume /run/user/0/wayland-[socket-number]. -# That is not correct because the Wayland compositor is not running as root -if [ $EUID = 0 ] && [ "$XDG_SESSION_TYPE" = "wayland" ]; then - WAYLAND_DISPLAY="$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="/run/user/0" zenity "$@" 2> >(grep -v 'Gtk' >&2) -else - zenity 2> >(grep -v 'Gtk' >&2) "$@" -fi + zenity 2> >(grep -v 'Gtk' >&2) "$@" } # check if JQ is installed |
