setup: add package list and create directory if they don't exist

This commit is contained in:
Vincent Bernat 2012-11-06 11:51:56 +01:00
parent cbf4695a21
commit 37e0594248
3 changed files with 26 additions and 0 deletions

View file

@ -28,6 +28,7 @@ gtk2:write(gtk)
gtk2:close()
-- GTK3 is the same, but no double quotes for strings
os.execute("test -d ~/.config/gtk-3.0 || mkdir -p ~/.config/gtk-3.0")
local gtk3 = io.open(os.getenv("HOME") .. "/.config/gtk-3.0/settings.ini", "w")
gtk, _ = gtk:gsub('"', '')
gtk3:write("[Settings]\n")