Skip to content

Commit fc252d5

Browse files
authored
New example for the running_os command
1 parent 4090266 commit fc252d5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

examples/running_os.lua

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
--[[
2+
This file is part of darktable,
3+
copyright (c) 2017 Tobias Jakobs
4+
5+
darktable is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
darktable is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with darktable. If not, see <http://www.gnu.org/licenses/>.
17+
]]
18+
--[[
19+
20+
USAGE
21+
* require this script from your main lua file
22+
To do this add this line to the file .config/darktable/luarc:
23+
require "running_os"
24+
25+
prints the operating system
26+
27+
]]
28+
local dt = require "darktable"
29+
dt.configuration.check_version(...,{5,0,0})
30+
31+
dt.print("You are running: "..dt.configuration.running_os)
32+
33+
--
34+
-- vim: shiftwidth=2 expandtab tabstop=2 cindent syntax=lua

0 commit comments

Comments
 (0)