2019-01-06, 19:41
.. i got it to work again. There was a copy of "steam-launch.sh" in my archive - i used this one again, the "popup window" appears again and there i decided to "not update the userdata scrips".
I don't know where the problem iis sitting between these two script versions - here's a diff (and i changed the DISPLAY var to 0:1):
Thanks!
I don't know where the problem iis sitting between these two script versions - here's a diff (and i changed the DISPLAY var to 0:1):
Code:
4,5c4,5
< #Manual script usage: SteamLauncher-AHK.exe "e:\path\to\steam.exe" "d:\path\to\kodi.exe" "0/1" "true/false" "scriptpath/false" "scriptpath/false" "steam parameter
s"
< #$3 = 0 Quit KODI, 1 Minimize KODI. $4 = KODI portable mode. $5 = pre script. $6 post script. $7 steam parameters.
---
> #Manual script usage: steam-launch.sh "/path/to/steam" "/path/to/kodi" "0/1" "true/false" "scriptpath/false" "scriptpath/false"
> #$3 = 0 Quit Kodi, 1 Minimize Kodi. $4 = Kodi portable mode. $5 = pre script. $6 post script.
7c7
< #steam.launcher.script.revision=016
---
> #steam.launcher.script.revision=015
8a9
> export DISPLAY=:1
18,19d18
< export DISPLAY=:1
<
24c23
< open "$1" "$7" steam://open/bigpicture
---
> open "$1" steam://open/bigpicture
63,65d61
< DP=$(w -hs | awk '{print $3}') && export DISPLAY=$DP
< KODI_BIN=$(ps aux |pgrep 'kodi.bin|kodi-x11|kodi-wayland|kodi-gbm')
<
67c63
< "$5"
---
> "$5" "$3"
72,73c68,69
< kill $KODI_BIN
< (sleep 5 ; if [[ $KODI_BIN ]] ; then kill -9 $KODI_BIN ; fi)&
---
> kill $(pidof kodi.bin)
> (sleep 5 ; if [[ $(pidof kodi.bin) ]] ; then kill -9 $(pidof kodi.bin) ; fi)&
83c79
< "$1" "$7" steam://open/bigpicture &
---
> "$1" steam://open/bigpicture &
86c82
< "$1" "$7" -bigpicture &
---
> "$1" -bigpicture &
91c87
< if [[ $KODI_BIN ]] ; then
---
> if [[ $(pidof kodi.bin) ]] ; then
93,94c89,90
< kill $KODI_BIN
< (sleep 5 ; if [[ $KODI_BIN ]] ; then kill -9 $KODI_BIN ; fi)&
---
> kill $(pidof kodi.bin)
> (sleep 5 ; if [[ $(pidof kodi.bin) ]] ; then kill -9 $(pidof kodi.bin) ; fi)&
104c100
< if [[ $KODI_BIN ]] ; then
---
> if [[ $(pidof kodi.bin) ]] ; then
106,107c102,103
< kill $KODI_BIN
< (sleep 5 ; if [[ $KODI_BIN ]] ; then kill -9 $KODI_BIN ; fi)&
---
> kill $(pidof kodi.bin)
> (sleep 5 ; if [[ $(pidof kodi.bin) ]] ; then kill -9 $(pidof kodi.bin) ; fi)&
127a124
>
131,133c128,129
< if [[ $3 != 0 ]] ; then
< echo "3 equal not zero"
< if [[ $KODI_BIN ]] ; then
---
>
> if [[ $(pidof kodi.bin) ]] ; then
136d131
< echo "2nd 3 equal not zero"
139d133
< fi
147d140
<
Thanks!