1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-07-06 00:59:47 +02:00

fix: use correct config file in tofi

This commit is contained in:
DanyLE 2023-07-29 00:20:07 +02:00
parent 4d3dc0ef49
commit 1cb28e0e01
2 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,9 @@
#! /bin/sh
config="/etc/xdg/tofi/config"
if [ -e "$HOME/.config/tofi/config" ]; then
config="$HOME/.config/tofi/config"
fi
tofi-drun -c "$config"

View File

@ -10,7 +10,7 @@ DEPENDS = "wayland freetype wayland-native wayland-protocols-native wayland-prot
SRCREV = "${AUTOREV}"
SRC_URI = "git://github.com/philj56/tofi.git;protocol=https;branch=master"
SRC_URI += " file://config "
SRC_URI += " file://config file://drun "
S="${WORKDIR}/git"
@ -20,7 +20,8 @@ EXTRA_OEMESON += "--buildtype release"
do_install:append () {
# replace the default config
install -m 0755 ${WORKDIR}/drun ${D}/usr/bin/
install -m 0755 ${WORKDIR}/config ${D}/${sysconfdir}/xdg/tofi/
}
FILES:${PN} += "/usr/share/*"
FILES:${PN} += "/usr/share/*"