diff options
author | rxi <rxi@users.noreply.github.com> | 2020-05-21 11:45:33 +0100 |
---|---|---|
committer | rxi <rxi@users.noreply.github.com> | 2020-05-21 11:45:33 +0100 |
commit | 45b2f56937691d055275687a504b2699dbf5b44a (patch) | |
tree | f8e43bdd7618db78fa7376bbdcd2d2a4b2272a19 /plugins/openselected.lua | |
parent | 2651f1b5834ce143debb9493a716f0f2d2e26fad (diff) | |
download | lite-xl-plugins-45b2f56937691d055275687a504b2699dbf5b44a.tar.gz lite-xl-plugins-45b2f56937691d055275687a504b2699dbf5b44a.zip |
Changed `openfilelocation` and `openselected` to use system.exec
Should resolve issue of command prompt briefly showing when these
plugins are used
Diffstat (limited to 'plugins/openselected.lua')
-rw-r--r-- | plugins/openselected.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/openselected.lua b/plugins/openselected.lua index 5fadbec..321d3e8 100644 --- a/plugins/openselected.lua +++ b/plugins/openselected.lua @@ -15,9 +15,9 @@ command.add("core.docview", { core.log("Opening \"%s\"...", text) if PLATFORM == "Windows" then - os.execute(string.format("start explorer %s", text)) + system.exec("explorer " .. text) else - os.execute(string.format("xdg-open %q &", text)) + system.exec(string.format("xdg-open %q", text)) end end, }) |