diff --git a/src/Application.vala b/src/Application.vala index bba83ac..a18b572 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -65,18 +65,16 @@ public class Atlas.Application : Adw.Application { } protected override void startup () { - if (Util.is_on_pantheon ()) { - /* - * Granite.init() calls Gdk.DisplayManager.get() internally without - * initializing Gtk, which is illegal and causes an intentional - * crash since Gtk 4.17. So, initialize Gtk explicitly here as a - * workaround. - * TODO: Remove this when https://github.com/elementary/granite/pull/893 is released - */ - Gtk.init (); - // Apply elementary stylesheet instead of default Adwaita stylesheet - Granite.init (); - } + /* + * Granite.init() calls Gdk.DisplayManager.get() internally without + * initializing Gtk, which is illegal and causes an intentional + * crash since Gtk 4.17. So, initialize Gtk explicitly here as a + * workaround. + * TODO: Remove this when https://github.com/elementary/granite/pull/893 is released + */ + Gtk.init (); + // Apply elementary stylesheet instead of default Adwaita stylesheet + Granite.init (); base.startup (); diff --git a/src/Util.vala b/src/Util.vala index 349a5c2..0cef783 100644 --- a/src/Util.vala +++ b/src/Util.vala @@ -4,10 +4,6 @@ */ namespace Util { - public static bool is_on_pantheon () { - return Environment.get_variable ("XDG_CURRENT_DESKTOP") == "Pantheon"; - } - public static Adw.ColorScheme to_adw_scheme (string str_scheme) { switch (str_scheme) { case Define.ColorScheme.DEFAULT: