Commit c0fe874c authored by Guido Gunther's avatar Guido Gunther

Add desktop file

gnome-session starts applications by desktop file.

We set X-GNOME-AutoRestart=false for the moment to make it simpler to
spawn new development versions. We might change that at a later point
for release builds.
parent e08479af
desktopconf = configuration_data()
desktopconf.set('bindir', bindir)
desktopconf.set('libexecdir', libexecdir)
desktop_files = [
'sm.puri.Phosh.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
runconf = configuration_data()
runconf.set('bindir', bindir)
runconf.set('libexecdir', libexecdir)
......
[Desktop Entry]
Type=Application
Name=Phone Shell
Comment=Window management and application launching for mobile
Exec=@libexecdir@/phosh
Categories=GNOME;Librem5;Core;
OnlyShowIn=GNOME;
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer
X-GNOME-Provides=panel;windowmanager;
X-GNOME-Autostart-Notify=true
X-GNOME-AutoRestart=false
......@@ -8,12 +8,14 @@ project('phosh', 'c',
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
localedir = join_paths(prefix, get_option('localedir'))
libexecdir = join_paths(prefix, get_option('libexecdir'))
desktopdir = join_paths(datadir, 'applications')
pkgdatadir = join_paths(datadir, meson.project_name())
config_h = configuration_data()
config_h.set_quoted('GETTEXT_PACKAGE', 'phosh')
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
config_h.set_quoted('LOCALEDIR', localedir)
configure_file(
input: 'config.h.in',
......@@ -76,6 +78,7 @@ configure_file(
configuration: run_data)
gnome = import('gnome')
i18n = import('i18n')
subdir('data')
subdir('po')
......
data/sm.puri.Phosh.desktop.in.in
src/auth.c
src/background.c
src/batteryinfo.c
......
Markdown is supported
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