Merge pull request #3297 from actionless/dont-crash-when-gtk4-installed
fix(beautiful: gtk): don't crash when both gtk3 and gtk4 are installed
This commit is contained in:
commit
95558ac919
|
@ -70,7 +70,8 @@ function gtk.get_theme_variables()
|
||||||
|
|
||||||
local result = {}
|
local result = {}
|
||||||
local _gtk_status, Gtk = pcall(function()
|
local _gtk_status, Gtk = pcall(function()
|
||||||
return require('lgi').Gtk
|
local lgi = require('lgi')
|
||||||
|
return lgi.require('Gtk', '3.0')
|
||||||
end)
|
end)
|
||||||
if not _gtk_status or not Gtk then
|
if not _gtk_status or not Gtk then
|
||||||
gears_debug.print_warning(
|
gears_debug.print_warning(
|
||||||
|
|
Loading…
Reference in New Issue