gtk3: fix how the settings are written

Really write the settings. Don't append the number of substitutions.
This commit is contained in:
Vincent Bernat 2012-07-07 01:39:14 +02:00
parent ce3438a2a5
commit f5fd2c1ba4

View file

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