Bill Ferguson
4e140f10d1
lib/dtutils/system - fixed Lua escaping in windows_command()
2025-01-17 14:18:19 -05:00
Nahuel José
1e33ea4192
fix: add change encoding to bat file for dtutils windows_command
2025-01-06 18:47:57 -03:00
Bill Ferguson
535ba78a06
lib/dtutils/system - remove _quote_windows_command
2024-07-21 22:43:59 -04:00
Bill Ferguson
9f423eeef3
lib/dtutils/file - reverted io_popen and os_execute wrappers as
...
lib/dtutils/system they don't work in this situation (no control
over the input strings)
2024-07-13 12:46:34 -04:00
Bill Ferguson
36023d8d4f
lib/dtutils/system - fixed typo in quote_windows_command call
2024-07-08 11:43:42 -04:00
Bill Ferguson
ff20098175
lib/dtuils/system - removed ds.sanitize wrapped around non windows command.
2024-06-14 12:33:35 -04:00
Bill Ferguson
9f2dbef4f0
lib/dtutils/system added local helper function quote_windows_command() to
...
wrap a windows command in quotes. Added a sanitize step
to windows_external_command() plus quote_windows_command()
to deal with all the windows username possibilities
2024-06-05 12:15:01 -04:00
Bill Ferguson
67538a4de2
lib/dtutils/system code cleanup
2024-06-05 00:01:17 -04:00
Bill Ferguson
2f330ea9cc
lib/dtutils/system - added wrapper functions io_popen and os_execute
...
to wrap io.popen and os.execute system calls
respectively. These wrapper functions provide
the necessary quoting on windows to get handle
strings with spaces and special characters.
2024-06-04 23:16:19 -04:00
Bill Ferguson
4ab20d8088
Removed official/yield.lua since it was only required for lua API 3.x and less (darktable 2.0 and before). Removed require from scripts that had included it.
2020-11-21 18:33:26 -05:00
supertobi
a81d992552
On Windows we don't need anything to open a file
...
On Windows we don't need any command to open a file.
And "start" has problems with spaces in the filename, even if we put quoter around them:
https://stackoverflow.com/questions/13691827/opening-file-with-spaces-in-windows-via-command-prompt
2019-04-15 14:27:17 +02:00
Bill Ferguson
5ff36fe2ec
Added a space after the commands and removed quotes in the command invocation.
2019-02-26 12:03:04 -05:00
Bill Ferguson
de087f743f
Fixed compatibility issues. Added new version check to scripts. Renamed lib/dtutils/file/rm() to lib/dtutils/file/rmdir since removing a file in windows with rmdir /q/s results in an error. Fixed os.tmpname() issued in enfuse. Under windows os.tmpname() doesn't put the file in a temporary directory, so fixed it to use darktable.configuration.tmp_dir. Cleaned up documentation in lib/dtutils/system.lua.
2019-02-24 15:19:37 -05:00
theres
3675f4d7cd
video ffmpeg - post review fixes
...
- rename OS_PATH_SEPARATOR -> PS and use in all needed places
- change function name from `open_file` to `launch_default_app`
- move `mkdir`, `rm` and `launch_default_app` helper functions to libs
- add executable_path_widget to export module if needed, not to the
preferences
- add show_status
- remove support_format
- change function name `format` to `format_string`, add comments
- replace apostrophes by quote marks
2019-01-27 22:43:47 +01:00
Bill Ferguson
8b5a43e435
Added require statement for official/yield.lua so that darktable.control.execute() would have all of it's requirements met without the user having to remember to add it somewhere else
2018-07-12 13:23:33 -04:00
Bill Ferguson
1a22bfbcef
Added system library to handle running external commands on different operating systems in a transparent manner. Added file and path quoting that is cross platform compatible. Changed gimp.lua to use the new utilities.
2018-07-11 11:32:48 -04:00