mirror of
https://github.com/clearlinux/clr-desktop-defaults.git
synced 2026-09-04 04:31:34 +00:00
This commit adds the `gnome-mimeapps.list` file, which is targeted specifically for GNOME desktop environments. Perhaps we should add a more generic mimeapps.list for compatibility with other desktops, for now we focus on this specific desktop env. Specification of MIME Applications Associations can be found at freedesktop[1]. This commit fixes https://github.com/clearlinux/distribution/issues/820 and https://github.com/clearlinux/distribution/issues/410 [1]-https://specifications.freedesktop.org/mime-apps-spec/latest/ar01s02.html Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
63 lines
1.5 KiB
Meson
63 lines
1.5 KiB
Meson
project(
|
|
'clr-desktop-defaults', 'c',
|
|
version : '18',
|
|
license: 'MIT'
|
|
)
|
|
|
|
# Directory vars
|
|
prefix = get_option('prefix')
|
|
datadir = join_paths(prefix, get_option('datadir'))
|
|
bindir = join_paths(prefix, get_option('bindir'))
|
|
xdgdir = join_paths(datadir, 'xdg')
|
|
schemasdir = join_paths(datadir, 'glib-2.0', 'schemas')
|
|
systemddir = join_paths(prefix, 'lib', 'systemd')
|
|
libexecdir = join_paths(prefix, get_option('libexecdir'))
|
|
|
|
desktop_conf = configuration_data()
|
|
desktop_conf.set('prefix', prefix)
|
|
|
|
# Flathub
|
|
configure_file(
|
|
input: 'org.clearlinux.initFlathubRepo.desktop.in',
|
|
output: 'org.clearlinux.initFlathubRepo.desktop',
|
|
configuration: desktop_conf,
|
|
install_dir: join_paths(xdgdir, 'autostart')
|
|
)
|
|
|
|
install_data(
|
|
'clr-init-flathub-repo',
|
|
install_dir : libexecdir
|
|
)
|
|
|
|
# XFCE Desktop files
|
|
configure_file(
|
|
input: 'clr-desktop-files.desktop.in',
|
|
output: 'clr-desktop-files.desktop',
|
|
configuration: desktop_conf,
|
|
install_dir: join_paths(xdgdir, 'autostart')
|
|
)
|
|
|
|
install_data(
|
|
'clr-desktop-files.sh',
|
|
install_dir : bindir
|
|
)
|
|
|
|
# Reset old dconf schemas to ensure new app-folders take
|
|
configure_file(
|
|
input: 'clr-migrate-settings.desktop.in',
|
|
output: 'clr-migrate-settings.desktop',
|
|
configuration: desktop_conf,
|
|
install_dir: join_paths(xdgdir, 'autostart')
|
|
)
|
|
|
|
install_data(
|
|
'clr-migrate-settings',
|
|
install_dir : libexecdir
|
|
)
|
|
|
|
subdir('dconf')
|
|
subdir('schemas')
|
|
subdir('logind.conf.d')
|
|
subdir('fontconfig')
|
|
subdir('mimeapps')
|