phosh-arch/gnome-clocks-mobile/0011-autostart-gnome-clocks.patch
2024-08-13 08:17:11 -07:00

61 lines
1.9 KiB
Diff

From eef891c43eac9bade177f575ca78d867df31dc5c Mon Sep 17 00:00:00 2001
From: Julian Sparber <julian@sparber.net>
Date: Fri, 27 Nov 2020 18:47:34 +0100
Subject: [PATCH 11/16] autostart gnome-clocks
---
data/meson.build | 10 +++++++++-
data/org.gnome.clocks-daemon.desktop.in | 16 ++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
create mode 100644 data/org.gnome.clocks-daemon.desktop.in
diff --git a/data/meson.build b/data/meson.build
index c0817fd..497b3be 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -46,6 +46,15 @@ if desktop_file_validate.found()
endif
+desktop_daemon_file = i18n.merge_file(
+ input : 'org.gnome.clocks-daemon.desktop.in',
+ output : '@0@-daemon.desktop'.format(app_id),
+ type : 'desktop',
+ po_dir : '../po',
+ install : true,
+ install_dir : join_paths(get_option('sysconfdir'), 'xdg/autostart')
+)
+
dbusconf = configuration_data()
dbusconf.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
dbusconf.set('name', app_id)
@@ -113,4 +122,3 @@ if glib_compile_schemas.found()
]
)
endif
-
diff --git a/data/org.gnome.clocks-daemon.desktop.in b/data/org.gnome.clocks-daemon.desktop.in
new file mode 100644
index 0000000..49187ca
--- /dev/null
+++ b/data/org.gnome.clocks-daemon.desktop.in
@@ -0,0 +1,16 @@
+[Desktop Entry]
+Name=Clocks
+GenericName=Clocks
+X-GNOME-FullName=GNOME Clocks
+Comment=Clocks for world times, plus alarms, stopwatch and a timer
+# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
+Keywords=time;timer;alarm;world clock;stopwatch;time zone;
+Exec=gnome-clocks --hidden
+# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
+Icon=@icon@
+Terminal=false
+Type=Application
+Categories=GNOME;GTK;Utility;Clock;
+StartupNotify=false
+NoDisplay=true
+X-GNOME-AutoRestart=true
--
2.34.1