fix(beautiful: gtk): don't crash when both gtk3 and gtk4 are installed
This commit is contained in:
parent
aeb2d85dad
commit
e833da0303
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue