mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00

The WM_CLASS X property is apparently set to windows throughout the
program by the g_set_prgname() call which we changed in commit
95e32ebb34
from being the executable name (being the fully qualified
program name with the version) to the desktop name.
57 lines
1.5 KiB
Meson
57 lines
1.5 KiB
Meson
desktopfilename = gimp_desktop_name + '.desktop'
|
|
|
|
desktop_conf = configuration_data()
|
|
desktop_conf.set('GIMP_COMMAND', gimp_command)
|
|
desktop_conf.set('GIMP_VERSION', gimp_version)
|
|
desktop_conf.set('GIMP_APP_VERSION', gimp_app_version)
|
|
desktop_conf.set('GIMP_DESKTOP_NAME', gimp_desktop_name)
|
|
desktop_conf.set('MIME_TYPES', ';'.join(MIMEtypes))
|
|
desktop_conf.set('BUG_REPORT_URL', bug_report_url)
|
|
|
|
desktopfilein = configure_file(
|
|
input : desktopfilename+'.in.in',
|
|
output: desktopfilename+'.in',
|
|
configuration: desktop_conf,
|
|
)
|
|
|
|
desktopfile = i18n.merge_file(
|
|
input : desktopfilein,
|
|
output: desktopfilename,
|
|
type: 'desktop',
|
|
po_dir: po_dir,
|
|
install: true,
|
|
install_dir: get_option('datadir') / 'applications',
|
|
)
|
|
|
|
appdatafilename = 'org.gimp.GIMP.appdata.xml'
|
|
appdatafilein = configure_file(
|
|
input : appdatafilename+'.in.in',
|
|
output: appdatafilename+'.in',
|
|
configuration: desktop_conf,
|
|
)
|
|
appdatafile = i18n.merge_file(
|
|
input : appdatafilein,
|
|
output: appdatafilename,
|
|
po_dir: po_dir,
|
|
install: true,
|
|
install_dir: get_option('datadir') / 'metainfo',
|
|
)
|
|
|
|
if desktop_validate.found()
|
|
test('validate-desktop',
|
|
desktop_validate,
|
|
args: [ desktopfile ],
|
|
suite: 'desktop',
|
|
)
|
|
endif
|
|
|
|
if appstreamcli.found()
|
|
test('appdata_file',
|
|
find_program('test-appdata.py', required: true, dirs: [meson.current_source_dir()]),
|
|
env: [
|
|
'GIMP_TESTING_BUILDDIR=' + meson.current_build_dir(),
|
|
'GIMP_RELEASE=' + (release and not gimp_rc_git ? '1' : '0'),
|
|
],
|
|
suite: 'desktop',
|
|
)
|
|
endif
|