dtutils.system on darktable lua documentation https://darktable-org.github.io/luadocs/lua.scripts.api.manual/dtutils.system/ Recent content in dtutils.system on darktable lua documentation Hugo -- gohugo.io en-us details https://darktable-org.github.io/luadocs/lua.scripts.api.manual/dtutils.system/details/ Mon, 01 Jan 0001 00:00:00 +0000 https://darktable-org.github.io/luadocs/lua.scripts.api.manual/dtutils.system/details/ 🔗DTUTILS.SYSTEM 🔗NAME dtutils.system 🔗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 external_command https://darktable-org.github.io/luadocs/lua.scripts.api.manual/dtutils.system/external_command/ Mon, 01 Jan 0001 00:00:00 +0000 https://darktable-org.github.io/luadocs/lua.scripts.api.manual/dtutils.system/external_command/ 🔗NAME external_command 🔗SYNOPSIS pass a command to the operating system for execution and return the result 🔗USAGE local dsys = require "lib/dtutils.system" 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. launch_default_app https://darktable-org.github.io/luadocs/lua.scripts.api.manual/dtutils.system/launch_default_app/ Mon, 01 Jan 0001 00:00:00 +0000 https://darktable-org.github.io/luadocs/lua.scripts.api.manual/dtutils.system/launch_default_app/ 🔗NAME launch_default_app 🔗SYNOPSIS open file in default application 🔗USAGE local dsys = require "lib/dtutils.file" result = dsys.launch_default_app(path) path - string - a file path 🔗DESCRIPTION launch_default_app allows opening a file in the application that is assigned as default for that filetype in the users’s system 🔗RETURN VALUE result - number - the return value signalling success or failure. windows_command https://darktable-org.github.io/luadocs/lua.scripts.api.manual/dtutils.system/windows_command/ Mon, 01 Jan 0001 00:00:00 +0000 https://darktable-org.github.io/luadocs/lua.scripts.api.manual/dtutils.system/windows_command/ 🔗NAME windows_command 🔗SYNOPSIS pass a command to the windows operating system for execution and return the result 🔗USAGE local dsys = require "lib/dtutils.system" 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’t work with Windows when more than one item in the command is quoted.