summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2022-10-03 03:02:04 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-10-03 04:07:17 +0200
commit7e49a1d4eb1c914508de2b83c0e979b5008aedc9 (patch)
tree91a7e65fdc1066bf7cba8220647fc6cd046c37ba /sys-apps
parentprofiles: Unmask app-accessibility/at-spi2-core and friends (diff)
downloadgentoo-7e49a1d4eb1c914508de2b83c0e979b5008aedc9.tar.gz
gentoo-7e49a1d4eb1c914508de2b83c0e979b5008aedc9.tar.bz2
gentoo-7e49a1d4eb1c914508de2b83c0e979b5008aedc9.zip
sys-apps/openrazer: install openrazer-daemon.desktop
Signed-off-by: Steffen Winter <steffen.winter@proton.me> Closes: https://github.com/gentoo/gentoo/pull/27509 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/openrazer/openrazer-3.4.0-r3.ebuild (renamed from sys-apps/openrazer/openrazer-3.4.0-r2.ebuild)11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys-apps/openrazer/openrazer-3.4.0-r2.ebuild b/sys-apps/openrazer/openrazer-3.4.0-r3.ebuild
index 1af09bba0ae3..7b19f04fe4bf 100644
--- a/sys-apps/openrazer/openrazer-3.4.0-r2.ebuild
+++ b/sys-apps/openrazer/openrazer-3.4.0-r3.ebuild
@@ -48,7 +48,10 @@ DOCS=( README.md )
DOC_CONTENTS="To successfully use OpenRazer: load desired kernel module
(razeraccessory, razerkbd, razerkraken and/or razermouse),
-add Your user to the \"plugdev\" group and start the \"openrazer-daemon\"."
+add your user to the \"plugdev\" group and start the OpenRazer daemon.
+To automatically start up the OpenRazer daemon on session login copy
+/usr/share/openrazer/openrazer-daemon.desktop file into Your user's
+~/.config/autostart/ directory."
BUILD_TARGETS="clean driver"
BUILD_PARAMS="-C ${S} SUBDIRS=${S}/driver KERNELDIR=${KERNEL_DIR}"
@@ -120,8 +123,14 @@ src_install() {
# dbus service
insinto /usr/share/dbus-1/services
doins "${S}"/daemon/org.razer.service
+
# systemd unit
systemd_douserunit "${S}"/daemon/${PN}-daemon.service
+
+ # xdg autostart example file
+ insinto /usr/share/${PN}
+ doins "${S}"/install_files/desktop/openrazer-daemon.desktop
+
# Manpages
doman "${S}"/daemon/resources/man/${PN}-daemon.8
doman "${S}"/daemon/resources/man/razer.conf.5