Create shared.PROFILE
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user