lua-scripts icon indicating copy to clipboard operation
lua-scripts copied to clipboard

Sanitize strings in Windows command calls

Open wpferguson opened this issue 2 years ago • 0 comments

Handle command execution with for commands that require multiple quoted strings on Windows. This handles circumstances such as:

  • space in the username or path
  • special characters

See https://github.com/darktable-org/darktable/pull/15437 for more information.

The scripts that need fixed are:

  • contrib/video_ffmpeg.lua
  • contrib/image_stack.lua
  • contrib/geoJSON_export.lua
  • contrib/fujifilm_dynamic_range.lua
  • contrib/image_time.lua
  • contrib/autostyle.lua
  • contrib/color_profile_manager.lua
  • contrib/fujifilm_ratings.lua
  • contrib/kml_export.lua
  • contrib/geoToolbox.lua
  • official/enfuse.lua
  • tools/gen_i18n_mo.lua
  • tools/get_lib_manpages.lua
  • tools/get_libdoc.lua
  • tools/get_lib_manpages.lua
  • tools/executable_manager.lua
  • tools/script_manager.lua
  • lib/dtutils/file.lua
  • lib/dtutils/system.lua

wpferguson avatar Dec 14 '23 16:12 wpferguson