sysprof: add option to set the working directory

This is often essential for running non-graphical programs.
This commit is contained in:
bjorn3
2023-08-29 20:54:19 +02:00
parent e5413f7fd8
commit e788e1ed2a
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 *