From c33b0471f355af9b2706f8a3fa3fb42d02ba960e Mon Sep 17 00:00:00 2001
From: Timothee 'TTimo' Besset <ttimo@valvesoftware.com>
Date: Thu, 9 May 2024 14:55:15 -0500
Subject: [PATCH] make sure the log folder exists when setting up sideloaded
 steam clients

---
 client/devkit-utils/steamos-set-steam-client | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/client/devkit-utils/steamos-set-steam-client b/client/devkit-utils/steamos-set-steam-client
index 5866bd4..9f5df91 100644
--- a/client/devkit-utils/steamos-set-steam-client
+++ b/client/devkit-utils/steamos-set-steam-client
@@ -88,6 +88,7 @@ if __name__ == '__main__':
             write_trampoline('''#!/bin/bash
 # Generated by steamos-set-steam-client, do not edit!
 # configuration tag (do not delete): {}
+mkdir -p $HOME/.steam/steam/logs
 exec {} steam &> $HOME/.steam/steam/logs/output.log
 '''.format(
     conf.client,
@@ -103,6 +104,7 @@ exec {} steam &> $HOME/.steam/steam/logs/output.log
 # Generated by steamos-set-steam-client, do not edit!
 # configuration tag (do not delete): {}
 {}
+mkdir -p $HOME/.steam/steam/logs
 exec {} {} &> $HOME/.steam/steam/logs/output.log
 '''.format(
     conf.client,
-- 
GitLab