fix(beautiful: gtk): don't crash when both gtk3 and gtk4 are installed

This commit is contained in:
actionless 2021-03-25 00:21:04 +01:00
parent aeb2d85dad
commit e833da0303
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ function gtk.get_theme_variables()
local result = {}
local _gtk_status, Gtk = pcall(function()
return require('lgi').Gtk
local lgi = require('lgi')
return lgi.require('Gtk', '3.0')
end)
if not _gtk_status or not Gtk then
gears_debug.print_warning(