Skip to content

Fix showing the local inactive profile in json mode

When aa-genprof proposes a local inactive profile, it had a hardcoded call to 'less' to display that profile.

Unsurprisingly, this doesn't work in JSON mode and breaks YaST (luckily it's only a case of "the button doesn't work").

References: https://bugzilla.opensuse.org/show_bug.cgi?id=1171315

As groundwork, split off UI_ShowFile() from UI_Changes. UI_ShowFile() is more generic and can be used to display various (text) files, not only diffs.

I propose this fix for 2.11..master

(Note: get_pager() is unused after this fix - I'll submit a follow-up MR only to master to drop it.)

Merge request reports