🔗SYNOPSIS a library of system utilities for use in darktable lua scripts
🔗USAGE local dtsys = require "lib/dtutils.system" 🔗DESCRIPTION This library contains routines for interfacing to the operating system from darktable lua scripts.
🔗RETURN VALUE dtsys - library - the darktable lua system library
🔗FUNCTIONS 🔗external_command pass a command to the operating system for execution and return the result
🔗launch_default_app open file in default application
🔗windows_command pass a command to the windows operating system for execution and return the result</description>
🔗SYNOPSIS pass a command to the operating system for execution and return the result
🔗USAGE local dsys = require &quot;lib/dtutils.system&quot; local result = dsys.external_command(command) command - string - a string containing the command and arguments to be passed to the operating system for execution.
🔗DESCRIPTION external_command passes a command to the operating system for execution and returns the results.
🔗RETURN VALUE result - number = the return value signalling success or failure.</description>
🔗SYNOPSIS pass a command to the windows operating system for execution and return the result
🔗USAGE local dsys = require &quot;lib/dtutils.system&quot; local result = dsys.windows_command(command) command - string - a string containing the command and arguments to be passed to the operating system for execution.
🔗DESCRIPTION The normal method of executing an operating system command is using dt.control.execute(), but that doesn&rsquo;t work with Windows when more than one item in the command is quoted.</description>