Embedd assets icons
This commit is contained in:
10
data/dev.rager.gkeymapper.Daemon.service
Normal file
10
data/dev.rager.gkeymapper.Daemon.service
Normal file
@@ -0,0 +1,10 @@
|
||||
# gKeyMapper - D-Bus activation file (session bus).
|
||||
#
|
||||
# Installed by "make install", which fills in the binary directory for the
|
||||
# configured PREFIX. It lets the GUI start the daemon on demand: the first
|
||||
# method call on the name makes the bus ask systemd for the user unit below
|
||||
# (the executable is started only if that fails).
|
||||
[D-BUS Service]
|
||||
Name=dev.rager.gkeymapper.Daemon
|
||||
Exec=@BINDIR@/gkeymapper-daemon
|
||||
SystemdService=gkeymapper-daemon.service
|
||||
@@ -12,7 +12,12 @@
|
||||
Description=gKeyMapper daemon - G1..G9 remapping for the Logitech G910
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# Type=dbus: the unit counts as started once the daemon owns its bus name, so
|
||||
# D-Bus activation (data/dev.rager.gkeymapper.Daemon.service) and the GUI see a
|
||||
# consistent state. A second instance exits instead of fighting over the
|
||||
# keyboard, which two of them would do.
|
||||
Type=dbus
|
||||
BusName=dev.rager.gkeymapper.Daemon
|
||||
ExecStart=@BINDIR@/gkeymapper-daemon
|
||||
# Reload the mappings without a restart (the config file is watched as well).
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
16
data/icons.gresource.xml
Normal file
16
data/icons.gresource.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Icons compiled into the GUI executable (glib-compile-resources), so the
|
||||
window has its icon even when no assets are installed. The prefix mirrors
|
||||
the reverse-DNS app id (shared/ipc_ids.h); the icons/ subtree mirrors the
|
||||
hicolor layout so gtk_icon_theme_add_resource_path() can serve
|
||||
gtk_window_set_icon_name("gkeymapper") from the binary. The <file> paths are
|
||||
relative to the repository root (--sourcedir=.). -->
|
||||
<gresources>
|
||||
<gresource prefix="/dev/rager/gkeymapper">
|
||||
<file alias="icon.png">assets/icon.png</file>
|
||||
</gresource>
|
||||
<gresource prefix="/dev/rager/gkeymapper/icons">
|
||||
<file alias="256x256/apps/gkeymapper.png">assets/icon.png</file>
|
||||
<file alias="scalable/apps/gkeymapper.svg">assets/icon.svg</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
Reference in New Issue
Block a user