Chapters · Chapter 2 of 7

See inside configuration files

Track individual settings inside configuration files, not just the files.

About 5 minutesTracking from Scratch 1.0.0
Joining here?

Stop Pinman, run this command, then start Pinman again. It rebuilds the sample project up to this point, discarding any work you have already done in it.

pinman tutorial goto settings
View

What to expect#

Pinman can look inside supported data files and track the settings that matter. In this chapter, you'll track two configuration files, choosing INI data file for each, then select three settings to track. At the end, Explore will show each setting and its current value, ready for the changes later in the tutorial.

Schema authoring workflow

  1. Choose what mattersfirst tracked file
  2. Describe configurationsettings + labels
  3. Keep noise outMatching Rules
  4. Prove the schemacompare with baseline
  5. Extend beyond filesRegistry + Windows

Steps#

Track the presentation data file#

You're already in Explore. Start with the presentation application's configuration file, presenter.ini. Tracking presenter.ini with Track as set to INI data file lets Pinman show its named sections and settings.

  1. On the Production Workstation row, press the globe-icon to scan for untracked.
  2. Likewise, scan and drill down through applications, then presentation-app, to reveal presenter.ini.
  3. Right-click presenter.ini and select Track item….
  4. Under Track as, ensure INI data file is selected.
  5. Select Track.

The schema now tracks presenter.ini as an INI data file. Let's look inside it.

  1. Scan presenter.ini to see it's contents: sections named session and 'playback`.
  2. Scan the session section to see its settings.

Explore now shows the file's sections and settings. The settings are visible but not yet tracked.

The session settings in presenter.ini

Track the presentation mode#

session/mode is one of the settings used later in the tutorial. It records how the presentation application runs; its current value is rehearsal.

  1. Right-click session/mode and select Track item….

The dialog shows the setting's location, ending in #session/mode. Data Type tells Pinman what kind of value the setting holds. The mode is text, so its Data Type is string. Other available types include int, float and bool.

Default Value can stay empty. It supplies a value when the setting is missing.

  1. Set Data Type to string, then select Track.

session/mode is now tracked.

Track the recorder settings#

The screen recorder also uses an INI file, so you can repeat the sequence more quickly. A frame rate is a whole number, so its Data Type is int. Cursor capture is either true or false, so its Data Type is bool.

  1. Under applications, scan screen-recorder to reveal recorder.ini.
  2. Track recorder.ini, choosing INI data file under Track as.
  3. Scan recorder.ini, then scan its capture section.
  4. Track capture/frame_rate with Data Type int.
  5. Track capture/capture_cursor with Data Type bool.
  6. Select Refresh from the Explore toolbar to refresh the whole tree.

With the whole tree refreshed, you are now exploring Head, the live Capture of the current machine state. Head shows the three tracked settings and their current values:

ApplicationSettingData TypeCurrent value
Presentationsession/modestringrehearsal
Screen recordercapture/frame_rateint30
Screen recordercapture/capture_cursorbooltrue

The tracked INI settings in Head

The two files contain other settings, but the tutorial does not need them. A useful schema is selective: it describes the configuration you want to understand and manage.

What we did#

You tracked two configuration files, choosing INI data file for each, then selected three settings and assigned each setting a Data Type. Pinman can now show which presentation or recording value changed instead of reporting only that a file changed.

Next, you'll bring the media encoder's settings into the same configuration view.