From e788e1ed2a4700a473b4a812394462e0d576ce79 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 29 Aug 2023 20:54:19 +0200 Subject: [PATCH] sysprof: add option to set the working directory This is often essential for running non-graphical programs. --- src/sysprof/sysprof-greeter.ui | 6 ++++++ src/sysprof/sysprof-recording-template.c | 1 + 2 files changed, 7 insertions(+) diff --git a/src/sysprof/sysprof-greeter.ui b/src/sysprof/sysprof-greeter.ui index e47936ca..f2e1e9cd 100644 --- a/src/sysprof/sysprof-greeter.ui +++ b/src/sysprof/sysprof-greeter.ui @@ -176,6 +176,12 @@ + + + Working directory + + + The application will be run as a subprocess of Sysprof. diff --git a/src/sysprof/sysprof-recording-template.c b/src/sysprof/sysprof-recording-template.c index 9716601e..965cce13 100644 --- a/src/sysprof/sysprof-recording-template.c +++ b/src/sysprof/sysprof-recording-template.c @@ -438,6 +438,7 @@ sysprof_recording_template_init (SysprofRecordingTemplate *self) self->scheduler_details = FALSE; self->system_log = TRUE; self->command_line = g_strdup (""); + self->cwd = g_strdup(""); } SysprofRecordingTemplate *