updated add_in_steam

This commit is contained in:
Mikhail Tergoev 2025-04-11 12:49:46 +03:00
parent 8752a56cbb
commit 49c577f586

@ -55,7 +55,8 @@ getAppTarget() {
} }
getSteamGameId() { getSteamGameId() {
printf "%u\n" $(($1 << 32 | 0x02000000)) # printf "%u\n" $(($1 << 32 | 0x02000000))
printf "%u\n" $(($1 * 4294967296 + 0x02000000))
} }
getAppId() { getAppId() {
@ -318,8 +319,8 @@ parseSteamTargetExe() {
restartSteam() { restartSteam() {
if [[ "${PW_SKIP_RESTART_STEAM}" != 1 ]] && pgrep -i steam &>/dev/null ; then if [[ "${PW_SKIP_RESTART_STEAM}" != 1 ]] && pgrep -i steam &>/dev/null ; then
if yad_question "${translations[For adding shortcut to STEAM, needed restart.\\n\\nRestart STEAM now?]}" ; then if yad_question "For adding shortcut to STEAM, needed restart.\\n\\nRestart STEAM now?" ; then
pw_start_progress_bar_block "${translations[Restarting STEAM... Please wait.]}" pw_start_progress_bar_block "Restarting STEAM... Please wait."
kill -s SIGTERM $(pgrep -a steam) &>/dev/null kill -s SIGTERM $(pgrep -a steam) &>/dev/null
while pgrep -i steam &>/dev/null ; do while pgrep -i steam &>/dev/null ; do
sleep 0.5 sleep 0.5
@ -521,7 +522,7 @@ addNonSteamGame() {
if [[ "${DOWNLOAD_STEAM_GRID}" == "1" ]] ; then if [[ "${DOWNLOAD_STEAM_GRID}" == "1" ]] ; then
NOSTAPPNAME="${name_desktop}" NOSTAPPNAME="${name_desktop}"
pw_start_progress_bar_block "${translations[Please wait. downloading covers for]} ${NOSTAPPNAME}" pw_start_progress_bar_block "Please wait. downloading covers for ${NOSTAPPNAME}"
addGrids addGrids
pw_stop_progress_bar pw_stop_progress_bar
fi fi