set executable and icon name in desktop-file
Also opt for version-agnostic mime-type (file-format version is independent of program-version and of file-extension)
This commit is contained in:
parent
b074ff0dd5
commit
a02ffb9eed
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-ardour4">
|
||||
<mime-type type="application/x-ardour">
|
||||
<sub-class-of type="application/xml"/>
|
||||
<comment>Ardour session file</comment>
|
||||
<glob pattern="*.ardour"/>
|
||||
|
@ -1,9 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=Ardour
|
||||
Comment=Ardour Digital Audio Workstation
|
||||
Exec=ardour4
|
||||
Icon=ardour4
|
||||
Exec=@ARDOUR_EXEC@
|
||||
Icon=@ARDOUR_ICON@
|
||||
Terminal=false
|
||||
MimeType=application/x-ardour4;
|
||||
MimeType=application/x-ardour;
|
||||
Type=Application
|
||||
Categories=AudioVideo;Audio;AudioEditing;X-Recorders;X-Multitrack;X-Jack;
|
||||
|
@ -669,11 +669,18 @@ def build(bld):
|
||||
bld.install_files (bld.env['CONFDIR'], program + '.menus')
|
||||
|
||||
# Freedesktop
|
||||
freedesktop_subst_dict = {
|
||||
'ARDOUR_EXEC' : 'ardour' + str (bld.env['MAJOR']),
|
||||
'ARDOUR_ICON' : 'ardour' + str (bld.env['MAJOR'])
|
||||
}
|
||||
|
||||
if bld.env['FREEDESKTOP']:
|
||||
obj = bld(features = 'subst')
|
||||
obj.source = 'ardour.desktop.in'
|
||||
obj.target = bld.env['PROGRAM_NAME'].lower() + str (bld.env['MAJOR']) + '.desktop'
|
||||
obj.chmod = Utils.O644
|
||||
obj.dict = freedesktop_subst_dict
|
||||
set_subst_dict(obj, freedesktop_subst_dict)
|
||||
|
||||
obj = bld(features = 'subst')
|
||||
obj.source = 'ardour-mime-info.xml'
|
||||
|
Loading…
Reference in New Issue
Block a user