Problem opening UART, when autostarting UBUNTU with lazarus application lazarus / 32-Linux ---------------------------------------------------------------------- pascalbythree · 2026-03-23 11:28 Lazarus people, When configuring autostart, 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 [Desktop En try]Type=ApplicationExec=/home/pascalbythree/WVW_ENDCODE_V2/project1Hi dden=falseNoDisplay=falseX-GNOME-Autostart-enabled=trueName=My Application My own made lazarus application gives this error as seen in screenshot. When connecting to /dev/ttyAMA0, the onboard 3.3V UART of my raspberry 5 PS: I am booting UBUNTU 26 and lazarus 4.99 FPC 3.3.1 When i boot to the GUI and execute the project1 executable by hand, it fully works fine. Anybody knows what to do to fix this? Greets, Wouter van Wegen, pascalbythree The project i am currently working on is a equalizer on my Samsung TV, with has serial port input make graphical. ---------------------------------------------------------------------- ccrause · 2026-03-23 17:21 Quote from: pascalbythree on March 23, 2026, 12:28:02 pmWhen i boot to the GUI and execute the project1 executable by hand, it fully works fine. Could be a permission problem associated with the user context.  Trap the exception and call SysUtils.GetLastOSError to retrieve the OS error.  This could help to identify the cause (but depends on the internal design of the serial component you are using).  You can also check under which user ID your program is running by calling BaseUnix.FpGetuid.