daemonapp.pp makes assumptions about location of temp directory lazarus / 62-General ---------------------------------------------------------------------- dsiders · 2019-10-01 17:37 I just noticed after an update on svn that fcl-extra/src/daemonapp uses hard-coded paths for the service debugging log file. For Windows, it assumes C: and writes to the root directory (which is a no-no in my book). For all others, it assumes '/tmp'. Shouldn't StartLog use GetTempDir (SysUtils is already in the uses clause)? Like... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Assign(FL, IncludeTrailingPathDelimiter(GetTempDir) + 'service.log'); ---------------------------------------------------------------------- jamie · 2019-10-01 22:12 well if it is indeed doing hard coding directly to the root then why not report it? ---------------------------------------------------------------------- PascalDragon · 2019-10-02 07:21 Quote from: dsiders on October 01, 2019, 07:37:56 pmI just noticed after an update on svn that fcl-extra/src/daemonapp uses hard-coded paths for the service debugging log file. For Windows, it assumes C: and writes to the root directory (which is a no-no in my book). For all others, it assumes '/tmp'. Shouldn't StartLog use GetTempDir (SysUtils is already in the uses clause)? Like... Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Assign(FL, IncludeTrailingPathDelimiter(GetTempDir) + 'service.log');  This log is part of the functionality to debug the daemonapp unit itself. As you can see the functionality is only enabled if svcdebug is defined which is not the case by default. Thus the functionality should only be used when working on daemonapp itself and thus on a development machine anyway.