Index: CHANGES.txt
==================================================================
--- CHANGES.txt
+++ CHANGES.txt
@@ -1,7 +1,9 @@
-Version [next]
+Version 0.12.0
+2022-03-14
+[Feature] If the installed version of troff is not detected as groff, a warning is displayed.
[Changed] On platforms which probably use a package manager (currently, Linux and BSDs), the "update check" checkbox is disabled and the related libraries are not referenced.
[Improved] When exiting groffstudio, the Save function from the "save" button is reused.
[Changed] Less capital letters.
[Improved] groffstudio opens on the primary screen now.
Index: src/groffstudio.lpi
==================================================================
--- src/groffstudio.lpi
+++ src/groffstudio.lpi
@@ -20,12 +20,11 @@
-
-
+
Index: src/unit1.pas
==================================================================
--- src/unit1.pas
+++ src/unit1.pas
@@ -148,10 +148,14 @@
begin
// What's the current running groff version?
if RunCommand('troff', ['--version'], GroffOutputVersion) then
begin
edtGroffInstalledVersion.Text := GroffOutputVersion;
+ if pos('GNU', GroffOutputVersion) = 0 then
+ ShowMessage('groffstudio thinks that your installed version of troff is not GNU troff.' + LineEnding +
+ 'If this is correct, you are advised to fix this before continuing.' + LineEnding +
+ 'If it is an error, please tell me so I can improve this detection.');
hasGroff := True;
end else begin
edtGroffInstalledVersion.Text := 'n/a';
hasGroff := False;
lblTroffCommandNotFound.Visible := True;