diff --git a/skeleton/SYSTEM/tg5040/bin/suspend b/skeleton/SYSTEM/tg5040/bin/suspend index 5b6715a17..00ec97c38 100755 --- a/skeleton/SYSTEM/tg5040/bin/suspend +++ b/skeleton/SYSTEM/tg5040/bin/suspend @@ -1,5 +1,5 @@ #!/bin/sh -# set -eu +set -euo pipefail exec 0<&- # wpa_running=0 diff --git a/workspace/all/nextui/nextui.c b/workspace/all/nextui/nextui.c index a554f42a7..f60cefef3 100644 --- a/workspace/all/nextui/nextui.c +++ b/workspace/all/nextui/nextui.c @@ -2159,7 +2159,11 @@ int main (int argc, char *argv[]) { int new_w = max_w; int new_h = max_h; had_thumb = 1; - ox = (int)(max_w) - SCALE1(BUTTON_MARGIN*5); + if(exists(thumbpath)) + ox = (int)(max_w) - SCALE1(BUTTON_MARGIN*5); + else + ox = screen->w; + SDL_UnlockMutex(thumbMutex); }