diff --git a/meson.build b/meson.build index 2a65b03..4697e16 100644 --- a/meson.build +++ b/meson.build @@ -24,6 +24,7 @@ conf.set('PYTHON', python.find_installation('python3').full_path()) conf.set('APP_ID', app_id) conf.set('PREFIX', prefix) conf.set('VERSION', meson.project_version()) +conf.set('PROFILE', profile) conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir'))) conf.set('pkgdatadir', pkgdatadir) diff --git a/src/shared.py.in b/src/shared.py.in index a55a0e9..6f08a29 100644 --- a/src/shared.py.in +++ b/src/shared.py.in @@ -25,6 +25,7 @@ from gi.repository import Gdk, Gio APP_ID = "@APP_ID@" VERSION = "@VERSION@" PREFIX = "@PREFIX@" +PROFILE = "@PROFILE@" SPEC_VERSION = 1.5 # The version of the game_id.json spec schema = Gio.Settings.new(APP_ID) diff --git a/src/window.py b/src/window.py index 4fc7ccf..d2b8ddf 100644 --- a/src/window.py +++ b/src/window.py @@ -90,7 +90,7 @@ class CartridgesWindow(Adw.ApplicationWindow): self.notice_empty.set_icon_name(shared.APP_ID + "-symbolic") - if "Devel" in shared.APP_ID: + if shared.PROFILE == "development": self.add_css_class("devel") # Connect search entries