Commit 8bef318e authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

Add desktop file

parent 4c4a38b7
Pipeline #1015 passed with stage
in 1 minute and 49 seconds
desktopconf = configuration_data()
desktopconf.set('bindir', bindir)
desktop_files = [
'sm.puri.Virtboard.desktop',
]
foreach desktop_file : desktop_files
i18n.merge_file('desktop',
input: configure_file(
input: desktop_file + '.in.in',
output: desktop_file + '.in',
configuration: desktopconf
),
output: desktop_file,
po_dir: '../po',
install: true,
install_dir: desktopdir,
type: 'desktop'
)
endforeach
[Desktop Entry]
Type=Application
Name=Virtual keyboard
Comment=Basic virtual keyboard
Exec=@bindir@/virtboard
Categories=GNOME;Core;
OnlyShowIn=GNOME;
NoDisplay=true
X-GNOME-Autostart-Phase=Panel
X-GNOME-Provides=inputmethod
X-GNOME-Autostart-Notify=true
X-GNOME-AutoRestart=true
...@@ -87,3 +87,11 @@ add_global_arguments('-DDATADIR=""', language : 'c') ...@@ -87,3 +87,11 @@ add_global_arguments('-DDATADIR=""', language : 'c')
executable( executable(
'virtboard', sources, dependencies: [png, math, pixman, wayland_cursor, wayland_client, wayland_protos, xkbcommon, cairo], install: true, 'virtboard', sources, dependencies: [png, math, pixman, wayland_cursor, wayland_client, wayland_protos, xkbcommon, cairo], install: true,
) )
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
desktopdir = join_paths(datadir, 'applications')
i18n = import('i18n')
subdir('data')
Supports Markdown
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