check result from io.popen("xdg-user-dir DESKTOP")
This commit is contained in:
@@ -314,6 +314,9 @@ dt.preferences.register("geoJSON_export",
|
|||||||
local handle = io.popen("xdg-user-dir DESKTOP")
|
local handle = io.popen("xdg-user-dir DESKTOP")
|
||||||
local result = handle:read()
|
local result = handle:read()
|
||||||
handle:close()
|
handle:close()
|
||||||
|
if (result == nil) then
|
||||||
|
result = ""
|
||||||
|
end
|
||||||
dt.preferences.register("geoJSON_export",
|
dt.preferences.register("geoJSON_export",
|
||||||
"ExportDirectory",
|
"ExportDirectory",
|
||||||
"directory",
|
"directory",
|
||||||
|
|||||||
Reference in New Issue
Block a user