summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/terminal-media-launcher-config.md4
-rw-r--r--man/terminal-media-launcher-config.54
-rw-r--r--src/unix/read_cfg.c2
-rw-r--r--src/windows/read_cfg.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/docs/terminal-media-launcher-config.md b/docs/terminal-media-launcher-config.md
index a5bf674..b1ecca3 100644
--- a/docs/terminal-media-launcher-config.md
+++ b/docs/terminal-media-launcher-config.md
@@ -122,7 +122,7 @@ local function addEntries(parentGroup, startDir, filePattern, recursive)
if string.match(file, filePattern) then
table.insert(parentGroup.Entries, {
name = file,
- path = fullFilePath
+ path = '"' .. fullFilePath .. '"'
})
end
end
@@ -211,7 +211,7 @@ local function addEntries(parentGroup, startDir, filePattern, recursive)
if string.match(file, filePattern) then
table.insert(parentGroup.Entries, {
name = file,
- path = fullFilePath
+ path = '"' .. fullFilePath .. '"'
})
end
end
diff --git a/man/terminal-media-launcher-config.5 b/man/terminal-media-launcher-config.5
index 0a818b9..d2a1b46 100644
--- a/man/terminal-media-launcher-config.5
+++ b/man/terminal-media-launcher-config.5
@@ -133,7 +133,7 @@ local function addEntries(parentGroup, startDir, filePattern, recursive)
if string.match(file, filePattern) then
table.insert(parentGroup.Entries, {
name = file,
- path = fullFilePath
+ path = '"' .. fullFilePath .. '"'
})
end
end
@@ -197,7 +197,7 @@ local function addEntries(parentGroup, startDir, filePattern, recursive)
if string.match(file, filePattern) then
table.insert(parentGroup.Entries, {
name = file,
- path = fullFilePath
+ path = '"' .. fullFilePath .. '"'
})
end
end
diff --git a/src/unix/read_cfg.c b/src/unix/read_cfg.c
index 602c750..09944b1 100644
--- a/src/unix/read_cfg.c
+++ b/src/unix/read_cfg.c
@@ -122,7 +122,7 @@ void mkconfig_wizard(char *path){
" if string.match(file, filePattern) then\n"
" table.insert(parentGroup.Entries, {\n"
" name = file,\n"
- " path = fullFilePath\n"
+ " path = '\"' .. fullFilePath .. '\"'\n"
" })\n"
" end\n"
" end\n"
diff --git a/src/windows/read_cfg.c b/src/windows/read_cfg.c
index 79e56b7..47d50ae 100644
--- a/src/windows/read_cfg.c
+++ b/src/windows/read_cfg.c
@@ -125,7 +125,7 @@ void mkconfig_wizard(char *path){
" if string.match(file, filePattern) then\n"
" table.insert(parentGroup.Entries, {\n"
" name = file,\n"
- " path = fullFilePath\n"
+ " path = '\"' .. fullFilePath .. '\"'\n"
" })\n"
" end\n"
" end\n"