Merge branch 'set_cwd' into 'master'

sysprof: add option to set the working directory

See merge request GNOME/sysprof!76
This commit is contained in:
Christian Hergert
2023-08-29 19:01:16 +00:00
2 changed files with 7 additions and 0 deletions

View File

@ -176,6 +176,12 @@
<property name="text" bind-source="recording_template" bind-flags="bidirectional|sync-create" bind-property="command-line"/>
</object>
</child>
<child>
<object class="AdwEntryRow" id="app_working_directory">
<property name="title" translatable="yes">Working directory</property>
<property name="text" bind-source="recording_template" bind-flags="bidirectional|sync-create" bind-property="cwd"/>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">The application will be run as a subprocess of Sysprof.</property>

View File

@ -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 *