Commit cadea0aa authored by Daniel García Moreno's avatar Daniel García Moreno

GSettings scheme in meson build

parent 6bdc2139
......@@ -2,3 +2,4 @@ subdir('icons')
install_data('org.gnome.Fractal.desktop', install_dir : datadir + '/applications')
install_data('org.gnome.Fractal.appdata.xml', install_dir : datadir + '/appdata')
install_data('org.gnome.Fractal.gschema.xml', install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
<?xml version="1.0" encoding="utf-8"?>
<enum id="org.gnome.Fractal.PasswordStorage">
<value nick="Secret Service" value="0"/>
<value nick="Plain text" value="1"/>
<schema path="/org/gnome/factal/" id="org.gnome.Fractal">
<key name="password-storage" enum="org.gnome.Fractal.PasswordStorage">
<default>'Secret Service'</default>
<summary>Type of password and token storage</summary>
Type of password and token storage, default value is: Secret Service
......@@ -39,3 +39,5 @@ cargo_release = custom_target('cargo-build',
run_target('release', command: ['scripts/',
meson.project_name() + '-' + fractal_version
#!/usr/bin/env python3
import os
import subprocess
install_prefix = os.environ['MESON_INSTALL_PREFIX']
icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor')
schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')
if not os.environ.get('DESTDIR'):
print('Update icon cache...')['gtk-update-icon-cache', '-f', '-t', icondir])
print('Compiling gsettings schemas...')['glib-compile-schemas', schemadir])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment