Commit Graph

56 Commits

Author SHA1 Message Date
Bill Ferguson
14d5a79db2 Added script_data.show to script_data blocks 2023-07-16 13:04:00 -04:00
Romuald du Song
9b31f18470 fix HOME environment variable name 2023-02-25 17:41:45 +01:00
Bill Ferguson
5da64a7da0 [API 7.0.0 compatibility] Made changes to take advantage of the latest API changes
including the ability to start and stop most scripts.
2021-06-19 23:34:14 -04:00
supertobi
53d6b54de8 Merge branch 'master' into supertobi-patch-1 2019-04-15 21:34:44 +02:00
supertobi
ffd6abbe95 Fixed bugs after Linux testing 2019-04-15 21:28:48 +02:00
supertobi
f08421a48c Update kml_export.lua
Fixed Windows problem
2019-04-15 15:55:22 +02:00
supertobi
a383d1ebf8 Update kml_export.lua
Works with Windows
2019-04-15 15:48:31 +02:00
supertobi
18783e7ea5 kml_export fixed typo 2019-03-04 15:12:04 +01:00
supertobi
0ef9f5fc6c kml_export df.mkdir(df.sanitize_filename())
df.mkdir(df.sanitize_filename(xportDirectory..PS..imageFoldername))
2019-03-01 14:22:35 +01:00
supertobi
5a6ee174af kml_export sanitize_filename()
dsys.launch_default_app(df.sanitize_filename(path))
2019-02-27 10:05:59 +01:00
supertobi
9440085169 kml_export: use more utility functions
kml_export: use more utility functions as suggested by @wpferguson
2019-02-26 14:02:16 +01:00
supertobi
5c24077a30 kml_export
the command "convert" is deprecated and replaced by "magick"
2019-02-25 17:06:34 +01:00
supertobi
68a8eabbbb kml_export added preference for path to convert
kml_export added preference for path to convert as windows programs are not by default in the PATH
2019-02-25 16:31:22 +01:00
supertobi
a038333cce make kml_export multi OS
replaced mkdir, xdg-open, xdg-user-dir
2019-02-25 10:37:16 +01:00
supertobi
a5304fe74c First step to make kml_export.lua windows friendly
Replaced "/" with PS like in other scripts
2019-02-25 09:48:50 +01:00
Bill Ferguson
8b714edb67 Changed check_min_api_version() to print error messages and throw an error if the minimum api is not satisfied. Updated the scripts to reflect the changed check_min_api_version(). 2019-02-20 00:22:05 -05:00
Bill Ferguson
451c7fb956 Added check_min_api_function to dtutils.lua to check the minimum version of the lua API required for a script to run. This is intended to replace the API check done with darktable.configuration.check_version(), which requires changing each time the API version changes. check_min_api_version should work for all API version changes unless backward compatibility is broken. All the scripts using darktable.configuration.check_version() were changed to use check_min_api_version(). 2019-02-18 19:46:11 -05:00
Elman
f86b16735b Formatted code to follow project settings 2018-01-15 22:54:22 +01:00
Elman
0c1de20a1a Code formatting 2018-01-15 17:56:02 +01:00
Elman
e9d0f706ed Correct handling of duplicates 2018-01-15 17:41:26 +01:00
Elman
d297718358 Path is now sorted by exif_datetime_taken 2018-01-15 17:40:50 +01:00
Elman
b406b36cda Added all Slovak and Czech accents 2018-01-15 17:31:19 +01:00
supertobi
445e882579 check result from io.popen("xdg-user-dir DESKTOP") 2017-09-26 10:24:22 +02:00
elman
d8a9dfafb2 Fixed quotation marks typos 2017-08-07 22:49:45 +02:00
supertobi
dcc205ec4f Update kml_export.lua
check_version 5
2017-04-29 08:05:19 +02:00
supertobi
2562a218a0 Update kml_export.lua
use "lib/dtutils.file"
2017-04-27 22:04:15 +02:00
Pascal Obry
efcd48f1d9 Remove trailing whitespaces. 2017-04-10 16:59:35 +02:00
Pascal Obry
76daa583b3 Move all translation into the main locale directory.
This is for consistency reason as the lib/dtutils/file.lua use this
directory. Also all translation into contrib where not usable as
not checked into this directory which was expected to be just lua.

All in all using locale directory will avoid clutter the main
directory with all possible languages and fixes the current scripts.
2017-04-10 16:56:59 +02:00
Bill Ferguson
93e30a8542 Verified API 4.0.0 compatibility and made the necessary changes 2016-11-07 22:53:52 -05:00
Bill Ferguson
f550822943 Added require "official/yield" to scripts that use dt.control.execute() so that they work correctly if you haven't required official/yield somewhere else. 2016-10-21 13:25:40 -04:00
elman
33417454ed Reverted back to dt.control.execute() 2016-04-29 18:59:05 +02:00
elman
6ef06467b6 Added comments 2016-04-28 19:44:51 +02:00
elman
f5a624cfb2 Remove exported image if it has no GPS data 2016-04-27 19:35:44 +02:00
elman
d2762fae73 Fixed issue with exporting RAW images 2016-04-27 19:25:03 +02:00
Jérémy Rosen
783194e253 update to newest API change in master 2016-04-17 20:46:32 +02:00
supertobi
204868d733 Use a file list instead of * to zip the images
kml_export - packs to kmz all files from dt.configuration.tmp_dir #53 
https://github.com/darktable-org/lua-scripts/issues/53
2016-04-17 12:33:39 +02:00
supertobi
e3f1ff7d70 Strip accents from the filename, because GoogleEarth can't open them 2016-04-16 23:36:58 +02:00
supertobi
17a8c4f3d5 naming changes _ -> exported_image 2016-03-20 22:59:18 +01:00
supertobi
2a2bb7199e concertToThumbCommand -> convertToThumbCommand 2016-03-20 21:51:26 +01:00
supertobi
ef96bfa98c marked vars as local 2016-03-17 22:35:47 +01:00
supertobi
abbb740753 Update kml_export.lua
small changes (comments and spacing)
2016-03-11 23:57:13 +01:00
supertobi
c323ce6cbb Update kml_export.lua
use os.remove(image)
2016-01-31 00:57:43 +01:00
supertobi
6b4faac2cb Update kml_export.lua
function _(msgid)
2016-01-29 23:09:32 +01:00
supertobi
180bc06c06 Update kml_export.lua 2016-01-29 22:35:57 +01:00
supertobi
7cd4023f5c Update kml_export.lua
gettext bugfix
2016-01-22 23:30:58 +01:00
supertobi
cb46e090dd Update kml_export.lua
small bugfix CreatePath
2016-01-22 15:34:51 +01:00
supertobi
a656f0f304 Update kml_export.lua
add gettext
2016-01-22 15:15:33 +01:00
supertobi
bc1b908063 Update kml_export.lua
- support of image.title and image.description
- support of image.elevation
- don't add to many images to the kmz file
2016-01-10 22:28:53 +01:00
supertobi
0b3b095eac Update kml_export.lua
Tested with darktable 2.0
2016-01-04 23:00:33 +01:00
Laurent Navet
08151e7e21 Fix some typos 2015-12-30 22:02:18 +01:00