Merge branch 'desktopfile-absolute' into 'master'
sm.puri.Squeekboard.desktop: make path to Exec= absolute See merge request Librem5/squeekboard!352
This commit is contained in:
@ -7,13 +7,20 @@ squeekboard_resources = gnome.compile_resources(
|
|||||||
c_name: 'squeekboard',
|
c_name: 'squeekboard',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
desktopconf = configuration_data()
|
||||||
|
desktopconf.set('bindir', bindir)
|
||||||
|
|
||||||
desktop_file = 'sm.puri.Squeekboard.desktop'
|
desktop_file = 'sm.puri.Squeekboard.desktop'
|
||||||
|
|
||||||
i18n.merge_file('desktop',
|
i18n.merge_file('desktop',
|
||||||
input: desktop_file + '.in',
|
input: configure_file(
|
||||||
|
input: desktop_file + '.in.in',
|
||||||
|
output: desktop_file + '.in',
|
||||||
|
configuration: desktopconf
|
||||||
|
),
|
||||||
output: desktop_file,
|
output: desktop_file,
|
||||||
po_dir: '../po',
|
po_dir: '../po',
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: join_paths(datadir, 'applications'),
|
install_dir: desktopdir,
|
||||||
type: 'desktop'
|
type: 'desktop'
|
||||||
)
|
)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
Name=Squeekboard
|
Name=Squeekboard
|
||||||
GenericName=Squeekboard Virtual Keyboard
|
GenericName=Squeekboard Virtual Keyboard
|
||||||
Comment=Virtual Keyboard
|
Comment=Virtual Keyboard
|
||||||
Exec=squeekboard
|
Exec=@bindir@/squeekboard
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
NoDisplay=true
|
NoDisplay=true
|
||||||
@ -42,6 +42,7 @@ endif
|
|||||||
prefix = get_option('prefix')
|
prefix = get_option('prefix')
|
||||||
bindir = join_paths(prefix, get_option('bindir'))
|
bindir = join_paths(prefix, get_option('bindir'))
|
||||||
datadir = join_paths(prefix, get_option('datadir'))
|
datadir = join_paths(prefix, get_option('datadir'))
|
||||||
|
desktopdir = join_paths(datadir, 'applications')
|
||||||
pkgdatadir = join_paths(datadir, meson.project_name())
|
pkgdatadir = join_paths(datadir, meson.project_name())
|
||||||
if get_option('depdatadir') == ''
|
if get_option('depdatadir') == ''
|
||||||
depdatadir = datadir
|
depdatadir = datadir
|
||||||
|
|||||||
Reference in New Issue
Block a user